OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/base/ime/chromeos/mock_ime_engine_handler.h" | 5 #include "ui/base/ime/chromeos/mock_ime_engine_handler.h" |
6 #include "ui/base/ime/text_input_flags.h" | 6 #include "ui/base/ime/text_input_flags.h" |
7 | 7 |
8 namespace chromeos { | 8 namespace chromeos { |
9 | 9 |
10 MockIMEEngineHandler::MockIMEEngineHandler() | 10 MockIMEEngineHandler::MockIMEEngineHandler() |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 } | 42 } |
43 | 43 |
44 void MockIMEEngineHandler::PropertyActivate(const std::string& property_name) { | 44 void MockIMEEngineHandler::PropertyActivate(const std::string& property_name) { |
45 last_activated_property_ = property_name; | 45 last_activated_property_ = property_name; |
46 } | 46 } |
47 | 47 |
48 void MockIMEEngineHandler::Reset() { | 48 void MockIMEEngineHandler::Reset() { |
49 ++reset_call_count_; | 49 ++reset_call_count_; |
50 } | 50 } |
51 | 51 |
| 52 void MockIMEEngineHandler::MaybeSwitchEngine() { |
| 53 } |
| 54 |
52 bool MockIMEEngineHandler::IsInterestedInKeyEvent() const { | 55 bool MockIMEEngineHandler::IsInterestedInKeyEvent() const { |
53 return true; | 56 return true; |
54 } | 57 } |
55 | 58 |
56 void MockIMEEngineHandler::ProcessKeyEvent(const ui::KeyEvent& key_event, | 59 void MockIMEEngineHandler::ProcessKeyEvent(const ui::KeyEvent& key_event, |
57 KeyEventDoneCallback& callback) { | 60 KeyEventDoneCallback& callback) { |
58 ++process_key_event_call_count_; | 61 ++process_key_event_call_count_; |
59 last_processed_key_event_.reset(new ui::KeyEvent(key_event)); | 62 last_processed_key_event_.reset(new ui::KeyEvent(key_event)); |
60 last_passed_callback_ = callback; | 63 last_passed_callback_ = callback; |
61 } | 64 } |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 return false; | 110 return false; |
108 } | 111 } |
109 | 112 |
110 bool MockIMEEngineHandler::SetCursorPosition(int context_id, | 113 bool MockIMEEngineHandler::SetCursorPosition(int context_id, |
111 int candidate_id, | 114 int candidate_id, |
112 std::string* error) { | 115 std::string* error) { |
113 return false; | 116 return false; |
114 } | 117 } |
115 | 118 |
116 } // namespace chromeos | 119 } // namespace chromeos |
OLD | NEW |