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

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

Issue 23751002: Add InputMethod::GetTextInputMode (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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: ui/base/ime/input_method.h
diff --git a/ui/base/ime/input_method.h b/ui/base/ime/input_method.h
index 575cbcdb3057c98cbe6b4677fa0f7507bcce2377..5cc16b7439cd1f64db89776e68f18276de02890e 100644
--- a/ui/base/ime/input_method.h
+++ b/ui/base/ime/input_method.h
@@ -10,6 +10,7 @@
#include "base/basictypes.h"
#include "base/event_types.h"
#include "base/i18n/rtl.h"
+#include "ui/base/ime/text_input_mode.h"
#include "ui/base/ime/text_input_type.h"
#include "ui/base/keycodes/keyboard_codes.h"
#include "ui/base/ui_export.h"
@@ -144,6 +145,10 @@ class InputMethod {
// ui::TEXT_INPUT_TYPE_NONE if there is no focused client.
virtual TextInputType GetTextInputType() const = 0;
+ // Gets the text input mode of the focused text input client. Returns
+ // ui::TEXT_INPUT_TYPE_DEFAULT if there is no focused client.
+ virtual TextInputMode GetTextInputMode() const = 0;
+
// Checks if the focused text input client supports inline composition.
virtual bool CanComposeInline() const = 0;

Powered by Google App Engine
This is Rietveld 408576698