OLD | NEW |
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 #include "ui/platform_window/text_input_state.h" | 5 #include "ui/platform_window/text_input_state.h" |
6 | 6 |
7 namespace ui { | 7 namespace ui { |
8 | 8 |
9 TextInputState::TextInputState() | 9 TextInputState::TextInputState() |
10 : type(TEXT_INPUT_TYPE_NONE), | 10 : type(TEXT_INPUT_TYPE_NONE), |
(...skipping 14 matching lines...) Expand all Loading... |
25 bool can_compose_inline) | 25 bool can_compose_inline) |
26 : type(type), | 26 : type(type), |
27 flags(flags), | 27 flags(flags), |
28 text(text), | 28 text(text), |
29 selection_start(selection_start), | 29 selection_start(selection_start), |
30 selection_end(selection_end), | 30 selection_end(selection_end), |
31 composition_start(composition_start), | 31 composition_start(composition_start), |
32 composition_end(composition_end), | 32 composition_end(composition_end), |
33 can_compose_inline(can_compose_inline) {} | 33 can_compose_inline(can_compose_inline) {} |
34 | 34 |
| 35 TextInputState::TextInputState(const TextInputState& other) = default; |
| 36 |
35 bool TextInputState::operator==(const TextInputState& other) const { | 37 bool TextInputState::operator==(const TextInputState& other) const { |
36 return type == other.type && | 38 return type == other.type && |
37 flags == other.flags && | 39 flags == other.flags && |
38 text == other.text && | 40 text == other.text && |
39 selection_start == other.selection_start && | 41 selection_start == other.selection_start && |
40 selection_end == other.selection_end && | 42 selection_end == other.selection_end && |
41 composition_start == other.composition_start && | 43 composition_start == other.composition_start && |
42 composition_end == other.composition_end && | 44 composition_end == other.composition_end && |
43 can_compose_inline == other.can_compose_inline; | 45 can_compose_inline == other.can_compose_inline; |
44 } | 46 } |
45 | 47 |
46 } // namespace ui | 48 } // namespace ui |
OLD | NEW |