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

Side by Side Diff: chrome/browser/chromeos/login/login_display.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: Minor style fixes 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_CHROMEOS_LOGIN_LOGIN_DISPLAY_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_DISPLAY_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_DISPLAY_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_DISPLAY_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 virtual void ResyncUserData() = 0; 93 virtual void ResyncUserData() = 0;
94 94
95 // Sets the displayed email for the next login attempt with |CompleteLogin|. 95 // Sets the displayed email for the next login attempt with |CompleteLogin|.
96 // If it succeeds, user's displayed email value will be updated to |email|. 96 // If it succeeds, user's displayed email value will be updated to |email|.
97 virtual void SetDisplayEmail(const std::string& email) = 0; 97 virtual void SetDisplayEmail(const std::string& email) = 0;
98 98
99 // Sign out the currently signed in user. 99 // Sign out the currently signed in user.
100 // Used when the lock screen is being displayed. 100 // Used when the lock screen is being displayed.
101 virtual void Signout() = 0; 101 virtual void Signout() = 0;
102 102
103 // Login to kiosk mode for app with |app_id|.
104 virtual void LoginAsKioskApp(const std::string& app_id) = 0;
xiyuan 2013/08/19 17:40:29 nit: move it with other LoginAsxxx methods.
Tim Song 2013/08/19 20:05:07 Done.
105
103 protected: 106 protected:
104 virtual ~Delegate(); 107 virtual ~Delegate();
105 }; 108 };
106 109
107 // |background_bounds| determines the bounds of login UI background. 110 // |background_bounds| determines the bounds of login UI background.
108 LoginDisplay(Delegate* delegate, const gfx::Rect& background_bounds); 111 LoginDisplay(Delegate* delegate, const gfx::Rect& background_bounds);
109 virtual ~LoginDisplay(); 112 virtual ~LoginDisplay();
110 113
111 // Clears and enables fields on user pod or GAIA frame. 114 // Clears and enables fields on user pod or GAIA frame.
112 virtual void ClearAndEnablePassword() = 0; 115 virtual void ClearAndEnablePassword() = 0;
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 // in redesigned login stack. 194 // in redesigned login stack.
192 // Login stack (and this object) will be recreated for next user sign in. 195 // Login stack (and this object) will be recreated for next user sign in.
193 bool is_signin_completed_; 196 bool is_signin_completed_;
194 197
195 DISALLOW_COPY_AND_ASSIGN(LoginDisplay); 198 DISALLOW_COPY_AND_ASSIGN(LoginDisplay);
196 }; 199 };
197 200
198 } // namespace chromeos 201 } // namespace chromeos
199 202
200 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_DISPLAY_H_ 203 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_DISPLAY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698