|
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/. */ |
|
5 |
|
6 #include "nsIWidgetListener.h" |
|
7 |
|
8 #include "nsRegion.h" |
|
9 #include "nsView.h" |
|
10 #include "nsIPresShell.h" |
|
11 #include "nsIWidget.h" |
|
12 #include "nsIXULWindow.h" |
|
13 |
|
14 #include "mozilla/BasicEvents.h" |
|
15 |
|
16 using namespace mozilla; |
|
17 |
|
18 nsIXULWindow* |
|
19 nsIWidgetListener::GetXULWindow() |
|
20 { |
|
21 return nullptr; |
|
22 } |
|
23 |
|
24 nsView* |
|
25 nsIWidgetListener::GetView() |
|
26 { |
|
27 return nullptr; |
|
28 } |
|
29 |
|
30 nsIPresShell* |
|
31 nsIWidgetListener::GetPresShell() |
|
32 { |
|
33 return nullptr; |
|
34 } |
|
35 |
|
36 bool |
|
37 nsIWidgetListener::WindowMoved(nsIWidget* aWidget, |
|
38 int32_t aX, |
|
39 int32_t aY) |
|
40 { |
|
41 return false; |
|
42 } |
|
43 |
|
44 bool |
|
45 nsIWidgetListener::WindowResized(nsIWidget* aWidget, |
|
46 int32_t aWidth, |
|
47 int32_t aHeight) |
|
48 { |
|
49 return false; |
|
50 } |
|
51 |
|
52 void |
|
53 nsIWidgetListener::SizeModeChanged(nsSizeMode aSizeMode) |
|
54 { |
|
55 } |
|
56 |
|
57 bool |
|
58 nsIWidgetListener::ZLevelChanged(bool aImmediate, |
|
59 nsWindowZ* aPlacement, |
|
60 nsIWidget* aRequestBelow, |
|
61 nsIWidget** aActualBelow) |
|
62 { |
|
63 return false; |
|
64 } |
|
65 |
|
66 void |
|
67 nsIWidgetListener::WindowActivated() |
|
68 { |
|
69 } |
|
70 |
|
71 void |
|
72 nsIWidgetListener::WindowDeactivated() |
|
73 { |
|
74 } |
|
75 |
|
76 void |
|
77 nsIWidgetListener::OSToolbarButtonPressed() |
|
78 { |
|
79 } |
|
80 |
|
81 bool |
|
82 nsIWidgetListener::RequestWindowClose(nsIWidget* aWidget) |
|
83 { |
|
84 return false; |
|
85 } |
|
86 |
|
87 void |
|
88 nsIWidgetListener::WillPaintWindow(nsIWidget* aWidget) |
|
89 { |
|
90 } |
|
91 |
|
92 bool |
|
93 nsIWidgetListener::PaintWindow(nsIWidget* aWidget, |
|
94 nsIntRegion aRegion) |
|
95 { |
|
96 return false; |
|
97 } |
|
98 |
|
99 void |
|
100 nsIWidgetListener::DidPaintWindow() |
|
101 { |
|
102 } |
|
103 |
|
104 void |
|
105 nsIWidgetListener::DidCompositeWindow() |
|
106 { |
|
107 } |
|
108 |
|
109 void |
|
110 nsIWidgetListener::RequestRepaint() |
|
111 { |
|
112 } |
|
113 |
|
114 nsEventStatus |
|
115 nsIWidgetListener::HandleEvent(WidgetGUIEvent* aEvent, |
|
116 bool aUseAttachedEvents) |
|
117 { |
|
118 return nsEventStatus_eIgnore; |
|
119 } |