| 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 namespace ui { | 7 namespace ui { |
| 8 | 8 |
| 9 MockInputMethod::MockInputMethod(internal::InputMethodDelegate* delegate) | 9 MockInputMethod::MockInputMethod(internal::InputMethodDelegate* delegate) |
| 10 : text_input_client_(NULL) { | 10 : text_input_client_(NULL) { |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 } | 84 } |
| 85 | 85 |
| 86 ui::TextInputType MockInputMethod::GetTextInputType() const { | 86 ui::TextInputType MockInputMethod::GetTextInputType() const { |
| 87 return ui::TEXT_INPUT_TYPE_NONE; | 87 return ui::TEXT_INPUT_TYPE_NONE; |
| 88 } | 88 } |
| 89 | 89 |
| 90 bool MockInputMethod::CanComposeInline() const { | 90 bool MockInputMethod::CanComposeInline() const { |
| 91 return true; | 91 return true; |
| 92 } | 92 } |
| 93 | 93 |
| 94 bool MockInputMethod::IsPopupOpen() const { |
| 95 return false; |
| 96 } |
| 97 |
| 94 void MockInputMethod::AddObserver(InputMethodObserver* observer) { | 98 void MockInputMethod::AddObserver(InputMethodObserver* observer) { |
| 95 observer_list_.AddObserver(static_cast<Observer*>(observer)); | 99 observer_list_.AddObserver(static_cast<Observer*>(observer)); |
| 96 } | 100 } |
| 97 | 101 |
| 98 void MockInputMethod::RemoveObserver(InputMethodObserver* observer) { | 102 void MockInputMethod::RemoveObserver(InputMethodObserver* observer) { |
| 99 observer_list_.RemoveObserver(static_cast<Observer*>(observer)); | 103 observer_list_.RemoveObserver(static_cast<Observer*>(observer)); |
| 100 } | 104 } |
| 101 | 105 |
| 102 } // namespace ui | 106 } // namespace ui |
| OLD | NEW |