OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/views/ime/mock_input_method.h" | 5 #include "ui/views/ime/mock_input_method.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "ui/base/event.h" | 9 #include "ui/base/event.h" |
10 #include "ui/base/ime/text_input_client.h" | 10 #include "ui/base/ime/text_input_client.h" |
11 #include "ui/base/keycodes/keyboard_codes.h" | 11 #include "ui/base/keycodes/keyboard_codes.h" |
12 #include "ui/views/events/event.h" | |
13 #include "ui/views/widget/widget.h" | 12 #include "ui/views/widget/widget.h" |
14 | 13 |
15 namespace views { | 14 namespace views { |
16 | 15 |
17 MockInputMethod::MockInputMethod() | 16 MockInputMethod::MockInputMethod() |
18 : composition_changed_(false), | 17 : composition_changed_(false), |
19 focus_changed_(false), | 18 focus_changed_(false), |
20 text_input_type_changed_(false), | 19 text_input_type_changed_(false), |
21 caret_bounds_changed_(false), | 20 caret_bounds_changed_(false), |
22 cancel_composition_called_(false), | 21 cancel_composition_called_(false), |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 cancel_composition_called_ = false; | 164 cancel_composition_called_ = false; |
166 } | 165 } |
167 | 166 |
168 void MockInputMethod::ClearResult() { | 167 void MockInputMethod::ClearResult() { |
169 composition_.Clear(); | 168 composition_.Clear(); |
170 composition_changed_ = false; | 169 composition_changed_ = false; |
171 result_text_.clear(); | 170 result_text_.clear(); |
172 } | 171 } |
173 | 172 |
174 } // namespace views | 173 } // namespace views |
OLD | NEW |