OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/input_method_chromeos.h" | 5 #include "ui/base/ime/input_method_chromeos.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <cstring> | 8 #include <cstring> |
9 #include <set> | 9 #include <set> |
10 #include <vector> | 10 #include <vector> |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 | 252 |
253 void InputMethodChromeOS::OnInputLocaleChanged() { | 253 void InputMethodChromeOS::OnInputLocaleChanged() { |
254 // Not supported. | 254 // Not supported. |
255 } | 255 } |
256 | 256 |
257 std::string InputMethodChromeOS::GetInputLocale() { | 257 std::string InputMethodChromeOS::GetInputLocale() { |
258 // Not supported. | 258 // Not supported. |
259 return ""; | 259 return ""; |
260 } | 260 } |
261 | 261 |
262 bool InputMethodChromeOS::IsActive() { | |
263 return true; | |
264 } | |
265 | |
266 bool InputMethodChromeOS::IsCandidatePopupOpen() const { | 262 bool InputMethodChromeOS::IsCandidatePopupOpen() const { |
267 // TODO(yukishiino): Implement this method. | 263 // TODO(yukishiino): Implement this method. |
268 return false; | 264 return false; |
269 } | 265 } |
270 | 266 |
271 void InputMethodChromeOS::OnWillChangeFocusedClient( | 267 void InputMethodChromeOS::OnWillChangeFocusedClient( |
272 TextInputClient* focused_before, | 268 TextInputClient* focused_before, |
273 TextInputClient* focused) { | 269 TextInputClient* focused) { |
274 ConfirmCompositionText(); | 270 ConfirmCompositionText(); |
275 | 271 |
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
674 bool InputMethodChromeOS::IsNonPasswordInputFieldFocused() { | 670 bool InputMethodChromeOS::IsNonPasswordInputFieldFocused() { |
675 TextInputType type = GetTextInputType(); | 671 TextInputType type = GetTextInputType(); |
676 return (type != TEXT_INPUT_TYPE_NONE) && (type != TEXT_INPUT_TYPE_PASSWORD); | 672 return (type != TEXT_INPUT_TYPE_NONE) && (type != TEXT_INPUT_TYPE_PASSWORD); |
677 } | 673 } |
678 | 674 |
679 bool InputMethodChromeOS::IsInputFieldFocused() { | 675 bool InputMethodChromeOS::IsInputFieldFocused() { |
680 return GetTextInputType() != TEXT_INPUT_TYPE_NONE; | 676 return GetTextInputType() != TEXT_INPUT_TYPE_NONE; |
681 } | 677 } |
682 | 678 |
683 } // namespace ui | 679 } // namespace ui |
OLD | NEW |