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

Unified Diff: ash/host/ash_window_tree_host.h

Issue 2909603002: Revert of Remove InputMethodEventHandler. (Closed)
Patch Set: Created 3 years, 7 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/display/window_tree_host_manager.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 c52ee185eb5619b49601a6e19530f6e09811c3a6..dfe20f5ec327959aa6a3ddc58896012b04e50f6d 100644
--- a/ash/host/ash_window_tree_host.h
+++ b/ash/host/ash_window_tree_host.h
@@ -23,6 +23,7 @@
namespace ash {
struct AshWindowTreeHostInitParams;
+class InputMethodEventHandler;
class RootWindowTransformer;
class ASH_EXPORT AshWindowTreeHost {
@@ -32,6 +33,14 @@
static std::unique_ptr<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;
@@ -59,6 +68,9 @@
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/display/window_tree_host_manager.cc ('k') | ash/host/ash_window_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698