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

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

Issue 782673002: MacViews: tryjobs for toolkit_views=1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: latest crrev/901823002 Created 5 years, 10 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_chromeos_unittest.cc ('k') | ui/events/keycodes/keyboard_code_conversion_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/ime/text_input_client.h
diff --git a/ui/base/ime/text_input_client.h b/ui/base/ime/text_input_client.h
index 19c602cd8e3c8c506ce9227bd5bb0dac3bb43df2..6de04d7e5ecfc2b56022ffbd8e5aa1005e7b0678 100644
--- a/ui/base/ime/text_input_client.h
+++ b/ui/base/ime/text_input_client.h
@@ -21,6 +21,8 @@ class Rect;
namespace ui {
+class KeyEvent;
+
// An interface implemented by a View that needs text input support.
class UI_BASE_IME_EXPORT TextInputClient {
public:
@@ -176,6 +178,10 @@ class UI_BASE_IME_EXPORT TextInputClient {
virtual bool IsEditingCommandEnabled(int command_id) = 0;
// Execute the command specified by |command_id|.
virtual void ExecuteEditingCommand(int command_id) = 0;
+
+ // Called in response to a KeyEvent before it is translated into an insert or
+ // editing command. Return true if |key_event| shouldn't be further processed.
+ virtual bool HandleAsKeyEventOnly(const ui::KeyEvent& key_event) = 0;
};
} // namespace ui
« no previous file with comments | « ui/base/ime/input_method_chromeos_unittest.cc ('k') | ui/events/keycodes/keyboard_code_conversion_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698