Bug 1464538 [wpt PR 11173] - [testdriver] Enable manual interaction, a=testonly
[gecko.git] / widget / nsIWidgetListener.cpp
blob9c423c7ef339427847338c62798cdc5f13d90f60
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* nsIWidgetListener::GetXULWindow() { return nullptr; }
20 nsView* nsIWidgetListener::GetView() { return nullptr; }
22 nsIPresShell* nsIWidgetListener::GetPresShell() { return nullptr; }
24 bool nsIWidgetListener::WindowMoved(nsIWidget* aWidget, int32_t aX,
25 int32_t aY) {
26 return false;
29 bool nsIWidgetListener::WindowResized(nsIWidget* aWidget, int32_t aWidth,
30 int32_t aHeight) {
31 return false;
34 void nsIWidgetListener::SizeModeChanged(nsSizeMode aSizeMode) {}
36 void nsIWidgetListener::UIResolutionChanged() {}
38 void nsIWidgetListener::FullscreenWillChange(bool aInFullscreen) {}
40 void nsIWidgetListener::FullscreenChanged(bool aInFullscreen) {}
42 bool nsIWidgetListener::ZLevelChanged(bool aImmediate, nsWindowZ* aPlacement,
43 nsIWidget* aRequestBelow,
44 nsIWidget** aActualBelow) {
45 return false;
48 void nsIWidgetListener::OcclusionStateChanged(bool aIsFullyOccluded) {}
50 void nsIWidgetListener::WindowActivated() {}
52 void nsIWidgetListener::WindowDeactivated() {}
54 void nsIWidgetListener::OSToolbarButtonPressed() {}
56 bool nsIWidgetListener::RequestWindowClose(nsIWidget* aWidget) { return false; }
58 void nsIWidgetListener::WillPaintWindow(nsIWidget* aWidget) {}
60 bool nsIWidgetListener::PaintWindow(nsIWidget* aWidget,
61 LayoutDeviceIntRegion aRegion) {
62 return false;
65 void nsIWidgetListener::DidPaintWindow() {}
67 void nsIWidgetListener::DidCompositeWindow(
68 mozilla::layers::TransactionId aTransactionId,
69 const TimeStamp& aCompositeStart, const TimeStamp& aCompositeEnd) {}
71 void nsIWidgetListener::RequestRepaint() {}
73 bool nsIWidgetListener::ShouldNotBeVisible() {
74 // Returns false to assume that nothing should happen in most cases.
75 return true;
78 nsEventStatus nsIWidgetListener::HandleEvent(WidgetGUIEvent* aEvent,
79 bool aUseAttachedEvents) {
80 return nsEventStatus_eIgnore;