1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/widget/xpwidgets/nsIWidgetListener.cpp Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,119 @@ 1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +#include "nsIWidgetListener.h" 1.10 + 1.11 +#include "nsRegion.h" 1.12 +#include "nsView.h" 1.13 +#include "nsIPresShell.h" 1.14 +#include "nsIWidget.h" 1.15 +#include "nsIXULWindow.h" 1.16 + 1.17 +#include "mozilla/BasicEvents.h" 1.18 + 1.19 +using namespace mozilla; 1.20 + 1.21 +nsIXULWindow* 1.22 +nsIWidgetListener::GetXULWindow() 1.23 +{ 1.24 + return nullptr; 1.25 +} 1.26 + 1.27 +nsView* 1.28 +nsIWidgetListener::GetView() 1.29 +{ 1.30 + return nullptr; 1.31 +} 1.32 + 1.33 +nsIPresShell* 1.34 +nsIWidgetListener::GetPresShell() 1.35 +{ 1.36 + return nullptr; 1.37 +} 1.38 + 1.39 +bool 1.40 +nsIWidgetListener::WindowMoved(nsIWidget* aWidget, 1.41 + int32_t aX, 1.42 + int32_t aY) 1.43 +{ 1.44 + return false; 1.45 +} 1.46 + 1.47 +bool 1.48 +nsIWidgetListener::WindowResized(nsIWidget* aWidget, 1.49 + int32_t aWidth, 1.50 + int32_t aHeight) 1.51 +{ 1.52 + return false; 1.53 +} 1.54 + 1.55 +void 1.56 +nsIWidgetListener::SizeModeChanged(nsSizeMode aSizeMode) 1.57 +{ 1.58 +} 1.59 + 1.60 +bool 1.61 +nsIWidgetListener::ZLevelChanged(bool aImmediate, 1.62 + nsWindowZ* aPlacement, 1.63 + nsIWidget* aRequestBelow, 1.64 + nsIWidget** aActualBelow) 1.65 +{ 1.66 + return false; 1.67 +} 1.68 + 1.69 +void 1.70 +nsIWidgetListener::WindowActivated() 1.71 +{ 1.72 +} 1.73 + 1.74 +void 1.75 +nsIWidgetListener::WindowDeactivated() 1.76 +{ 1.77 +} 1.78 + 1.79 +void 1.80 +nsIWidgetListener::OSToolbarButtonPressed() 1.81 +{ 1.82 +} 1.83 + 1.84 +bool 1.85 +nsIWidgetListener::RequestWindowClose(nsIWidget* aWidget) 1.86 +{ 1.87 + return false; 1.88 +} 1.89 + 1.90 +void 1.91 +nsIWidgetListener::WillPaintWindow(nsIWidget* aWidget) 1.92 +{ 1.93 +} 1.94 + 1.95 +bool 1.96 +nsIWidgetListener::PaintWindow(nsIWidget* aWidget, 1.97 + nsIntRegion aRegion) 1.98 +{ 1.99 + return false; 1.100 +} 1.101 + 1.102 +void 1.103 +nsIWidgetListener::DidPaintWindow() 1.104 +{ 1.105 +} 1.106 + 1.107 +void 1.108 +nsIWidgetListener::DidCompositeWindow() 1.109 +{ 1.110 +} 1.111 + 1.112 +void 1.113 +nsIWidgetListener::RequestRepaint() 1.114 +{ 1.115 +} 1.116 + 1.117 +nsEventStatus 1.118 +nsIWidgetListener::HandleEvent(WidgetGUIEvent* aEvent, 1.119 + bool aUseAttachedEvents) 1.120 +{ 1.121 + return nsEventStatus_eIgnore; 1.122 +}