2013-10-22 13:27:34 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
#include "nsIWidgetListener.h"
|
|
|
|
|
|
|
|
#include "nsRegion.h"
|
|
|
|
#include "nsView.h"
|
|
|
|
#include "nsIWidget.h"
|
2019-11-05 17:56:28 +00:00
|
|
|
#include "nsIAppWindow.h"
|
2013-10-22 13:27:34 +00:00
|
|
|
|
|
|
|
#include "mozilla/BasicEvents.h"
|
2019-04-13 01:05:21 +00:00
|
|
|
#include "mozilla/PresShell.h"
|
2013-10-22 13:27:34 +00:00
|
|
|
|
|
|
|
using namespace mozilla;
|
|
|
|
|
2019-11-05 17:56:28 +00:00
|
|
|
nsIAppWindow* nsIWidgetListener::GetAppWindow() { return nullptr; }
|
2013-10-22 13:27:34 +00:00
|
|
|
|
|
|
|
nsView* nsIWidgetListener::GetView() { return nullptr; }
|
|
|
|
|
2019-04-13 01:05:21 +00:00
|
|
|
PresShell* nsIWidgetListener::GetPresShell() { return nullptr; }
|
2013-10-22 13:27:34 +00:00
|
|
|
|
2022-08-30 09:30:27 +00:00
|
|
|
bool nsIWidgetListener::WindowMoved(nsIWidget* aWidget, int32_t aX, int32_t aY,
|
|
|
|
ByMoveToRect) {
|
2013-10-22 13:27:34 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool nsIWidgetListener::WindowResized(nsIWidget* aWidget, int32_t aWidth,
|
|
|
|
int32_t aHeight) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
void nsIWidgetListener::SizeModeChanged(nsSizeMode aSizeMode) {}
|
|
|
|
|
2020-03-04 08:16:31 +00:00
|
|
|
void nsIWidgetListener::SafeAreaInsetsChanged(const mozilla::ScreenIntMargin&) {
|
|
|
|
}
|
|
|
|
|
2016-03-17 12:53:31 +00:00
|
|
|
void nsIWidgetListener::UIResolutionChanged() {}
|
|
|
|
|
2019-11-14 05:59:47 +00:00
|
|
|
#if defined(MOZ_WIDGET_ANDROID)
|
|
|
|
void nsIWidgetListener::DynamicToolbarMaxHeightChanged(ScreenIntCoord aHeight) {
|
|
|
|
}
|
2019-11-21 21:15:46 +00:00
|
|
|
void nsIWidgetListener::DynamicToolbarOffsetChanged(ScreenIntCoord aOffset) {}
|
2019-11-14 05:59:47 +00:00
|
|
|
#endif
|
|
|
|
|
2017-10-19 01:50:47 +00:00
|
|
|
void nsIWidgetListener::FullscreenWillChange(bool aInFullscreen) {}
|
|
|
|
|
2015-06-10 11:13:12 +00:00
|
|
|
void nsIWidgetListener::FullscreenChanged(bool aInFullscreen) {}
|
|
|
|
|
2021-03-18 20:20:39 +00:00
|
|
|
void nsIWidgetListener::MacFullscreenMenubarOverlapChanged(
|
|
|
|
mozilla::DesktopCoord aOverlapAmount) {}
|
|
|
|
|
2013-10-22 13:27:34 +00:00
|
|
|
bool nsIWidgetListener::ZLevelChanged(bool aImmediate, nsWindowZ* aPlacement,
|
|
|
|
nsIWidget* aRequestBelow,
|
|
|
|
nsIWidget** aActualBelow) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2017-05-26 10:09:34 +00:00
|
|
|
void nsIWidgetListener::OcclusionStateChanged(bool aIsFullyOccluded) {}
|
|
|
|
|
2013-10-22 13:27:34 +00:00
|
|
|
void nsIWidgetListener::WindowActivated() {}
|
|
|
|
|
|
|
|
void nsIWidgetListener::WindowDeactivated() {}
|
|
|
|
|
|
|
|
void nsIWidgetListener::OSToolbarButtonPressed() {}
|
|
|
|
|
|
|
|
bool nsIWidgetListener::RequestWindowClose(nsIWidget* aWidget) { return false; }
|
|
|
|
|
|
|
|
void nsIWidgetListener::WillPaintWindow(nsIWidget* aWidget) {}
|
|
|
|
|
|
|
|
bool nsIWidgetListener::PaintWindow(nsIWidget* aWidget,
|
2015-12-03 05:45:41 +00:00
|
|
|
LayoutDeviceIntRegion aRegion) {
|
2013-10-22 13:27:34 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
void nsIWidgetListener::DidPaintWindow() {}
|
|
|
|
|
2018-04-20 19:13:06 +00:00
|
|
|
void nsIWidgetListener::DidCompositeWindow(
|
|
|
|
mozilla::layers::TransactionId aTransactionId,
|
2016-04-13 20:59:15 +00:00
|
|
|
const TimeStamp& aCompositeStart, const TimeStamp& aCompositeEnd) {}
|
2014-03-07 03:24:32 +00:00
|
|
|
|
2013-10-22 13:27:34 +00:00
|
|
|
void nsIWidgetListener::RequestRepaint() {}
|
|
|
|
|
2019-03-06 18:48:50 +00:00
|
|
|
bool nsIWidgetListener::ShouldNotBeVisible() {
|
|
|
|
// Returns false to assume that nothing should happen in most cases.
|
2019-03-15 21:21:05 +00:00
|
|
|
return false;
|
2019-03-06 18:48:50 +00:00
|
|
|
}
|
|
|
|
|
2013-10-22 13:27:34 +00:00
|
|
|
nsEventStatus nsIWidgetListener::HandleEvent(WidgetGUIEvent* aEvent,
|
|
|
|
bool aUseAttachedEvents) {
|
|
|
|
return nsEventStatus_eIgnore;
|
|
|
|
}
|