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

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

Issue 2700303002: cros: Unify oobe View/Actor naming to just View. (Closed)
Patch Set: Rebase Created 3 years, 10 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
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"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/strings/string16.h" 12 #include "base/strings/string16.h"
13 #include "chrome/browser/chromeos/login/users/default_user_image/default_user_im ages.h" 13 #include "chrome/browser/chromeos/login/users/default_user_image/default_user_im ages.h"
14 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h" 14 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h"
15 #include "content/public/browser/web_ui.h" 15 #include "content/public/browser/web_ui.h"
16 16
17 namespace base { 17 namespace base {
18 class ListValue; 18 class ListValue;
19 } 19 }
20 20
21 namespace chromeos { 21 namespace chromeos {
22 22
23 class SupervisedUserCreationScreenHandler : public BaseScreenHandler { 23 class SupervisedUserCreationScreenHandler : public BaseScreenHandler {
24 public: 24 public:
25 class Delegate { 25 class Delegate {
26 public: 26 public:
27 virtual ~Delegate() {} 27 virtual ~Delegate() {}
28 28
29 // This method is called, when actor is being destroyed. Note, if Delegate 29 // This method is called, when view is being destroyed. Note, if Delegate
30 // is destroyed earlier then it has to call SetDelegate(NULL). 30 // is destroyed earlier then it has to call SetDelegate(nullptr).
31 virtual void OnActorDestroyed( 31 virtual void OnViewDestroyed(SupervisedUserCreationScreenHandler* view) = 0;
32 SupervisedUserCreationScreenHandler* actor) = 0;
33 32
34 // Starts supervised user creation flow, with manager identified by 33 // Starts supervised user creation flow, with manager identified by
35 // |manager_id| and |manager_password|. 34 // |manager_id| and |manager_password|.
36 virtual void AuthenticateManager(const AccountId& manager_account_id, 35 virtual void AuthenticateManager(const AccountId& manager_account_id,
37 const std::string& manager_password) = 0; 36 const std::string& manager_password) = 0;
38 37
39 // Starts supervised user creation flow, with supervised user that would 38 // Starts supervised user creation flow, with supervised user that would
40 // have |display_name| and authenticated by the |supervised_user_password|. 39 // have |display_name| and authenticated by the |supervised_user_password|.
41 virtual void CreateSupervisedUser( 40 virtual void CreateSupervisedUser(
42 const base::string16& display_name, 41 const base::string16& display_name,
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 void UpdateText(const std::string& element_id, const base::string16& text); 132 void UpdateText(const std::string& element_id, const base::string16& text);
134 133
135 Delegate* delegate_ = nullptr; 134 Delegate* delegate_ = nullptr;
136 135
137 DISALLOW_COPY_AND_ASSIGN(SupervisedUserCreationScreenHandler); 136 DISALLOW_COPY_AND_ASSIGN(SupervisedUserCreationScreenHandler);
138 }; 137 };
139 138
140 } // namespace chromeos 139 } // namespace chromeos
141 140
142 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SUPERVISED_USER_CREATION_SCREE N_HANDLER_H_ 141 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SUPERVISED_USER_CREATION_SCREE N_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698