1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef UI_BASE_IME_TEXT_INPUT_TYPE_H_
6 #define UI_BASE_IME_TEXT_INPUT_TYPE_H_
10 // Intentionally keep sync with WebKit::WebTextInputType defined in:
11 // third_party/WebKit/public/web/WebTextInputType.h
13 // Input caret is not in an editable node, no input method shall be used.
16 // Input caret is in a normal editable node, any input method can be used.
19 // Input caret is in a password box, an input method may be used only if
20 // it's suitable for password input.
21 TEXT_INPUT_TYPE_PASSWORD,
23 TEXT_INPUT_TYPE_SEARCH,
24 TEXT_INPUT_TYPE_EMAIL,
25 TEXT_INPUT_TYPE_NUMBER,
26 TEXT_INPUT_TYPE_TELEPHONE,
29 TEXT_INPUT_TYPE_DATE_TIME,
30 TEXT_INPUT_TYPE_DATE_TIME_LOCAL,
31 TEXT_INPUT_TYPE_MONTH,
34 TEXT_INPUT_TYPE_TEXT_AREA,
36 // Input caret is in a contenteditable node (not an INPUT field).
37 TEXT_INPUT_TYPE_CONTENT_EDITABLE,
39 // The focused node is date time field. The date time field does not have
40 // input caret but it is necessary to distinguish from TEXT_INPUT_TYPE_NONE
41 // for on-screen keyboard.
42 TEXT_INPUT_TYPE_DATE_TIME_FIELD,
44 TEXT_INPUT_TYPE_MAX = TEXT_INPUT_TYPE_DATE_TIME_FIELD,
49 #endif // UI_BASE_IME_TEXT_INPUT_TYPE_H_