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

Side by Side Diff: chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h

Issue 2723083003: Rename LRU Input Method to Last Input Method (Closed)
Patch Set: Rebase. Created 3 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <set> 10 #include <set>
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 public OobeUI::Observer { 228 public OobeUI::Observer {
229 public: 229 public:
230 SigninScreenHandler( 230 SigninScreenHandler(
231 const scoped_refptr<NetworkStateInformer>& network_state_informer, 231 const scoped_refptr<NetworkStateInformer>& network_state_informer,
232 ErrorScreen* error_screen, 232 ErrorScreen* error_screen,
233 CoreOobeView* core_oobe_view, 233 CoreOobeView* core_oobe_view,
234 GaiaScreenHandler* gaia_screen_handler, 234 GaiaScreenHandler* gaia_screen_handler,
235 JSCallsContainer* js_calls_container); 235 JSCallsContainer* js_calls_container);
236 ~SigninScreenHandler() override; 236 ~SigninScreenHandler() override;
237 237
238 static std::string GetUserLRUInputMethod(const std::string& username); 238 static std::string GetUserLastInputMethod(const std::string& username);
239 239
240 // Update current input method (namely keyboard layout) in the given IME state 240 // Update current input method (namely keyboard layout) in the given IME state
241 // to LRU by this user. 241 // to last input method used by this user.
242 static void SetUserInputMethod( 242 static void SetUserInputMethod(
243 const std::string& username, 243 const std::string& username,
244 input_method::InputMethodManager::State* ime_state); 244 input_method::InputMethodManager::State* ime_state);
245 245
246 // Shows the sign in screen. 246 // Shows the sign in screen.
247 void Show(const LoginScreenContext& context); 247 void Show(const LoginScreenContext& context);
248 248
249 // Sets delegate to be used by the handler. It is guaranteed that valid 249 // Sets delegate to be used by the handler. It is guaranteed that valid
250 // delegate is set before Show() method will be called. 250 // delegate is set before Show() method will be called.
251 void SetDelegate(SigninScreenHandlerDelegate* delegate); 251 void SetDelegate(SigninScreenHandlerDelegate* delegate);
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 std::unique_ptr<AccountId> focused_pod_account_id_; 535 std::unique_ptr<AccountId> focused_pod_account_id_;
536 536
537 base::WeakPtrFactory<SigninScreenHandler> weak_factory_; 537 base::WeakPtrFactory<SigninScreenHandler> weak_factory_;
538 538
539 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); 539 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler);
540 }; 540 };
541 541
542 } // namespace chromeos 542 } // namespace chromeos
543 543
544 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ 544 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698