| 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 "ui/base/ime/mock_input_method.h" | 5 #include "ui/base/ime/mock_input_method.h" |
| 6 | 6 |
| 7 #include "ui/base/ime/input_method_delegate.h" | 7 #include "ui/base/ime/input_method_delegate.h" |
| 8 #include "ui/base/ime/input_method_log_collector.h" |
| 8 #include "ui/events/event.h" | 9 #include "ui/events/event.h" |
| 9 | 10 |
| 10 namespace ui { | 11 namespace ui { |
| 11 | 12 |
| 12 MockInputMethod::MockInputMethod(internal::InputMethodDelegate* delegate) | 13 MockInputMethod::MockInputMethod(internal::InputMethodDelegate* delegate) |
| 13 : text_input_client_(NULL), delegate_(delegate) { | 14 : text_input_client_(NULL), delegate_(delegate) { |
| 14 } | 15 } |
| 15 | 16 |
| 16 MockInputMethod::~MockInputMethod() { | 17 MockInputMethod::~MockInputMethod() { |
| 17 FOR_EACH_OBSERVER(InputMethodObserver, observer_list_, | 18 FOR_EACH_OBSERVER(InputMethodObserver, observer_list_, |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 } | 110 } |
| 110 | 111 |
| 111 void MockInputMethod::AddObserver(InputMethodObserver* observer) { | 112 void MockInputMethod::AddObserver(InputMethodObserver* observer) { |
| 112 observer_list_.AddObserver(observer); | 113 observer_list_.AddObserver(observer); |
| 113 } | 114 } |
| 114 | 115 |
| 115 void MockInputMethod::RemoveObserver(InputMethodObserver* observer) { | 116 void MockInputMethod::RemoveObserver(InputMethodObserver* observer) { |
| 116 observer_list_.RemoveObserver(observer); | 117 observer_list_.RemoveObserver(observer); |
| 117 } | 118 } |
| 118 | 119 |
| 120 InputMethodLogCollector* MockInputMethod::GetLogCollector() { |
| 121 return nullptr; |
| 122 } |
| 123 |
| 119 } // namespace ui | 124 } // namespace ui |
| OLD | NEW |