Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(174)

Side by Side Diff: ui/base/ime/input_method_chromeos.cc

Issue 2298123003: Using input language instead of the application locale to determine the Omnibox's text input type o… (Closed)
Patch Set: fix compiling errors in mus. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/base/ime/input_method_chromeos.h ('k') | ui/base/ime/input_method_chromeos_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <cstring> 10 #include <cstring>
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 selection_range.start() - text_range.start(), 224 selection_range.start() - text_range.start(),
225 selection_range.end() - text_range.start(), 225 selection_range.end() - text_range.start(),
226 text_range.start()); 226 text_range.start());
227 } 227 }
228 228
229 void InputMethodChromeOS::CancelComposition(const TextInputClient* client) { 229 void InputMethodChromeOS::CancelComposition(const TextInputClient* client) {
230 if (IsNonPasswordInputFieldFocused() && IsTextInputClientFocused(client)) 230 if (IsNonPasswordInputFieldFocused() && IsTextInputClientFocused(client))
231 ResetContext(); 231 ResetContext();
232 } 232 }
233 233
234 void InputMethodChromeOS::OnInputLocaleChanged() {
235 // Not supported.
236 }
237
238 std::string InputMethodChromeOS::GetInputLocale() {
239 // Not supported.
240 return "";
241 }
242
243 bool InputMethodChromeOS::IsCandidatePopupOpen() const { 234 bool InputMethodChromeOS::IsCandidatePopupOpen() const {
244 // TODO(yukishiino): Implement this method. 235 // TODO(yukishiino): Implement this method.
245 return false; 236 return false;
246 } 237 }
247 238
248 void InputMethodChromeOS::OnWillChangeFocusedClient( 239 void InputMethodChromeOS::OnWillChangeFocusedClient(
249 TextInputClient* focused_before, 240 TextInputClient* focused_before,
250 TextInputClient* focused) { 241 TextInputClient* focused) {
251 ConfirmCompositionText(); 242 ConfirmCompositionText();
252 243
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
642 bool InputMethodChromeOS::IsNonPasswordInputFieldFocused() { 633 bool InputMethodChromeOS::IsNonPasswordInputFieldFocused() {
643 TextInputType type = GetTextInputType(); 634 TextInputType type = GetTextInputType();
644 return (type != TEXT_INPUT_TYPE_NONE) && (type != TEXT_INPUT_TYPE_PASSWORD); 635 return (type != TEXT_INPUT_TYPE_NONE) && (type != TEXT_INPUT_TYPE_PASSWORD);
645 } 636 }
646 637
647 bool InputMethodChromeOS::IsInputFieldFocused() { 638 bool InputMethodChromeOS::IsInputFieldFocused() {
648 return GetTextInputType() != TEXT_INPUT_TYPE_NONE; 639 return GetTextInputType() != TEXT_INPUT_TYPE_NONE;
649 } 640 }
650 641
651 } // namespace ui 642 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/ime/input_method_chromeos.h ('k') | ui/base/ime/input_method_chromeos_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698