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

Side by Side Diff: ui/platform_window/text_input_state.cc

Issue 1825273002: Add more out of line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « ui/platform_window/text_input_state.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ui/platform_window/text_input_state.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698