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_HOST_H_ | 5 #ifndef UI_AURA_DESKTOP_HOST_H_ |
6 #define UI_AURA_DESKTOP_HOST_H_ | 6 #define UI_AURA_DESKTOP_HOST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "ui/aura/cursor.h" | 10 #include "ui/aura/cursor.h" |
11 #include "ui/gfx/native_widget_types.h" | 11 #include "ui/gfx/native_widget_types.h" |
12 | 12 |
| 13 namespace ui { |
| 14 class InputMethod; |
| 15 } |
| 16 |
13 namespace gfx { | 17 namespace gfx { |
14 class Point; | 18 class Point; |
15 class Rect; | 19 class Rect; |
16 class Size; | 20 class Size; |
17 } | 21 } |
18 | 22 |
19 namespace aura { | 23 namespace aura { |
20 | 24 |
21 class Desktop; | 25 class Desktop; |
22 | 26 |
(...skipping 28 matching lines...) Expand all Loading... |
51 virtual void SetSize(const gfx::Size& size) = 0; | 55 virtual void SetSize(const gfx::Size& size) = 0; |
52 | 56 |
53 // Sets the currently displayed cursor. | 57 // Sets the currently displayed cursor. |
54 virtual void SetCursor(gfx::NativeCursor cursor) = 0; | 58 virtual void SetCursor(gfx::NativeCursor cursor) = 0; |
55 | 59 |
56 // Queries the mouse's current position relative to the host window. | 60 // Queries the mouse's current position relative to the host window. |
57 // The position is constrained within the host window. | 61 // The position is constrained within the host window. |
58 // You should probably call Desktop::last_mouse_location() instead; this | 62 // You should probably call Desktop::last_mouse_location() instead; this |
59 // method can be expensive. | 63 // method can be expensive. |
60 virtual gfx::Point QueryMouseLocation() = 0; | 64 virtual gfx::Point QueryMouseLocation() = 0; |
| 65 |
| 66 // Gets the input method for the desktop. |
| 67 virtual ui::InputMethod* GetInputMethod() = 0; |
61 }; | 68 }; |
62 | 69 |
63 } // namespace aura | 70 } // namespace aura |
64 | 71 |
65 #endif // UI_AURA_DESKTOP_HOST_H_ | 72 #endif // UI_AURA_DESKTOP_HOST_H_ |
OLD | NEW |