| 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" |
| 11 #include "ui/base/ime/text_input_mode.h" | 11 #include "ui/base/ime/text_input_mode.h" |
| 12 #include "ui/base/ime/text_input_type.h" | 12 #include "ui/base/ime/text_input_type.h" |
| 13 | 13 |
| 14 namespace content { | 14 namespace content { |
| 15 | 15 |
| 16 struct CONTENT_EXPORT TextInputState { | 16 struct CONTENT_EXPORT TextInputState { |
| 17 TextInputState(); | 17 TextInputState(); |
| 18 TextInputState(const TextInputState& other); |
| 18 | 19 |
| 19 // Type of the input field. | 20 // Type of the input field. |
| 20 ui::TextInputType type; | 21 ui::TextInputType type; |
| 21 | 22 |
| 22 // The mode of input field. | 23 // The mode of input field. |
| 23 ui::TextInputMode mode; | 24 ui::TextInputMode mode; |
| 24 | 25 |
| 25 // The flags of input field (autocorrect, autocomplete, etc.) | 26 // The flags of input field (autocorrect, autocomplete, etc.) |
| 26 int flags; | 27 int flags; |
| 27 | 28 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 51 bool show_ime_if_needed; | 52 bool show_ime_if_needed; |
| 52 | 53 |
| 53 // Whether this change is originated from non-IME (e.g., Javascript, | 54 // Whether this change is originated from non-IME (e.g., Javascript, |
| 54 // Autofill). | 55 // Autofill). |
| 55 bool is_non_ime_change; | 56 bool is_non_ime_change; |
| 56 }; | 57 }; |
| 57 | 58 |
| 58 } // namespace content | 59 } // namespace content |
| 59 | 60 |
| 60 #endif // CONTENT_COMMON_TEXT_INPUT_STATE_H_ | 61 #endif // CONTENT_COMMON_TEXT_INPUT_STATE_H_ |
| OLD | NEW |