diff options
Diffstat (limited to 'ui/platform_window')
| -rw-r--r-- | ui/platform_window/text_input_state.cc | 2 | ||||
| -rw-r--r-- | ui/platform_window/text_input_state.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/ui/platform_window/text_input_state.cc b/ui/platform_window/text_input_state.cc index ce6db84..ffc3e52 100644 --- a/ui/platform_window/text_input_state.cc +++ b/ui/platform_window/text_input_state.cc @@ -32,6 +32,8 @@ TextInputState::TextInputState(TextInputType type, composition_end(composition_end), can_compose_inline(can_compose_inline) {} +TextInputState::TextInputState(const TextInputState& other) = default; + bool TextInputState::operator==(const TextInputState& other) const { return type == other.type && flags == other.flags && diff --git a/ui/platform_window/text_input_state.h b/ui/platform_window/text_input_state.h index 14d016b..c2dff0d 100644 --- a/ui/platform_window/text_input_state.h +++ b/ui/platform_window/text_input_state.h @@ -23,6 +23,7 @@ struct TextInputState { int composition_start, int composition_end, bool can_compose_inline); + TextInputState(const TextInputState& other); bool operator==(const TextInputState& other) const; // The type of input field. |
