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

michael@0 1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
michael@0 2 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 3 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 5
michael@0 6 #include "nsIWidgetListener.h"
michael@0 7
michael@0 8 #include "nsRegion.h"
michael@0 9 #include "nsView.h"
michael@0 10 #include "nsIPresShell.h"
michael@0 11 #include "nsIWidget.h"
michael@0 12 #include "nsIXULWindow.h"
michael@0 13
michael@0 14 #include "mozilla/BasicEvents.h"
michael@0 15
michael@0 16 using namespace mozilla;
michael@0 17
michael@0 18 nsIXULWindow*
michael@0 19 nsIWidgetListener::GetXULWindow()
michael@0 20 {
michael@0 21 return nullptr;
michael@0 22 }
michael@0 23
michael@0 24 nsView*
michael@0 25 nsIWidgetListener::GetView()
michael@0 26 {
michael@0 27 return nullptr;
michael@0 28 }
michael@0 29
michael@0 30 nsIPresShell*
michael@0 31 nsIWidgetListener::GetPresShell()
michael@0 32 {
michael@0 33 return nullptr;
michael@0 34 }
michael@0 35
michael@0 36 bool
michael@0 37 nsIWidgetListener::WindowMoved(nsIWidget* aWidget,
michael@0 38 int32_t aX,
michael@0 39 int32_t aY)
michael@0 40 {
michael@0 41 return false;
michael@0 42 }
michael@0 43
michael@0 44 bool
michael@0 45 nsIWidgetListener::WindowResized(nsIWidget* aWidget,
michael@0 46 int32_t aWidth,
michael@0 47 int32_t aHeight)
michael@0 48 {
michael@0 49 return false;
michael@0 50 }
michael@0 51
michael@0 52 void
michael@0 53 nsIWidgetListener::SizeModeChanged(nsSizeMode aSizeMode)
michael@0 54 {
michael@0 55 }
michael@0 56
michael@0 57 bool
michael@0 58 nsIWidgetListener::ZLevelChanged(bool aImmediate,
michael@0 59 nsWindowZ* aPlacement,
michael@0 60 nsIWidget* aRequestBelow,
michael@0 61 nsIWidget** aActualBelow)
michael@0 62 {
michael@0 63 return false;
michael@0 64 }
michael@0 65
michael@0 66 void
michael@0 67 nsIWidgetListener::WindowActivated()
michael@0 68 {
michael@0 69 }
michael@0 70
michael@0 71 void
michael@0 72 nsIWidgetListener::WindowDeactivated()
michael@0 73 {
michael@0 74 }
michael@0 75
michael@0 76 void
michael@0 77 nsIWidgetListener::OSToolbarButtonPressed()
michael@0 78 {
michael@0 79 }
michael@0 80
michael@0 81 bool
michael@0 82 nsIWidgetListener::RequestWindowClose(nsIWidget* aWidget)
michael@0 83 {
michael@0 84 return false;
michael@0 85 }
michael@0 86
michael@0 87 void
michael@0 88 nsIWidgetListener::WillPaintWindow(nsIWidget* aWidget)
michael@0 89 {
michael@0 90 }
michael@0 91
michael@0 92 bool
michael@0 93 nsIWidgetListener::PaintWindow(nsIWidget* aWidget,
michael@0 94 nsIntRegion aRegion)
michael@0 95 {
michael@0 96 return false;
michael@0 97 }
michael@0 98
michael@0 99 void
michael@0 100 nsIWidgetListener::DidPaintWindow()
michael@0 101 {
michael@0 102 }
michael@0 103
michael@0 104 void
michael@0 105 nsIWidgetListener::DidCompositeWindow()
michael@0 106 {
michael@0 107 }
michael@0 108
michael@0 109 void
michael@0 110 nsIWidgetListener::RequestRepaint()
michael@0 111 {
michael@0 112 }
michael@0 113
michael@0 114 nsEventStatus
michael@0 115 nsIWidgetListener::HandleEvent(WidgetGUIEvent* aEvent,
michael@0 116 bool aUseAttachedEvents)
michael@0 117 {
michael@0 118 return nsEventStatus_eIgnore;
michael@0 119 }

mercurial