OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ | 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ |
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ | 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ |
7 | 7 |
| 8 #include "base/lazy_instance.h" |
8 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
9 #include "ui/aura/client/activation_change_observer.h" | 10 #include "ui/aura/client/activation_change_observer.h" |
10 #include "ui/aura/client/activation_delegate.h" | 11 #include "ui/aura/client/activation_delegate.h" |
11 #include "ui/aura/client/drag_drop_delegate.h" | 12 #include "ui/aura/client/drag_drop_delegate.h" |
12 #include "ui/aura/client/focus_change_observer.h" | 13 #include "ui/aura/client/focus_change_observer.h" |
13 #include "ui/aura/root_window_observer.h" | 14 #include "ui/aura/root_window_observer.h" |
14 #include "ui/aura/window_delegate.h" | 15 #include "ui/aura/window_delegate.h" |
15 #include "ui/base/cursor/cursor.h" | 16 #include "ui/base/cursor/cursor.h" |
16 #include "ui/views/ime/input_method_delegate.h" | 17 #include "ui/views/ime/input_method_delegate.h" |
17 #include "ui/views/widget/native_widget_private.h" | 18 #include "ui/views/widget/native_widget_private.h" |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 | 289 |
289 scoped_ptr<views::corewm::VisibilityController> visibility_controller_; | 290 scoped_ptr<views::corewm::VisibilityController> visibility_controller_; |
290 | 291 |
291 scoped_ptr<views::corewm::WindowModalityController> | 292 scoped_ptr<views::corewm::WindowModalityController> |
292 window_modality_controller_; | 293 window_modality_controller_; |
293 | 294 |
294 // See comments in OnLostActive(). | 295 // See comments in OnLostActive(). |
295 bool restore_focus_on_activate_; | 296 bool restore_focus_on_activate_; |
296 | 297 |
297 gfx::NativeCursor cursor_; | 298 gfx::NativeCursor cursor_; |
298 static views::corewm::CursorManager* cursor_manager_; | 299 static base::LazyInstance<scoped_ptr<views::corewm::CursorManager> > |
| 300 cursor_manager_; |
299 static views::DesktopNativeCursorManager* native_cursor_manager_; | 301 static views::DesktopNativeCursorManager* native_cursor_manager_; |
300 | 302 |
301 scoped_ptr<corewm::ShadowController> shadow_controller_; | 303 scoped_ptr<corewm::ShadowController> shadow_controller_; |
302 | 304 |
303 // Reorders child windows of |window_| associated with a view based on the | 305 // Reorders child windows of |window_| associated with a view based on the |
304 // order of the associated views in the widget's view hierarchy. | 306 // order of the associated views in the widget's view hierarchy. |
305 scoped_ptr<WindowReorderer> window_reorderer_; | 307 scoped_ptr<WindowReorderer> window_reorderer_; |
306 | 308 |
307 // See class documentation for Widget in widget.h for a note about type. | 309 // See class documentation for Widget in widget.h for a note about type. |
308 Widget::InitParams::Type widget_type_; | 310 Widget::InitParams::Type widget_type_; |
309 | 311 |
310 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAura); | 312 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAura); |
311 }; | 313 }; |
312 | 314 |
313 } // namespace views | 315 } // namespace views |
314 | 316 |
315 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ | 317 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ |
OLD | NEW |