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

Side by Side Diff: ui/aura/desktop_host.h

Issue 8576005: IME (input method editor) support for Aura, part 3 of 3: Use ui::InputMethod in ash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed comments Created 9 years 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
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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
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;
61 65
62 // Posts |native_event| to the platform's event queue. 66 // Posts |native_event| to the platform's event queue.
63 virtual void PostNativeEvent(const base::NativeEvent& native_event) = 0; 67 virtual void PostNativeEvent(const base::NativeEvent& native_event) = 0;
68
69 // Gets the input method for the desktop.
70 virtual ui::InputMethod* GetInputMethod() = 0;
64 }; 71 };
65 72
66 } // namespace aura 73 } // namespace aura
67 74
68 #endif // UI_AURA_DESKTOP_HOST_H_ 75 #endif // UI_AURA_DESKTOP_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698