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

Unified Diff: components/arc/ime/arc_ime_bridge.h

Issue 1605273002: ARC: Show virtual keyboard when necessary on text input type change events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add gyp/gn dependency to ui test_support. Created 4 years, 11 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
Index: components/arc/ime/arc_ime_bridge.h
diff --git a/components/arc/ime/arc_ime_bridge.h b/components/arc/ime/arc_ime_bridge.h
index 7c969b33c1266b07896b9800ce872f164b575bc8..1fcfc1b2075c97a313314a8c9a2b846a60a6fb3c 100644
--- a/components/arc/ime/arc_ime_bridge.h
+++ b/components/arc/ime/arc_ime_bridge.h
@@ -45,6 +45,9 @@ class ArcImeBridge : public ArcService,
// Injects the custom IPC host object for testing purpose only.
void SetIpcHostForTesting(scoped_ptr<ArcImeIpcHost> test_ipc_host);
+ // Injects the custom IME for testing purpose only.
+ void SetInputMethodForTesting(ui::InputMethod* test_input_method);
+
// Overridden from aura::EnvObserver:
void OnWindowInitialized(aura::Window* new_window) override;
@@ -104,6 +107,8 @@ class ArcImeBridge : public ArcService,
aura::WindowTracker arc_windows_;
aura::WindowTracker focused_arc_window_;
+ ui::InputMethod* test_input_method_;
+
DISALLOW_COPY_AND_ASSIGN(ArcImeBridge);
};

Powered by Google App Engine
This is Rietveld 408576698