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

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

Issue 1454153002: Revert of This CL replaces e-mail with AccountId on user selection screen. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SUPERVISED_USER_CREATION_SCREEN_H ANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SUPERVISED_USER_CREATION_SCREEN_H ANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SUPERVISED_USER_CREATION_SCREEN_H ANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SUPERVISED_USER_CREATION_SCREEN_H ANDLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 ::login::LocalizedValuesBuilder* builder) override; 99 ::login::LocalizedValuesBuilder* builder) override;
100 void Initialize() override; 100 void Initialize() override;
101 101
102 // WebUIMessageHandler implementation: 102 // WebUIMessageHandler implementation:
103 void RegisterMessages() override; 103 void RegisterMessages() override;
104 104
105 private: 105 private:
106 // WebUI message handlers. 106 // WebUI message handlers.
107 void HandleCheckSupervisedUserName(const base::string16& name); 107 void HandleCheckSupervisedUserName(const base::string16& name);
108 108
109 void HandleManagerSelected(const AccountId& manager_id); 109 void HandleManagerSelected(const std::string& manager_id);
110 void HandleImportUserSelected(const AccountId& account_id); 110 void HandleImportUserSelected(const std::string& user_id);
111 111
112 void HandleFinishLocalSupervisedUserCreation(); 112 void HandleFinishLocalSupervisedUserCreation();
113 void HandleAbortLocalSupervisedUserCreation(); 113 void HandleAbortLocalSupervisedUserCreation();
114 void HandleHideLocalSupervisedUserCreation(); 114 void HandleHideLocalSupervisedUserCreation();
115 void HandleRetryLocalSupervisedUserCreation(const base::ListValue* args); 115 void HandleRetryLocalSupervisedUserCreation(const base::ListValue* args);
116 void HandleCurrentSupervisedUserPage(const std::string& current_page); 116 void HandleCurrentSupervisedUserPage(const std::string& current_page);
117 117
118 void HandleAuthenticateManager(const AccountId& manager_account_id, 118 void HandleAuthenticateManager(const std::string& raw_manager_username,
119 const std::string& manager_password); 119 const std::string& manager_password);
120 void HandleCreateSupervisedUser(const base::string16& new_raw_user_name, 120 void HandleCreateSupervisedUser(const base::string16& new_raw_user_name,
121 const std::string& new_user_password); 121 const std::string& new_user_password);
122 void HandleImportSupervisedUser(const AccountId& account_id); 122 void HandleImportSupervisedUser(const std::string& user_id);
123 void HandleImportSupervisedUserWithPassword(const AccountId& account_id, 123 void HandleImportSupervisedUserWithPassword(const std::string& user_id,
124 const std::string& password); 124 const std::string& password);
125 125
126 void HandleGetImages(); 126 void HandleGetImages();
127 void HandlePhotoTaken(const std::string& image_url); 127 void HandlePhotoTaken(const std::string& image_url);
128 void HandleTakePhoto(); 128 void HandleTakePhoto();
129 void HandleDiscardPhoto(); 129 void HandleDiscardPhoto();
130 void HandleSelectImage(const std::string& image_url, 130 void HandleSelectImage(const std::string& image_url,
131 const std::string& image_type); 131 const std::string& image_type);
132 132
133 void UpdateText(const std::string& element_id, const base::string16& text); 133 void UpdateText(const std::string& element_id, const base::string16& text);
134 134
135 Delegate* delegate_; 135 Delegate* delegate_;
136 136
137 DISALLOW_COPY_AND_ASSIGN(SupervisedUserCreationScreenHandler); 137 DISALLOW_COPY_AND_ASSIGN(SupervisedUserCreationScreenHandler);
138 }; 138 };
139 139
140 } // namespace chromeos 140 } // namespace chromeos
141 141
142 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SUPERVISED_USER_CREATION_SCREE N_HANDLER_H_ 142 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SUPERVISED_USER_CREATION_SCREE N_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698