| 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/text_input_focus_manager.h" | 7 #include "ui/base/ime/text_input_focus_manager.h" |
| 8 #include "ui/base/ui_base_switches_util.h" | 8 #include "ui/base/ui_base_switches_util.h" |
| 9 | 9 |
| 10 namespace ui { | 10 namespace ui { |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 } | 111 } |
| 112 | 112 |
| 113 bool MockInputMethod::IsCandidatePopupOpen() const { | 113 bool MockInputMethod::IsCandidatePopupOpen() const { |
| 114 return false; | 114 return false; |
| 115 } | 115 } |
| 116 | 116 |
| 117 void MockInputMethod::ShowImeIfNeeded() { | 117 void MockInputMethod::ShowImeIfNeeded() { |
| 118 FOR_EACH_OBSERVER(InputMethodObserver, observer_list_, OnShowImeIfNeeded()); | 118 FOR_EACH_OBSERVER(InputMethodObserver, observer_list_, OnShowImeIfNeeded()); |
| 119 } | 119 } |
| 120 | 120 |
| 121 void MockInputMethod::SetSupportsOnScreenKeyboard(bool supports) { |
| 122 } |
| 123 |
| 124 bool MockInputMethod::SupportsOnScreenKeyboard() const { |
| 125 return false; |
| 126 } |
| 127 |
| 121 void MockInputMethod::AddObserver(InputMethodObserver* observer) { | 128 void MockInputMethod::AddObserver(InputMethodObserver* observer) { |
| 122 observer_list_.AddObserver(observer); | 129 observer_list_.AddObserver(observer); |
| 123 } | 130 } |
| 124 | 131 |
| 125 void MockInputMethod::RemoveObserver(InputMethodObserver* observer) { | 132 void MockInputMethod::RemoveObserver(InputMethodObserver* observer) { |
| 126 observer_list_.RemoveObserver(observer); | 133 observer_list_.RemoveObserver(observer); |
| 127 } | 134 } |
| 128 | 135 |
| 129 } // namespace ui | 136 } // namespace ui |
| OLD | NEW |