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

Unified Diff: ui/base/ime/input_method_base.h

Issue 1771173002: Implement input.ime.sendKeyEvents API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test failure. Created 4 years, 9 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 | « ui/base/ime/input_method_auralinux.cc ('k') | ui/base/ime/input_method_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/ime/input_method_base.h
diff --git a/ui/base/ime/input_method_base.h b/ui/base/ime/input_method_base.h
index a0ac432c63f6d567d3c5492fdc59959519f0f76f..3a44e37f0ece9239278d04e482b222325ba628da 100644
--- a/ui/base/ime/input_method_base.h
+++ b/ui/base/ime/input_method_base.h
@@ -69,6 +69,7 @@ class UI_BASE_IME_EXPORT InputMethodBase
uint32_t cursor_pos,
bool visible) override;
void DeleteSurroundingText(int32_t offset, uint32_t length) override;
+ void SendKeyEvent(KeyEvent* event) override;
// Sends a fake key event for IME composing without physical key events.
// Returns true if the faked key event is stopped propagation.
@@ -102,6 +103,10 @@ class UI_BASE_IME_EXPORT InputMethodBase
// Gets the bounds of the composition text or cursor in |client|.
std::vector<gfx::Rect> GetCompositionBounds(const TextInputClient* client);
+ // Indicates whether the IME extension is currently sending a fake key event.
+ // This is used in SendKeyEvent.
+ bool sending_key_event_;
+
private:
void SetFocusedTextInputClientInternal(TextInputClient* client);
« no previous file with comments | « ui/base/ime/input_method_auralinux.cc ('k') | ui/base/ime/input_method_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698