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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 | 139 |
139 // Sets capture to the specified window. | 140 // Sets capture to the specified window. |
140 void SetCapture(Window* window); | 141 void SetCapture(Window* window); |
141 | 142 |
142 // If |window| has mouse capture, the current capture window is set to NULL. | 143 // If |window| has mouse capture, the current capture window is set to NULL. |
143 void ReleaseCapture(Window* window); | 144 void ReleaseCapture(Window* window); |
144 | 145 |
145 // Overridden from Window: | 146 // Overridden from Window: |
146 virtual void SetTransform(const ui::Transform& transform) OVERRIDE; | 147 virtual void SetTransform(const ui::Transform& transform) OVERRIDE; |
147 | 148 |
| 149 // Gets the input method for the desktop. |
| 150 ui::InputMethod* GetInputMethod(); |
| 151 |
148 #if !defined(NDEBUG) | 152 #if !defined(NDEBUG) |
149 // Toggles the host's full screen state. | 153 // Toggles the host's full screen state. |
150 void ToggleFullScreen(); | 154 void ToggleFullScreen(); |
151 #endif | 155 #endif |
152 | 156 |
153 private: | 157 private: |
154 Desktop(); | 158 Desktop(); |
155 virtual ~Desktop(); | 159 virtual ~Desktop(); |
156 | 160 |
157 // Called whenever the mouse moves, tracks the current |mouse_moved_handler_|, | 161 // Called whenever the mouse moves, tracks the current |mouse_moved_handler_|, |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 Window* mouse_moved_handler_; | 238 Window* mouse_moved_handler_; |
235 Window* focused_window_; | 239 Window* focused_window_; |
236 Window* touch_event_handler_; | 240 Window* touch_event_handler_; |
237 | 241 |
238 DISALLOW_COPY_AND_ASSIGN(Desktop); | 242 DISALLOW_COPY_AND_ASSIGN(Desktop); |
239 }; | 243 }; |
240 | 244 |
241 } // namespace aura | 245 } // namespace aura |
242 | 246 |
243 #endif // UI_AURA_DESKTOP_H_ | 247 #endif // UI_AURA_DESKTOP_H_ |
OLD | NEW |