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

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

Issue 14208014: Simplify adding callbacks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h
diff --git a/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h b/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h
index 2e7c0313c650d0f3aae5a009a1826314dcfec659..f7969b4f300f60df51e61ebcc1c8c283ba440696 100644
--- a/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h
+++ b/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h
@@ -276,42 +276,46 @@ class SigninScreenHandler
void UpdateAddButtonStatus();
// WebUI message handlers.
- void HandleCompleteAuthentication(const base::ListValue* args);
- void HandleCompleteLogin(const base::ListValue* args);
- void HandleGetUsers(const base::ListValue* args);
- void HandleAuthenticateUser(const base::ListValue* args);
- void HandleLaunchDemoUser(const base::ListValue* args);
- void HandleLaunchIncognito(const base::ListValue* args);
- void HandleLaunchPublicAccount(const base::ListValue* args);
+ void HandleCompleteAuthentication(const std::string& email,
+ const std::string& password,
+ const std::string& auth_code);
+ void HandleCompleteLogin(const std::string& typed_email,
+ const std::string& password);
+ void HandleGetUsers();
+ void HandleAuthenticateUser(const std::string& username,
+ const std::string& password);
+ void HandleLaunchDemoUser();
+ void HandleLaunchIncognito();
+ void HandleLaunchPublicAccount(const std::string& username);
void HandleOfflineLogin(const base::ListValue* args);
- void HandleShutdownSystem(const base::ListValue* args);
- void HandleLoadWallpaper(const base::ListValue* args);
- void HandleRebootSystem(const base::ListValue* args);
- void HandleRemoveUser(const base::ListValue* args);
+ void HandleShutdownSystem();
+ void HandleLoadWallpaper(const std::string& email);
+ void HandleRebootSystem();
+ void HandleRemoveUser(const std::string& email);
void HandleShowAddUser(const base::ListValue* args);
- void HandleToggleEnrollmentScreen(const base::ListValue* args);
- void HandleToggleResetScreen(const base::ListValue* args);
- void HandleLaunchHelpApp(const base::ListValue* args);
- void HandleCreateAccount(const base::ListValue* args);
- void HandleAccountPickerReady(const base::ListValue* args);
- void HandleWallpaperReady(const base::ListValue* args);
- void HandleLoginWebuiReady(const base::ListValue* args);
- void HandleDemoWebuiReady(const base::ListValue* args);
- void HandleSignOutUser(const base::ListValue* args);
- void HandleUserImagesLoaded(const base::ListValue* args);
- void HandleNetworkErrorShown(const base::ListValue* args);
- void HandleOpenProxySettings(const base::ListValue* args);
- void HandleLoginVisible(const base::ListValue* args);
- void HandleCancelPasswordChangedFlow(const base::ListValue* args);
- void HandleMigrateUserData(const base::ListValue* args);
- void HandleResyncUserData(const base::ListValue* args);
- void HandleLoginUIStateChanged(const base::ListValue* args);
- void HandleUnlockOnLoginSuccess(const base::ListValue* args);
- void HandleLoginScreenUpdate(const base::ListValue* args);
- void HandleShowGaiaFrameError(const base::ListValue* args);
- void HandleShowLoadingTimeoutError(const base::ListValue* args);
- void HandleUpdateOfflineLogin(const base::ListValue* args);
- void HandleShowLocallyManagedUserCreationScreen(const base::ListValue* args);
+ void HandleToggleEnrollmentScreen();
+ void HandleToggleResetScreen();
+ void HandleLaunchHelpApp(double help_topic_id);
+ void HandleCreateAccount();
+ void HandleAccountPickerReady();
+ void HandleWallpaperReady();
+ void HandleLoginWebuiReady();
+ void HandleDemoWebuiReady();
+ void HandleSignOutUser();
+ void HandleUserImagesLoaded();
+ void HandleNetworkErrorShown();
+ void HandleOpenProxySettings();
+ void HandleLoginVisible(const std::string& source);
+ void HandleCancelPasswordChangedFlow();
+ void HandleMigrateUserData(const std::string& password);
+ void HandleResyncUserData();
+ void HandleLoginUIStateChanged(const std::string& source, bool new_value);
+ void HandleUnlockOnLoginSuccess();
+ void HandleLoginScreenUpdate();
+ void HandleShowGaiaFrameError(int error);
+ void HandleShowLoadingTimeoutError();
+ void HandleUpdateOfflineLogin(bool offline_login_active);
+ void HandleShowLocallyManagedUserCreationScreen();
// Fills |user_dict| with information about |user|.
static void FillUserDictionary(User* user,

Powered by Google App Engine
This is Rietveld 408576698