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

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

Issue 22914008: Refactor kiosk app launch to be part of login screen UI flow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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) 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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 // Whether user sign in has completed. 150 // Whether user sign in has completed.
151 virtual bool IsUserSigninCompleted() const = 0; 151 virtual bool IsUserSigninCompleted() const = 0;
152 152
153 // Sets the displayed email for the next login attempt. If it succeeds, 153 // Sets the displayed email for the next login attempt. If it succeeds,
154 // user's displayed email value will be updated to |email|. 154 // user's displayed email value will be updated to |email|.
155 virtual void SetDisplayEmail(const std::string& email) = 0; 155 virtual void SetDisplayEmail(const std::string& email) = 0;
156 156
157 // Signs out if the screen is currently locked. 157 // Signs out if the screen is currently locked.
158 virtual void Signout() = 0; 158 virtual void Signout() = 0;
159 159
160 // Launches kiosk app with given |app_id|.
161 virtual void LaunchKioskApp(const std::string& app_id) = 0;
162
160 protected: 163 protected:
161 virtual ~SigninScreenHandlerDelegate() {} 164 virtual ~SigninScreenHandlerDelegate() {}
162 }; 165 };
163 166
164 // A class that handles the WebUI hooks in sign-in screen in OobeDisplay 167 // A class that handles the WebUI hooks in sign-in screen in OobeDisplay
165 // and LoginDisplay. 168 // and LoginDisplay.
166 class SigninScreenHandler 169 class SigninScreenHandler
167 : public BaseScreenHandler, 170 : public BaseScreenHandler,
168 public LoginDisplayWebUIHandler, 171 public LoginDisplayWebUIHandler,
169 public SystemKeyEventListener::CapsLockObserver, 172 public SystemKeyEventListener::CapsLockObserver,
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 void HandleCancelUserAdding(); 322 void HandleCancelUserAdding();
320 void HandleMigrateUserData(const std::string& password); 323 void HandleMigrateUserData(const std::string& password);
321 void HandleResyncUserData(); 324 void HandleResyncUserData();
322 void HandleLoginUIStateChanged(const std::string& source, bool new_value); 325 void HandleLoginUIStateChanged(const std::string& source, bool new_value);
323 void HandleUnlockOnLoginSuccess(); 326 void HandleUnlockOnLoginSuccess();
324 void HandleLoginScreenUpdate(); 327 void HandleLoginScreenUpdate();
325 void HandleFrameLoadingCompleted(int status); 328 void HandleFrameLoadingCompleted(int status);
326 void HandleShowLoadingTimeoutError(); 329 void HandleShowLoadingTimeoutError();
327 void HandleUpdateOfflineLogin(bool offline_login_active); 330 void HandleUpdateOfflineLogin(bool offline_login_active);
328 void HandleShowLocallyManagedUserCreationScreen(); 331 void HandleShowLocallyManagedUserCreationScreen();
332 void HandleLaunchKioskApp(const std::string& app_id);
329 333
330 // Fills |user_dict| with information about |user|. 334 // Fills |user_dict| with information about |user|.
331 static void FillUserDictionary(User* user, 335 static void FillUserDictionary(User* user,
332 bool is_owner, 336 bool is_owner,
333 DictionaryValue* user_dict); 337 DictionaryValue* user_dict);
334 338
335 // Sends user list to account picker. 339 // Sends user list to account picker.
336 void SendUserList(bool animated); 340 void SendUserList(bool animated);
337 341
338 // Kick off cookie / local storage cleanup. 342 // Kick off cookie / local storage cleanup.
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 // NOTIFICATION_AUTH_NEEDED and reset on either NOTIFICATION_AUTH_SUPPLIED or 469 // NOTIFICATION_AUTH_NEEDED and reset on either NOTIFICATION_AUTH_SUPPLIED or
466 // NOTIFICATION_AUTH_CANCELLED. 470 // NOTIFICATION_AUTH_CANCELLED.
467 bool has_pending_auth_ui_; 471 bool has_pending_auth_ui_;
468 472
469 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); 473 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler);
470 }; 474 };
471 475
472 } // namespace chromeos 476 } // namespace chromeos
473 477
474 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ 478 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698