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

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

Issue 6711008: Add common data types for input method support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 9 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/composition_underline.h ('k') | ui/ui_base.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/ime/text_input_type.h
diff --git a/ui/base/ime/text_input_type.h b/ui/base/ime/text_input_type.h
new file mode 100644
index 0000000000000000000000000000000000000000..19c13326d0948a79c56c64541acae17eee0e41f1
--- /dev/null
+++ b/ui/base/ime/text_input_type.h
@@ -0,0 +1,30 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_BASE_IME_TEXT_INPUT_TYPE_H_
+#define UI_BASE_IME_TEXT_INPUT_TYPE_H_
+#pragma once
+
+namespace ui {
+
+// Intentionally keep sync with WebKit::WebTextInputType defined in:
+// third_party/WebKit/Source/WebKit/chromium/public/WebTextInputType.h
+enum TextInputType {
+ // Input caret is not in an editable node, no input method shall be used.
+ TEXT_INPUT_TYPE_NONE,
+
+ // Input caret is in a normal editable node, any input method can be used.
+ TEXT_INPUT_TYPE_TEXT,
+
+ // Input caret is in a password box, an input method may be used only if
+ // it's suitable for password input.
+ TEXT_INPUT_TYPE_PASSWORD,
+
+ // TODO(suzhe): Add more text input types when necessary, eg. Number, Date,
+ // Email, URL, etc.
+};
+
+} // namespace ui
+
+#endif // UI_BASE_IME_TEXT_INPUT_TYPE_H_
« no previous file with comments | « ui/base/ime/composition_underline.h ('k') | ui/ui_base.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698