Chromium Code Reviews| 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 #include "content/common/text_input_state.h" | 5 #include "content/common/text_input_state.h" |
| 6 | 6 |
| 7 namespace content { | 7 namespace content { |
| 8 | 8 |
| 9 TextInputState::TextInputState() | 9 TextInputState::TextInputState() |
| 10 : type(ui::TEXT_INPUT_TYPE_NONE), | 10 : type(ui::TEXT_INPUT_TYPE_NONE), |
| 11 mode(ui::TEXT_INPUT_MODE_DEFAULT), | 11 mode(ui::TEXT_INPUT_MODE_DEFAULT), |
| 12 flags(0), | 12 flags(0), |
| 13 selection_start(0), | |
| 14 selection_end(0), | |
| 15 composition_start(-1), | |
| 16 composition_end(-1), | |
| 13 can_compose_inline(true), | 17 can_compose_inline(true), |
| 14 show_ime_if_needed(false) {} | 18 show_ime_if_needed(false), |
| 19 is_non_ime_change(true) {} | |
|
EhsanK
2016/04/15 11:59:28
changwan@ will have a better opinion, but I think
kinaba
2016/04/15 16:53:37
You're right that we should not cause sending unma
Charlie Reis
2016/04/15 16:57:39
+1 to false (from an uninformed standpoint), but I
Charlie Reis
2016/04/15 17:16:53
Ah, our comments overlapped. Your explanation mak
EhsanK
2016/04/15 18:05:15
I think based on your comment it has to be initial
| |
| 15 | 20 |
| 16 TextInputState::TextInputState(const TextInputState& other) = default; | 21 TextInputState::TextInputState(const TextInputState& other) = default; |
| 17 | 22 |
| 18 } // namespace content | 23 } // namespace content |
| OLD | NEW |