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

Side by Side Diff: ui/platform_window/text_input_state.h

Issue 1391893003: NOT FOR REVIEW: Aura on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_PLATFORM_WINDOW_TEXT_INPUT_STATE_H_ 5 #ifndef UI_PLATFORM_WINDOW_TEXT_INPUT_STATE_H_
6 #define UI_PLATFORM_WINDOW_TEXT_INPUT_STATE_H_ 6 #define UI_PLATFORM_WINDOW_TEXT_INPUT_STATE_H_
7 7
8 #include <string> 8 #include <string>
9 // TODO(mfomitchev): HACK
10 #include "ui/base/ime/text_input_type.h"
9 11
10 namespace ui { 12 namespace ui {
11 13
14 // TODO(mfomitchev): HACK
12 // Text input type which is based on blink::WebTextInputType. 15 // Text input type which is based on blink::WebTextInputType.
13 enum TextInputType { 16 //enum TextInputType {
14 TEXT_INPUT_TYPE_NONE, 17 // TEXT_INPUT_TYPE_NONE,
15 TEXT_INPUT_TYPE_TEXT, 18 // TEXT_INPUT_TYPE_TEXT,
16 TEXT_INPUT_TYPE_PASSWORD, 19 // TEXT_INPUT_TYPE_PASSWORD,
17 TEXT_INPUT_TYPE_SEARCH, 20 // TEXT_INPUT_TYPE_SEARCH,
18 TEXT_INPUT_TYPE_EMAIL, 21 // TEXT_INPUT_TYPE_EMAIL,
19 TEXT_INPUT_TYPE_NUMBER, 22 // TEXT_INPUT_TYPE_NUMBER,
20 TEXT_INPUT_TYPE_TELEPHONE, 23 // TEXT_INPUT_TYPE_TELEPHONE,
21 TEXT_INPUT_TYPE_URL, 24 // TEXT_INPUT_TYPE_URL,
22 TEXT_INPUT_TYPE_DATE, 25 // TEXT_INPUT_TYPE_DATE,
23 TEXT_INPUT_TYPE_DATE_TIME, 26 // TEXT_INPUT_TYPE_DATE_TIME,
24 TEXT_INPUT_TYPE_DATE_TIME_LOCAL, 27 // TEXT_INPUT_TYPE_DATE_TIME_LOCAL,
25 TEXT_INPUT_TYPE_MONTH, 28 // TEXT_INPUT_TYPE_MONTH,
26 TEXT_INPUT_TYPE_TIME, 29 // TEXT_INPUT_TYPE_TIME,
27 TEXT_INPUT_TYPE_WEEK, 30 // TEXT_INPUT_TYPE_WEEK,
28 TEXT_INPUT_TYPE_TEXT_AREA, 31 // TEXT_INPUT_TYPE_TEXT_AREA,
29 TEXT_INPUT_TYPE_LAST = TEXT_INPUT_TYPE_TEXT_AREA, 32 // TEXT_INPUT_TYPE_LAST = TEXT_INPUT_TYPE_TEXT_AREA,
30 }; 33 //};
31 34
32 // Text input flag which is based on blink::WebTextInputFlags. 35 // Text input flag which is based on blink::WebTextInputFlags.
33 enum TextInputFlag { 36 enum TextInputFlag {
34 TEXT_INPUT_FLAG_NONE, 37 TEXT_INPUT_FLAG_NONE,
35 TEXT_INPUT_FLAG_AUTO_COMPLETE_ON = 1 << 0, 38 TEXT_INPUT_FLAG_AUTO_COMPLETE_ON = 1 << 0,
36 TEXT_INPUT_FLAG_AUTO_COMPLETE_OFF = 1 << 1, 39 TEXT_INPUT_FLAG_AUTO_COMPLETE_OFF = 1 << 1,
37 TEXT_INPUT_FLAG_AUTO_CORRECT_ON = 1 << 2, 40 TEXT_INPUT_FLAG_AUTO_CORRECT_ON = 1 << 2,
38 TEXT_INPUT_FLAG_AUTO_CORRECT_OFF = 1 << 3, 41 TEXT_INPUT_FLAG_AUTO_CORRECT_OFF = 1 << 3,
39 TEXT_INPUT_FLAG_SPELL_CHECK_ON = 1 << 4, 42 TEXT_INPUT_FLAG_SPELL_CHECK_ON = 1 << 4,
40 TEXT_INPUT_FLAG_SPELL_CHECK_OFF = 1 << 5, 43 TEXT_INPUT_FLAG_SPELL_CHECK_OFF = 1 << 5,
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 // The end position of the current composition, or -1 if there is none. 84 // The end position of the current composition, or -1 if there is none.
82 int composition_end; 85 int composition_end;
83 86
84 // Whether or not inline composition can be performed for the current input. 87 // Whether or not inline composition can be performed for the current input.
85 bool can_compose_inline; 88 bool can_compose_inline;
86 }; 89 };
87 90
88 } // namespace ui 91 } // namespace ui
89 92
90 #endif // UI_PLATFORM_WINDOW_TEXT_INPUT_STATE_H_ 93 #endif // UI_PLATFORM_WINDOW_TEXT_INPUT_STATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698