| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_AURA_DESKTOP_H_ | 5 #ifndef UI_AURA_DESKTOP_H_ |
| 6 #define UI_AURA_DESKTOP_H_ | 6 #define UI_AURA_DESKTOP_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| 12 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
| 13 #include "base/task.h" | 13 #include "base/task.h" |
| 14 #include "ui/aura/aura_export.h" | 14 #include "ui/aura/aura_export.h" |
| 15 #include "ui/aura/cursor.h" | 15 #include "ui/aura/cursor.h" |
| 16 #include "ui/aura/focus_manager.h" | 16 #include "ui/aura/focus_manager.h" |
| 17 #include "ui/aura/window.h" | 17 #include "ui/aura/window.h" |
| 18 #include "ui/base/events.h" | 18 #include "ui/base/events.h" |
| 19 #include "ui/gfx/compositor/compositor.h" | 19 #include "ui/gfx/compositor/compositor.h" |
| 20 #include "ui/gfx/compositor/layer_animation_observer.h" | 20 #include "ui/gfx/compositor/layer_animation_observer.h" |
| 21 #include "ui/gfx/native_widget_types.h" | 21 #include "ui/gfx/native_widget_types.h" |
| 22 #include "ui/gfx/point.h" | 22 #include "ui/gfx/point.h" |
| 23 | 23 |
| 24 namespace gfx { | 24 namespace gfx { |
| 25 class Size; | 25 class Size; |
| 26 } | 26 } |
| 27 | 27 |
| 28 namespace ui { | 28 namespace ui { |
| 29 class InputMethod; |
| 29 class LayerAnimationSequence; | 30 class LayerAnimationSequence; |
| 30 class Transform; | 31 class Transform; |
| 31 } | 32 } |
| 32 | 33 |
| 33 namespace aura { | 34 namespace aura { |
| 34 | 35 |
| 35 class DesktopHost; | 36 class DesktopHost; |
| 36 class DesktopObserver; | 37 class DesktopObserver; |
| 37 class KeyEvent; | 38 class KeyEvent; |
| 38 class MouseEvent; | 39 class MouseEvent; |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 | 136 |
| 136 // Sets capture to the specified window. | 137 // Sets capture to the specified window. |
| 137 void SetCapture(Window* window); | 138 void SetCapture(Window* window); |
| 138 | 139 |
| 139 // If |window| has mouse capture, the current capture window is set to NULL. | 140 // If |window| has mouse capture, the current capture window is set to NULL. |
| 140 void ReleaseCapture(Window* window); | 141 void ReleaseCapture(Window* window); |
| 141 | 142 |
| 142 // Overridden from Window: | 143 // Overridden from Window: |
| 143 virtual void SetTransform(const ui::Transform& transform) OVERRIDE; | 144 virtual void SetTransform(const ui::Transform& transform) OVERRIDE; |
| 144 | 145 |
| 146 // Gets the input method for the desktop. |
| 147 ui::InputMethod* GetInputMethod(); |
| 148 |
| 145 #if !defined(NDEBUG) | 149 #if !defined(NDEBUG) |
| 146 // Toggles the host's full screen state. | 150 // Toggles the host's full screen state. |
| 147 void ToggleFullScreen(); | 151 void ToggleFullScreen(); |
| 148 #endif | 152 #endif |
| 149 | 153 |
| 150 private: | 154 private: |
| 151 Desktop(); | 155 Desktop(); |
| 152 virtual ~Desktop(); | 156 virtual ~Desktop(); |
| 153 | 157 |
| 154 // Called whenever the mouse moves, tracks the current |mouse_moved_handler_|, | 158 // Called whenever the mouse moves, tracks the current |mouse_moved_handler_|, |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 Window* mouse_moved_handler_; | 235 Window* mouse_moved_handler_; |
| 232 Window* focused_window_; | 236 Window* focused_window_; |
| 233 Window* touch_event_handler_; | 237 Window* touch_event_handler_; |
| 234 | 238 |
| 235 DISALLOW_COPY_AND_ASSIGN(Desktop); | 239 DISALLOW_COPY_AND_ASSIGN(Desktop); |
| 236 }; | 240 }; |
| 237 | 241 |
| 238 } // namespace aura | 242 } // namespace aura |
| 239 | 243 |
| 240 #endif // UI_AURA_DESKTOP_H_ | 244 #endif // UI_AURA_DESKTOP_H_ |
| OLD | NEW |