| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |