| 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/fake_input_method.h" | 5 #include "ui/base/ime/fake_input_method.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
| 9 #include "ui/base/events/event.h" | 9 #include "ui/base/events/event.h" |
| 10 #include "ui/base/events/event_constants.h" | 10 #include "ui/base/events/event_constants.h" |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 } | 130 } |
| 131 | 131 |
| 132 base::i18n::TextDirection FakeInputMethod::GetInputTextDirection() { | 132 base::i18n::TextDirection FakeInputMethod::GetInputTextDirection() { |
| 133 return base::i18n::UNKNOWN_DIRECTION; | 133 return base::i18n::UNKNOWN_DIRECTION; |
| 134 } | 134 } |
| 135 | 135 |
| 136 bool FakeInputMethod::IsActive() { | 136 bool FakeInputMethod::IsActive() { |
| 137 return true; | 137 return true; |
| 138 } | 138 } |
| 139 | 139 |
| 140 bool FakeInputMethod::IsCandidatePopupOpen() const { |
| 141 return false; |
| 142 } |
| 143 |
| 140 ui::TextInputType FakeInputMethod::GetTextInputType() const { | 144 ui::TextInputType FakeInputMethod::GetTextInputType() const { |
| 141 return ui::TEXT_INPUT_TYPE_NONE; | 145 return ui::TEXT_INPUT_TYPE_NONE; |
| 142 } | 146 } |
| 143 | 147 |
| 144 bool FakeInputMethod::CanComposeInline() const { | 148 bool FakeInputMethod::CanComposeInline() const { |
| 145 return true; | 149 return true; |
| 146 } | 150 } |
| 147 | 151 |
| 148 void FakeInputMethod::AddObserver(InputMethodObserver* observer) { | 152 void FakeInputMethod::AddObserver(InputMethodObserver* observer) { |
| 149 observers_.AddObserver(observer); | 153 observers_.AddObserver(observer); |
| 150 } | 154 } |
| 151 | 155 |
| 152 void FakeInputMethod::RemoveObserver(InputMethodObserver* observer) { | 156 void FakeInputMethod::RemoveObserver(InputMethodObserver* observer) { |
| 153 observers_.RemoveObserver(observer); | 157 observers_.RemoveObserver(observer); |
| 154 } | 158 } |
| 155 | 159 |
| 156 } // namespace ui | 160 } // namespace ui |
| OLD | NEW |