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

Unified Diff: ash/host/ash_window_tree_host.h

Issue 1209663002: Use EventHandler for IME (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/host/ash_remote_window_tree_host_win.cc ('k') | ash/host/ash_window_tree_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/host/ash_window_tree_host.h
diff --git a/ash/host/ash_window_tree_host.h b/ash/host/ash_window_tree_host.h
index fab7afd1f7bbde725f594175eb5ed6a8f45f9cd7..54724aa5fcf9224d43fdba04e571375d7ff004b0 100644
--- a/ash/host/ash_window_tree_host.h
+++ b/ash/host/ash_window_tree_host.h
@@ -19,21 +19,33 @@ class Rect;
}
namespace ui {
+class EventSource;
+class KeyEvent;
class LocatedEvent;
}
namespace ash {
struct AshWindowTreeHostInitParams;
+class InputMethodEventHandler;
class RootWindowTransformer;
class ASH_EXPORT AshWindowTreeHost {
public:
+ AshWindowTreeHost();
virtual ~AshWindowTreeHost() {}
// Creates a new AshWindowTreeHost. The caller owns the returned value.
static AshWindowTreeHost* Create(
const AshWindowTreeHostInitParams& init_params);
+ void set_input_method_handler(InputMethodEventHandler* input_method_handler) {
+ input_method_handler_ = input_method_handler;
+ }
+
+ InputMethodEventHandler* input_method_handler() {
+ return input_method_handler_;
+ }
+
// Toggles the host's full screen state.
virtual void ToggleFullScreen() = 0;
@@ -60,6 +72,9 @@ class ASH_EXPORT AshWindowTreeHost {
protected:
// Translates the native mouse location into screen coordinates.
void TranslateLocatedEvent(ui::LocatedEvent* event);
+
+ private:
+ InputMethodEventHandler* input_method_handler_;
};
} // namespace ash
« no previous file with comments | « ash/host/ash_remote_window_tree_host_win.cc ('k') | ash/host/ash_window_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698