Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(371)

Side by Side Diff: ui/views/widget/desktop_native_widget_aura.cc

Issue 10908048: Set up new desktop classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "ui/views/widget/desktop_native_widget_aura.h"
6
7 #include "ui/base/hit_test.h"
8 #include "ui/views/widget/desktop_root_window_host.h"
9
10 namespace views {
11
12 ////////////////////////////////////////////////////////////////////////////////
13 // DesktopNativeWidgetAura, public:
14
15 DesktopNativeWidgetAura::DesktopNativeWidgetAura(
16 internal::NativeWidgetDelegate* delegate)
17 : desktop_root_window_host_(DesktopRootWindowHost::Create()),
18 window_(NULL),
19 ownership_(Widget::InitParams::WIDGET_OWNS_NATIVE_WIDGET) {
20 }
21
22 DesktopNativeWidgetAura::~DesktopNativeWidgetAura() {
23 }
24
25 ////////////////////////////////////////////////////////////////////////////////
26 // DesktopNativeWidgetAura, internal::NativeWidgetPrivate implementation:
27
28 void DesktopNativeWidgetAura::InitNativeWidget(
29 const Widget::InitParams& params) {
30 }
31
32 NonClientFrameView* DesktopNativeWidgetAura::CreateNonClientFrameView() {
33 return NULL;
34 }
35
36 bool DesktopNativeWidgetAura::ShouldUseNativeFrame() const {
37 return false;
38 }
39
40 void DesktopNativeWidgetAura::FrameTypeChanged() {
41 }
42
43 Widget* DesktopNativeWidgetAura::GetWidget() {
44 return native_widget_delegate_->AsWidget();
45 }
46
47 const Widget* DesktopNativeWidgetAura::GetWidget() const {
48 return native_widget_delegate_->AsWidget();
49 }
50
51 gfx::NativeView DesktopNativeWidgetAura::GetNativeView() const {
52 return window_;
53 }
54
55 gfx::NativeWindow DesktopNativeWidgetAura::GetNativeWindow() const {
56 return window_;
57 }
58
59 Widget* DesktopNativeWidgetAura::GetTopLevelWidget() {
60 return GetWidget();
61 }
62
63 const ui::Compositor* DesktopNativeWidgetAura::GetCompositor() const {
64 return NULL;
65 }
66
67 ui::Compositor* DesktopNativeWidgetAura::GetCompositor() {
68 return NULL;
69 }
70
71 void DesktopNativeWidgetAura::CalculateOffsetToAncestorWithLayer(
72 gfx::Point* offset,
73 ui::Layer** layer_parent) {
74 }
75
76 void DesktopNativeWidgetAura::ViewRemoved(View* view) {
77 }
78
79 void DesktopNativeWidgetAura::SetNativeWindowProperty(const char* name,
80 void* value) {
81 }
82
83 void* DesktopNativeWidgetAura::GetNativeWindowProperty(const char* name) const {
84 return NULL;
85 }
86
87 TooltipManager* DesktopNativeWidgetAura::GetTooltipManager() const {
88 return NULL;
89 }
90
91 bool DesktopNativeWidgetAura::IsScreenReaderActive() const {
92 return false;
93 }
94
95 void DesktopNativeWidgetAura::SendNativeAccessibilityEvent(
96 View* view,
97 ui::AccessibilityTypes::Event event_type) {
98 }
99
100 void DesktopNativeWidgetAura::SetCapture() {
101 }
102
103 void DesktopNativeWidgetAura::ReleaseCapture() {
104 }
105
106 bool DesktopNativeWidgetAura::HasCapture() const {
107 return false;
108 }
109
110 InputMethod* DesktopNativeWidgetAura::CreateInputMethod() {
111 return NULL;
112 }
113
114 internal::InputMethodDelegate*
115 DesktopNativeWidgetAura::GetInputMethodDelegate() {
116 return NULL;
117 }
118
119 void DesktopNativeWidgetAura::CenterWindow(const gfx::Size& size) {
120 }
121
122 void DesktopNativeWidgetAura::GetWindowPlacement(
123 gfx::Rect* bounds,
124 ui::WindowShowState* maximized) const {
125 }
126
127 void DesktopNativeWidgetAura::SetWindowTitle(const string16& title) {
128 }
129
130 void DesktopNativeWidgetAura::SetWindowIcons(const gfx::ImageSkia& window_icon,
131 const gfx::ImageSkia& app_icon) {
132 }
133
134 void DesktopNativeWidgetAura::SetAccessibleName(const string16& name) {
135 }
136
137 void DesktopNativeWidgetAura::SetAccessibleRole(
138 ui::AccessibilityTypes::Role role) {
139 }
140
141 void DesktopNativeWidgetAura::SetAccessibleState(
142 ui::AccessibilityTypes::State state) {
143 }
144
145 void DesktopNativeWidgetAura::InitModalType(ui::ModalType modal_type) {
146 }
147
148 gfx::Rect DesktopNativeWidgetAura::GetWindowBoundsInScreen() const {
149 return gfx::Rect(100, 100);
150 }
151
152 gfx::Rect DesktopNativeWidgetAura::GetClientAreaBoundsInScreen() const {
153 return gfx::Rect(100, 100);
154 }
155
156 gfx::Rect DesktopNativeWidgetAura::GetRestoredBounds() const {
157 return gfx::Rect(100, 100);
158 }
159
160 void DesktopNativeWidgetAura::SetBounds(const gfx::Rect& bounds) {
161 }
162
163 void DesktopNativeWidgetAura::SetSize(const gfx::Size& size) {
164 }
165
166 void DesktopNativeWidgetAura::StackAbove(gfx::NativeView native_view) {
167 }
168
169 void DesktopNativeWidgetAura::StackAtTop() {
170 }
171
172 void DesktopNativeWidgetAura::StackBelow(gfx::NativeView native_view) {
173 }
174
175 void DesktopNativeWidgetAura::SetShape(gfx::NativeRegion shape) {
176 }
177
178 void DesktopNativeWidgetAura::Close() {
179 }
180
181 void DesktopNativeWidgetAura::CloseNow() {
182 }
183
184 void DesktopNativeWidgetAura::Show() {
185 }
186
187 void DesktopNativeWidgetAura::Hide() {
188 }
189
190 void DesktopNativeWidgetAura::ShowMaximizedWithBounds(
191 const gfx::Rect& restored_bounds) {
192 }
193
194 void DesktopNativeWidgetAura::ShowWithWindowState(ui::WindowShowState state) {
195 }
196
197 bool DesktopNativeWidgetAura::IsVisible() const {
198 return false;
199 }
200
201 void DesktopNativeWidgetAura::Activate() {
202 }
203
204 void DesktopNativeWidgetAura::Deactivate() {
205 }
206
207 bool DesktopNativeWidgetAura::IsActive() const {
208 return false;
209 }
210
211 void DesktopNativeWidgetAura::SetAlwaysOnTop(bool always_on_top) {
212 }
213
214 void DesktopNativeWidgetAura::Maximize() {
215 }
216
217 void DesktopNativeWidgetAura::Minimize() {
218 }
219
220 bool DesktopNativeWidgetAura::IsMaximized() const {
221 return false;
222 }
223
224 bool DesktopNativeWidgetAura::IsMinimized() const {
225 return false;
226 }
227
228 void DesktopNativeWidgetAura::Restore() {
229 }
230
231 void DesktopNativeWidgetAura::SetFullscreen(bool fullscreen) {
232 }
233
234 bool DesktopNativeWidgetAura::IsFullscreen() const {
235 return false;
236 }
237
238 void DesktopNativeWidgetAura::SetOpacity(unsigned char opacity) {
239 }
240
241 void DesktopNativeWidgetAura::SetUseDragFrame(bool use_drag_frame) {
242 }
243
244 void DesktopNativeWidgetAura::FlashFrame(bool flash_frame) {
245 }
246
247 bool DesktopNativeWidgetAura::IsAccessibleWidget() const {
248 return false;
249 }
250
251 void DesktopNativeWidgetAura::RunShellDrag(View* view,
252 const ui::OSExchangeData& data,
253 const gfx::Point& location,
254 int operation) {
255 }
256
257 void DesktopNativeWidgetAura::SchedulePaintInRect(const gfx::Rect& rect) {
258 }
259
260 void DesktopNativeWidgetAura::SetCursor(gfx::NativeCursor cursor) {
261 }
262
263 void DesktopNativeWidgetAura::ClearNativeFocus() {
264 }
265
266 void DesktopNativeWidgetAura::FocusNativeView(gfx::NativeView native_view) {
267 }
268
269 gfx::Rect DesktopNativeWidgetAura::GetWorkAreaBoundsInScreen() const {
270 return gfx::Rect(100, 100);
271 }
272
273 void DesktopNativeWidgetAura::SetInactiveRenderingDisabled(bool value) {
274 }
275
276 Widget::MoveLoopResult DesktopNativeWidgetAura::RunMoveLoop(
277 const gfx::Point& drag_offset) {
278 return Widget::MOVE_LOOP_CANCELED;
279 }
280
281 void DesktopNativeWidgetAura::EndMoveLoop() {
282 }
283
284 void DesktopNativeWidgetAura::SetVisibilityChangedAnimationsEnabled(
285 bool value) {
286 }
287
288 ////////////////////////////////////////////////////////////////////////////////
289 // DesktopNativeWidgetAura, aura::WindowDelegate implementation:
290
291 gfx::Size DesktopNativeWidgetAura::GetMinimumSize() const {
292 return gfx::Size(100, 100);
293 }
294
295 void DesktopNativeWidgetAura::OnBoundsChanged(const gfx::Rect& old_bounds,
296 const gfx::Rect& new_bounds) {
297 }
298
299 void DesktopNativeWidgetAura::OnFocus(aura::Window* old_focused_window) {
300 }
301
302 void DesktopNativeWidgetAura::OnBlur() {
303 }
304
305 bool DesktopNativeWidgetAura::OnKeyEvent(ui::KeyEvent* event) {
306 return false;
307 }
308
309 gfx::NativeCursor DesktopNativeWidgetAura::GetCursor(const gfx::Point& point) {
310 return NULL;
311 }
312
313 int DesktopNativeWidgetAura::GetNonClientComponent(
314 const gfx::Point& point) const {
315 return HTCLIENT;
316 }
317
318 bool DesktopNativeWidgetAura::ShouldDescendIntoChildForEventHandling(
319 aura::Window* child,
320 const gfx::Point& location) {
321 return true;
322 }
323
324 bool DesktopNativeWidgetAura::OnMouseEvent(ui::MouseEvent* event) {
325 return false;
326 }
327
328 ui::TouchStatus DesktopNativeWidgetAura::OnTouchEvent(ui::TouchEvent* event) {
329 return ui::TOUCH_STATUS_UNKNOWN;
330 }
331
332 ui::EventResult DesktopNativeWidgetAura::OnGestureEvent(
333 ui::GestureEvent* event) {
334 return ui::ER_UNHANDLED;
335 }
336
337 bool DesktopNativeWidgetAura::CanFocus() {
338 return true;
339 }
340
341 void DesktopNativeWidgetAura::OnCaptureLost() {
342 }
343
344 void DesktopNativeWidgetAura::OnPaint(gfx::Canvas* canvas) {
345 }
346
347 void DesktopNativeWidgetAura::OnDeviceScaleFactorChanged(
348 float device_scale_factor) {
349 }
350
351 void DesktopNativeWidgetAura::OnWindowDestroying() {
352 }
353
354 void DesktopNativeWidgetAura::OnWindowDestroyed() {
355 }
356
357 void DesktopNativeWidgetAura::OnWindowTargetVisibilityChanged(bool visible) {
358 }
359
360 bool DesktopNativeWidgetAura::HasHitTestMask() const {
361 return false;
362 }
363
364 void DesktopNativeWidgetAura::GetHitTestMask(gfx::Path* mask) const {
365 }
366
367 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/widget/desktop_native_widget_aura.h ('k') | ui/views/widget/desktop_root_window_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698