widget/windows/nsWindowDbg.h

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     2 /* This Source Code Form is subject to the terms of the Mozilla Public
     3  * License, v. 2.0. If a copy of the MPL was not distributed with this
     4  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     6 #ifndef WindowDbg_h__
     7 #define WindowDbg_h__
     9 /*
    10  * nsWindowDbg - Debug related utilities for nsWindow.
    11  */
    13 #include "nsWindowDefs.h"
    15 // Enabled main event loop debug event output
    16 //#define EVENT_DEBUG_OUTPUT
    18 // Enables debug output for popup rollup hooks
    19 //#define POPUP_ROLLUP_DEBUG_OUTPUT
    21 // Enable window size and state debug output
    22 //#define WINSTATE_DEBUG_OUTPUT
    24 // nsIWidget defines a set of debug output statements
    25 // that are called in various places within the code.
    26 //#define WIDGET_DEBUG_OUTPUT
    28 // Enable IS_VK_DOWN debug output
    29 //#define DEBUG_VK
    31 // Main event loop debug output flags
    32 #if defined(EVENT_DEBUG_OUTPUT)
    33 #define SHOW_REPEAT_EVENTS      true
    34 #define SHOW_MOUSEMOVE_EVENTS   false
    35 #endif // defined(EVENT_DEBUG_OUTPUT)
    37 #if defined(POPUP_ROLLUP_DEBUG_OUTPUT) || defined(EVENT_DEBUG_OUTPUT) || 1
    38 void PrintEvent(UINT msg, bool aShowAllEvents, bool aShowMouseMoves);
    39 #endif // defined(POPUP_ROLLUP_DEBUG_OUTPUT) || defined(EVENT_DEBUG_OUTPUT)
    41 #if defined(POPUP_ROLLUP_DEBUG_OUTPUT)
    42 typedef struct {
    43   char * mStr;
    44   int    mId;
    45 } MSGFEventMsgInfo;
    47 #define DISPLAY_NMM_PRT(_arg) PR_LOG(gWindowsLog, PR_LOG_ALWAYS, ((_arg)));
    48 #else
    49 #define DISPLAY_NMM_PRT(_arg)
    50 #endif // defined(POPUP_ROLLUP_DEBUG_OUTPUT)
    52 #if defined(DEBUG)
    53 void DDError(const char *msg, HRESULT hr);
    54 #endif // defined(DEBUG)
    56 #if defined(DEBUG_VK)
    57 bool is_vk_down(int vk);
    58 #define IS_VK_DOWN is_vk_down
    59 #else
    60 #define IS_VK_DOWN(a) (GetKeyState(a) < 0)
    61 #endif // defined(DEBUG_VK)
    63 #endif /* WindowDbg_h__ */

mercurial