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

Side by Side Diff: ui/base/ime/chromeos/mock_ime_engine_handler.cc

Issue 2597413002: Makes the InputMethodEngine can be switched per profile when the top-level browser window is switch… (Closed)
Patch Set: . Created 3 years, 12 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
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ui/base/ime/chromeos/mock_ime_engine_handler.h ('k') | ui/base/ime/ime_engine_handler_interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698