OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/chromeos/input_method/mock_input_method_manager.h" | 5 #include "chrome/browser/chromeos/input_method/mock_input_method_manager.h" |
6 | 6 |
7 namespace chromeos { | 7 namespace chromeos { |
8 namespace input_method { | 8 namespace input_method { |
9 | 9 |
10 MockInputMethodManager::State::State(MockInputMethodManager* manager) | 10 MockInputMethodManager::State::State(MockInputMethodManager* manager) |
(...skipping 21 matching lines...) Expand all Loading... |
32 | 32 |
33 void MockInputMethodManager::AddObserver( | 33 void MockInputMethodManager::AddObserver( |
34 InputMethodManager::Observer* observer) { | 34 InputMethodManager::Observer* observer) { |
35 ++add_observer_count_; | 35 ++add_observer_count_; |
36 } | 36 } |
37 | 37 |
38 void MockInputMethodManager::AddCandidateWindowObserver( | 38 void MockInputMethodManager::AddCandidateWindowObserver( |
39 InputMethodManager::CandidateWindowObserver* observer) { | 39 InputMethodManager::CandidateWindowObserver* observer) { |
40 } | 40 } |
41 | 41 |
| 42 void MockInputMethodManager::AddImeMenuObserver( |
| 43 InputMethodManager::ImeMenuObserver* observer) {} |
| 44 |
42 void MockInputMethodManager::RemoveObserver( | 45 void MockInputMethodManager::RemoveObserver( |
43 InputMethodManager::Observer* observer) { | 46 InputMethodManager::Observer* observer) { |
44 ++remove_observer_count_; | 47 ++remove_observer_count_; |
45 } | 48 } |
46 | 49 |
47 void MockInputMethodManager::RemoveCandidateWindowObserver( | 50 void MockInputMethodManager::RemoveCandidateWindowObserver( |
48 InputMethodManager::CandidateWindowObserver* observer) { | 51 InputMethodManager::CandidateWindowObserver* observer) { |
49 } | 52 } |
50 | 53 |
| 54 void MockInputMethodManager::RemoveImeMenuObserver( |
| 55 InputMethodManager::ImeMenuObserver* observer) {} |
| 56 |
51 scoped_ptr<InputMethodDescriptors> | 57 scoped_ptr<InputMethodDescriptors> |
52 MockInputMethodManager::GetSupportedInputMethods() const { | 58 MockInputMethodManager::GetSupportedInputMethods() const { |
53 scoped_ptr<InputMethodDescriptors> result(new InputMethodDescriptors); | 59 scoped_ptr<InputMethodDescriptors> result(new InputMethodDescriptors); |
54 result->push_back( | 60 result->push_back( |
55 InputMethodUtil::GetFallbackInputMethodDescriptor()); | 61 InputMethodUtil::GetFallbackInputMethodDescriptor()); |
56 return result.Pass(); | 62 return result.Pass(); |
57 } | 63 } |
58 | 64 |
59 scoped_ptr<InputMethodDescriptors> | 65 scoped_ptr<InputMethodDescriptors> |
60 MockInputMethodManager::State::GetActiveInputMethods() const { | 66 MockInputMethodManager::State::GetActiveInputMethods() const { |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 scoped_refptr<InputMethodManager::State> state) { | 238 scoped_refptr<InputMethodManager::State> state) { |
233 state_ = scoped_refptr<MockInputMethodManager::State>( | 239 state_ = scoped_refptr<MockInputMethodManager::State>( |
234 static_cast<MockInputMethodManager::State*>(state.get())); | 240 static_cast<MockInputMethodManager::State*>(state.get())); |
235 } | 241 } |
236 | 242 |
237 void MockInputMethodManager::SetCurrentInputMethodId( | 243 void MockInputMethodManager::SetCurrentInputMethodId( |
238 const std::string& input_method_id) { | 244 const std::string& input_method_id) { |
239 state_->current_input_method_id = input_method_id; | 245 state_->current_input_method_id = input_method_id; |
240 } | 246 } |
241 | 247 |
| 248 void MockInputMethodManager::ImeMenuActivated() {} |
| 249 |
| 250 void MockInputMethodManager::ImeMenuDeactivated() {} |
| 251 |
242 } // namespace input_method | 252 } // namespace input_method |
243 } // namespace chromeos | 253 } // namespace chromeos |
OLD | NEW |