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

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

Issue 1440583002: This CL replaces e-mail with AccountId on user selection screen. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests. Created 5 years, 1 month 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 <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 void OnMaximizeModeStarted() override; 312 void OnMaximizeModeStarted() override;
313 void OnMaximizeModeEnded() override; 313 void OnMaximizeModeEnded() override;
314 314
315 void UpdateAddButtonStatus(); 315 void UpdateAddButtonStatus();
316 316
317 // Restore input focus to current user pod. 317 // Restore input focus to current user pod.
318 void RefocusCurrentPod(); 318 void RefocusCurrentPod();
319 319
320 // WebUI message handlers. 320 // WebUI message handlers.
321 void HandleGetUsers(); 321 void HandleGetUsers();
322 void HandleAuthenticateUser(const std::string& username, 322 void HandleAuthenticateUser(const std::string& user_id,
323 const std::string& password); 323 const std::string& password);
324 void HandleAttemptUnlock(const std::string& username); 324 void HandleAttemptUnlock(const std::string& username);
325 void HandleLaunchIncognito(); 325 void HandleLaunchIncognito();
326 void HandleLaunchPublicSession(const std::string& user_id, 326 void HandleLaunchPublicSession(const std::string& user_id,
327 const std::string& locale, 327 const std::string& locale,
328 const std::string& input_method); 328 const std::string& input_method);
329 void HandleOfflineLogin(const base::ListValue* args); 329 void HandleOfflineLogin(const base::ListValue* args);
330 void HandleShutdownSystem(); 330 void HandleShutdownSystem();
331 void HandleLoadWallpaper(const std::string& email); 331 void HandleLoadWallpaper(const std::string& email);
332 void HandleRebootSystem(); 332 void HandleRebootSystem();
(...skipping 19 matching lines...) Expand all
352 void HandleShowLoadingTimeoutError(); 352 void HandleShowLoadingTimeoutError();
353 void HandleShowSupervisedUserCreationScreen(); 353 void HandleShowSupervisedUserCreationScreen();
354 void HandleFocusPod(const std::string& user_id); 354 void HandleFocusPod(const std::string& user_id);
355 void HandleHardlockPod(const std::string& user_id); 355 void HandleHardlockPod(const std::string& user_id);
356 void HandleLaunchKioskApp(const std::string& app_id, bool diagnostic_mode); 356 void HandleLaunchKioskApp(const std::string& app_id, bool diagnostic_mode);
357 void HandleGetPublicSessionKeyboardLayouts(const std::string& user_id, 357 void HandleGetPublicSessionKeyboardLayouts(const std::string& user_id,
358 const std::string& locale); 358 const std::string& locale);
359 void HandleCancelConsumerManagementEnrollment(); 359 void HandleCancelConsumerManagementEnrollment();
360 void HandleGetTouchViewState(); 360 void HandleGetTouchViewState();
361 void HandleLogRemoveUserWarningShown(); 361 void HandleLogRemoveUserWarningShown();
362 void HandleFirstIncorrectPasswordAttempt(const std::string& email); 362 void HandleFirstIncorrectPasswordAttempt(const std::string& user_id);
363 void HandleMaxIncorrectPasswordAttempts(const std::string& email); 363 void HandleMaxIncorrectPasswordAttempts(const std::string& user_id);
364 364
365 // Sends the list of |keyboard_layouts| available for the |locale| that is 365 // Sends the list of |keyboard_layouts| available for the |locale| that is
366 // currently selected for the public session identified by |user_id|. 366 // currently selected for the public session identified by |user_id|.
367 void SendPublicSessionKeyboardLayouts( 367 void SendPublicSessionKeyboardLayouts(
368 const std::string& user_id, 368 const AccountId& account_id,
369 const std::string& locale, 369 const std::string& locale,
370 scoped_ptr<base::ListValue> keyboard_layouts); 370 scoped_ptr<base::ListValue> keyboard_layouts);
371 371
372 // Returns true iff 372 // Returns true iff
373 // (i) log in is restricted to some user list, 373 // (i) log in is restricted to some user list,
374 // (ii) all users in the restricted list are present. 374 // (ii) all users in the restricted list are present.
375 bool AllWhitelistedUsersPresent(); 375 bool AllWhitelistedUsersPresent();
376 376
377 // Cancels password changed flow - switches back to login screen. 377 // Cancels password changed flow - switches back to login screen.
378 // Called as a callback after cookies are cleared. 378 // Called as a callback after cookies are cleared.
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 scoped_ptr<ErrorScreensHistogramHelper> histogram_helper_; 487 scoped_ptr<ErrorScreensHistogramHelper> histogram_helper_;
488 488
489 base::WeakPtrFactory<SigninScreenHandler> weak_factory_; 489 base::WeakPtrFactory<SigninScreenHandler> weak_factory_;
490 490
491 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); 491 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler);
492 }; 492 };
493 493
494 } // namespace chromeos 494 } // namespace chromeos
495 495
496 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ 496 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698