Bug 1610630 [wpt PR 21320] - Add meta:timeout=long to FileSystemBaseHandle-postMessag...
[gecko.git] / widget / nsIWidgetListener.cpp
blobe4a063d681c673a692f8acb7e843b805c13c8a1b
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 "nsIWidget.h"
11 #include "nsIAppWindow.h"
13 #include "mozilla/BasicEvents.h"
14 #include "mozilla/PresShell.h"
16 using namespace mozilla;
18 nsIAppWindow* nsIWidgetListener::GetAppWindow() { return nullptr; }
20 nsView* nsIWidgetListener::GetView() { return nullptr; }
22 PresShell* 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 #if defined(MOZ_WIDGET_ANDROID)
39 void nsIWidgetListener::DynamicToolbarMaxHeightChanged(ScreenIntCoord aHeight) {
41 void nsIWidgetListener::DynamicToolbarOffsetChanged(ScreenIntCoord aOffset) {}
42 #endif
44 void nsIWidgetListener::FullscreenWillChange(bool aInFullscreen) {}
46 void nsIWidgetListener::FullscreenChanged(bool aInFullscreen) {}
48 bool nsIWidgetListener::ZLevelChanged(bool aImmediate, nsWindowZ* aPlacement,
49 nsIWidget* aRequestBelow,
50 nsIWidget** aActualBelow) {
51 return false;
54 void nsIWidgetListener::OcclusionStateChanged(bool aIsFullyOccluded) {}
56 void nsIWidgetListener::WindowActivated() {}
58 void nsIWidgetListener::WindowDeactivated() {}
60 void nsIWidgetListener::OSToolbarButtonPressed() {}
62 bool nsIWidgetListener::RequestWindowClose(nsIWidget* aWidget) { return false; }
64 void nsIWidgetListener::WillPaintWindow(nsIWidget* aWidget) {}
66 bool nsIWidgetListener::PaintWindow(nsIWidget* aWidget,
67 LayoutDeviceIntRegion aRegion) {
68 return false;
71 void nsIWidgetListener::DidPaintWindow() {}
73 void nsIWidgetListener::DidCompositeWindow(
74 mozilla::layers::TransactionId aTransactionId,
75 const TimeStamp& aCompositeStart, const TimeStamp& aCompositeEnd) {}
77 void nsIWidgetListener::RequestRepaint() {}
79 bool nsIWidgetListener::ShouldNotBeVisible() {
80 // Returns false to assume that nothing should happen in most cases.
81 return false;
84 nsEventStatus nsIWidgetListener::HandleEvent(WidgetGUIEvent* aEvent,
85 bool aUseAttachedEvents) {
86 return nsEventStatus_eIgnore;