widget/xpwidgets/nsIWidgetListener.cpp

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 #include "nsIWidgetListener.h"
     8 #include "nsRegion.h"
     9 #include "nsView.h"
    10 #include "nsIPresShell.h"
    11 #include "nsIWidget.h"
    12 #include "nsIXULWindow.h"
    14 #include "mozilla/BasicEvents.h"
    16 using namespace mozilla;
    18 nsIXULWindow*
    19 nsIWidgetListener::GetXULWindow()
    20 {
    21   return nullptr;
    22 }
    24 nsView*
    25 nsIWidgetListener::GetView()
    26 {
    27   return nullptr;
    28 }
    30 nsIPresShell*
    31 nsIWidgetListener::GetPresShell()
    32 {
    33   return nullptr;
    34 }
    36 bool
    37 nsIWidgetListener::WindowMoved(nsIWidget* aWidget,
    38                                int32_t aX,
    39                                int32_t aY)
    40 {
    41   return false;
    42 }
    44 bool
    45 nsIWidgetListener::WindowResized(nsIWidget* aWidget,
    46                                  int32_t aWidth,
    47                                  int32_t aHeight)
    48 {
    49   return false;
    50 }
    52 void
    53 nsIWidgetListener::SizeModeChanged(nsSizeMode aSizeMode)
    54 {
    55 }
    57 bool
    58 nsIWidgetListener::ZLevelChanged(bool aImmediate,
    59                                  nsWindowZ* aPlacement,
    60                                  nsIWidget* aRequestBelow,
    61                                  nsIWidget** aActualBelow)
    62 {
    63   return false;
    64 }
    66 void
    67 nsIWidgetListener::WindowActivated()
    68 {
    69 }
    71 void
    72 nsIWidgetListener::WindowDeactivated()
    73 {
    74 }
    76 void
    77 nsIWidgetListener::OSToolbarButtonPressed()
    78 {
    79 }
    81 bool
    82 nsIWidgetListener::RequestWindowClose(nsIWidget* aWidget)
    83 {
    84   return false;
    85 }
    87 void
    88 nsIWidgetListener::WillPaintWindow(nsIWidget* aWidget)
    89 {
    90 }
    92 bool
    93 nsIWidgetListener::PaintWindow(nsIWidget* aWidget,
    94                                nsIntRegion aRegion)
    95 {
    96   return false;
    97 }
    99 void
   100 nsIWidgetListener::DidPaintWindow()
   101 {
   102 }
   104 void
   105 nsIWidgetListener::DidCompositeWindow()
   106 {
   107 }
   109 void
   110 nsIWidgetListener::RequestRepaint()
   111 {
   112 }
   114 nsEventStatus
   115 nsIWidgetListener::HandleEvent(WidgetGUIEvent* aEvent,
   116                                bool aUseAttachedEvents)
   117 {
   118   return nsEventStatus_eIgnore;
   119 }

mercurial