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

Side by Side Diff: chrome/browser/chromeos/login/screen_locker.cc

Issue 9696025: Rename InputMethodManager::current_input_method() to InputMethodManager::GetCurrentInputMethod(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 9 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 | Annotate | Revision Log
OLDNEW
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 "chrome/browser/chromeos/login/screen_locker.h" 5 #include "chrome/browser/chromeos/login/screen_locker.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 // since they are not necessary to input a login password. Users are still 121 // since they are not necessary to input a login password. Users are still
122 // able to use/switch active keyboard layouts (e.g. US qwerty, US dvorak, 122 // able to use/switch active keyboard layouts (e.g. US qwerty, US dvorak,
123 // French). 123 // French).
124 void SetupInputMethodsForScreenLocker() { 124 void SetupInputMethodsForScreenLocker() {
125 if (// The LockScreen function is also called when the OS is suspended, and 125 if (// The LockScreen function is also called when the OS is suspended, and
126 // in that case |saved_active_input_method_list_| might be non-empty. 126 // in that case |saved_active_input_method_list_| might be non-empty.
127 saved_active_input_method_list_.empty()) { 127 saved_active_input_method_list_.empty()) {
128 chromeos::input_method::InputMethodManager* manager = 128 chromeos::input_method::InputMethodManager* manager =
129 chromeos::input_method::InputMethodManager::GetInstance(); 129 chromeos::input_method::InputMethodManager::GetInstance();
130 130
131 saved_previous_input_method_id_ = manager->previous_input_method().id(); 131 saved_previous_input_method_id_ = manager->GetPreviousInputMethod().id();
132 saved_current_input_method_id_ = manager->current_input_method().id(); 132 saved_current_input_method_id_ = manager->GetCurrentInputMethod().id();
133 scoped_ptr<chromeos::input_method::InputMethodDescriptors> 133 scoped_ptr<chromeos::input_method::InputMethodDescriptors>
134 active_input_method_list(manager->GetActiveInputMethods()); 134 active_input_method_list(manager->GetActiveInputMethods());
135 135
136 const std::string hardware_keyboard_id = 136 const std::string hardware_keyboard_id =
137 manager->GetInputMethodUtil()->GetHardwareInputMethodId(); 137 manager->GetInputMethodUtil()->GetHardwareInputMethodId();
138 // We'll add the hardware keyboard if it's not included in 138 // We'll add the hardware keyboard if it's not included in
139 // |active_input_method_list| so that the user can always use the hardware 139 // |active_input_method_list| so that the user can always use the hardware
140 // keyboard on the screen locker. 140 // keyboard on the screen locker.
141 bool should_add_hardware_keyboard = true; 141 bool should_add_hardware_keyboard = true;
142 142
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 bool state = true; 439 bool state = true;
440 content::NotificationService::current()->Notify( 440 content::NotificationService::current()->Notify(
441 chrome::NOTIFICATION_SCREEN_LOCK_STATE_CHANGED, 441 chrome::NOTIFICATION_SCREEN_LOCK_STATE_CHANGED,
442 content::Source<ScreenLocker>(this), 442 content::Source<ScreenLocker>(this),
443 content::Details<bool>(&state)); 443 content::Details<bool>(&state));
444 DBusThreadManager::Get()->GetPowerManagerClient()-> 444 DBusThreadManager::Get()->GetPowerManagerClient()->
445 NotifyScreenLockCompleted(); 445 NotifyScreenLockCompleted();
446 } 446 }
447 447
448 } // namespace chromeos 448 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/login_utils.cc ('k') | chrome/browser/chromeos/status/input_method_menu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698