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

Side by Side Diff: content/common/text_input_state.h

Issue 2370393002: Extracting placeholder information from Webkit to Blimp (Closed)
Patch Set: Observing InputMethod Created 4 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 CONTENT_COMMON_TEXT_INPUT_STATE_H_ 5 #ifndef CONTENT_COMMON_TEXT_INPUT_STATE_H_
6 #define CONTENT_COMMON_TEXT_INPUT_STATE_H_ 6 #define CONTENT_COMMON_TEXT_INPUT_STATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 14 matching lines...) Expand all
25 25
26 // The mode of input field. 26 // The mode of input field.
27 ui::TextInputMode mode; 27 ui::TextInputMode mode;
28 28
29 // The flags of input field (autocorrect, autocomplete, etc.) 29 // The flags of input field (autocorrect, autocomplete, etc.)
30 int flags; 30 int flags;
31 31
32 // The value of input field. 32 // The value of input field.
33 std::string value; 33 std::string value;
34 34
35 // The placeholder for the input field, if any.
36 std::string placeholder;
37
35 // The cursor position of the current selection start, or the caret position 38 // The cursor position of the current selection start, or the caret position
36 // if nothing is selected. 39 // if nothing is selected.
37 int selection_start; 40 int selection_start;
38 41
39 // The cursor position of the current selection end, or the caret position if 42 // The cursor position of the current selection end, or the caret position if
40 // nothing is selected. 43 // nothing is selected.
41 int selection_end; 44 int selection_end;
42 45
43 // The start position of the current composition, or -1 if there is none. 46 // The start position of the current composition, or -1 if there is none.
44 int composition_start; 47 int composition_start;
(...skipping 13 matching lines...) Expand all
58 // Autofill). 61 // Autofill).
59 bool is_non_ime_change; 62 bool is_non_ime_change;
60 63
61 // Whether we are in a batch edit. 64 // Whether we are in a batch edit.
62 bool batch_edit; 65 bool batch_edit;
63 }; 66 };
64 67
65 } // namespace content 68 } // namespace content
66 69
67 #endif // CONTENT_COMMON_TEXT_INPUT_STATE_H_ 70 #endif // CONTENT_COMMON_TEXT_INPUT_STATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698