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

Side by Side Diff: ui/base/ime/input_method_auralinux.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_auralinux.h ('k') | ui/base/ime/input_method_base.h » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_auralinux.h" 5 #include "ui/base/ime/input_method_auralinux.h"
6 6
7 #include "base/auto_reset.h" 7 #include "base/auto_reset.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/environment.h" 9 #include "base/environment.h"
10 #include "ui/base/ime/ime_bridge.h" 10 #include "ui/base/ime/ime_bridge.h"
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 context_->Blur(); 313 context_->Blur();
314 context_->Focus(); 314 context_->Focus();
315 } 315 }
316 316
317 composition_.Clear(); 317 composition_.Clear();
318 result_text_.clear(); 318 result_text_.clear();
319 is_sync_mode_ = false; 319 is_sync_mode_ = false;
320 composition_changed_ = false; 320 composition_changed_ = false;
321 } 321 }
322 322
323 void InputMethodAuraLinux::OnInputLocaleChanged() {
324 }
325
326 std::string InputMethodAuraLinux::GetInputLocale() {
327 return "";
328 }
329
330 bool InputMethodAuraLinux::IsCandidatePopupOpen() const { 323 bool InputMethodAuraLinux::IsCandidatePopupOpen() const {
331 // There seems no way to detect candidate windows or any popups. 324 // There seems no way to detect candidate windows or any popups.
332 return false; 325 return false;
333 } 326 }
334 327
335 // Overriden from ui::LinuxInputMethodContextDelegate 328 // Overriden from ui::LinuxInputMethodContextDelegate
336 329
337 void InputMethodAuraLinux::OnCommit(const base::string16& text) { 330 void InputMethodAuraLinux::OnCommit(const base::string16& text) {
338 if (suppress_next_result_ || !GetTextInputClient()) { 331 if (suppress_next_result_ || !GetTextInputClient()) {
339 suppress_next_result_ = false; 332 suppress_next_result_ = false;
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 client->ConfirmCompositionText(); 441 client->ConfirmCompositionText();
449 442
450 if (GetEngine()) 443 if (GetEngine())
451 GetEngine()->Reset(); 444 GetEngine()->Reset();
452 } 445 }
453 446
454 ResetContext(); 447 ResetContext();
455 } 448 }
456 449
457 } // namespace ui 450 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/ime/input_method_auralinux.h ('k') | ui/base/ime/input_method_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698