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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 { | 140 bool FakeInputMethod::IsCandidatePopupOpen() const { |
141 return false; | 141 return false; |
142 } | 142 } |
143 | 143 |
144 ui::TextInputType FakeInputMethod::GetTextInputType() const { | 144 TextInputType FakeInputMethod::GetTextInputType() const { |
145 return ui::TEXT_INPUT_TYPE_NONE; | 145 return TEXT_INPUT_TYPE_NONE; |
| 146 } |
| 147 |
| 148 TextInputMode FakeInputMethod::GetTextInputMode() const { |
| 149 return TEXT_INPUT_MODE_DEFAULT; |
146 } | 150 } |
147 | 151 |
148 bool FakeInputMethod::CanComposeInline() const { | 152 bool FakeInputMethod::CanComposeInline() const { |
149 return true; | 153 return true; |
150 } | 154 } |
151 | 155 |
152 void FakeInputMethod::AddObserver(InputMethodObserver* observer) { | 156 void FakeInputMethod::AddObserver(InputMethodObserver* observer) { |
153 observers_.AddObserver(observer); | 157 observers_.AddObserver(observer); |
154 } | 158 } |
155 | 159 |
156 void FakeInputMethod::RemoveObserver(InputMethodObserver* observer) { | 160 void FakeInputMethod::RemoveObserver(InputMethodObserver* observer) { |
157 observers_.RemoveObserver(observer); | 161 observers_.RemoveObserver(observer); |
158 } | 162 } |
159 | 163 |
160 } // namespace ui | 164 } // namespace ui |
OLD | NEW |