OLD | NEW |
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_CHROMEOS_LOGIN_SUPERVISED_SUPERVISED_USER_CREATION_SCREEN
_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SUPERVISED_SUPERVISED_USER_CREATION_SCREEN
_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SUPERVISED_SUPERVISED_USER_CREATION_SCREEN
_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SUPERVISED_SUPERVISED_USER_CREATION_SCREEN
_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 // Called when manager is successfully authenticated against cryptohome, but | 59 // Called when manager is successfully authenticated against cryptohome, but |
60 // OAUTH token validation hasn't completed yet. | 60 // OAUTH token validation hasn't completed yet. |
61 // Results in spinner indicating that creation is in process. | 61 // Results in spinner indicating that creation is in process. |
62 void OnManagerCryptohomeAuthenticated(); | 62 void OnManagerCryptohomeAuthenticated(); |
63 | 63 |
64 // Shows initial screen where managed user name/password are defined and | 64 // Shows initial screen where managed user name/password are defined and |
65 // manager is selected. | 65 // manager is selected. |
66 void ShowInitialScreen(); | 66 void ShowInitialScreen(); |
67 | 67 |
68 // CameraPresenceNotifier::Observer implementation: | 68 // CameraPresenceNotifier::Observer implementation: |
69 virtual void OnCameraPresenceCheckDone(bool is_camera_present) OVERRIDE; | 69 virtual void OnCameraPresenceCheckDone(bool is_camera_present) override; |
70 | 70 |
71 // SupervisedUserSyncServiceObserver implementation | 71 // SupervisedUserSyncServiceObserver implementation |
72 virtual void OnSupervisedUserAcknowledged( | 72 virtual void OnSupervisedUserAcknowledged( |
73 const std::string& supervised_user_id) OVERRIDE {} | 73 const std::string& supervised_user_id) override {} |
74 virtual void OnSupervisedUsersSyncingStopped() OVERRIDE {} | 74 virtual void OnSupervisedUsersSyncingStopped() override {} |
75 virtual void OnSupervisedUsersChanged() OVERRIDE; | 75 virtual void OnSupervisedUsersChanged() override; |
76 | 76 |
77 // WizardScreen implementation: | 77 // WizardScreen implementation: |
78 virtual void PrepareToShow() OVERRIDE; | 78 virtual void PrepareToShow() override; |
79 virtual void Show() OVERRIDE; | 79 virtual void Show() override; |
80 virtual void Hide() OVERRIDE; | 80 virtual void Hide() override; |
81 virtual std::string GetName() const OVERRIDE; | 81 virtual std::string GetName() const override; |
82 | 82 |
83 // SupervisedUserCreationScreenHandler::Delegate implementation: | 83 // SupervisedUserCreationScreenHandler::Delegate implementation: |
84 virtual void OnActorDestroyed(SupervisedUserCreationScreenHandler* actor) | 84 virtual void OnActorDestroyed(SupervisedUserCreationScreenHandler* actor) |
85 OVERRIDE; | 85 override; |
86 virtual void CreateSupervisedUser( | 86 virtual void CreateSupervisedUser( |
87 const base::string16& display_name, | 87 const base::string16& display_name, |
88 const std::string& supervised_user_password) OVERRIDE; | 88 const std::string& supervised_user_password) override; |
89 virtual void ImportSupervisedUser(const std::string& user_id) OVERRIDE; | 89 virtual void ImportSupervisedUser(const std::string& user_id) override; |
90 virtual void ImportSupervisedUserWithPassword( | 90 virtual void ImportSupervisedUserWithPassword( |
91 const std::string& user_id, | 91 const std::string& user_id, |
92 const std::string& password) OVERRIDE; | 92 const std::string& password) override; |
93 virtual void AuthenticateManager( | 93 virtual void AuthenticateManager( |
94 const std::string& manager_id, | 94 const std::string& manager_id, |
95 const std::string& manager_password) OVERRIDE; | 95 const std::string& manager_password) override; |
96 virtual void AbortFlow() OVERRIDE; | 96 virtual void AbortFlow() override; |
97 virtual void FinishFlow() OVERRIDE; | 97 virtual void FinishFlow() override; |
98 virtual bool FindUserByDisplayName(const base::string16& display_name, | 98 virtual bool FindUserByDisplayName(const base::string16& display_name, |
99 std::string *out_id) const OVERRIDE; | 99 std::string *out_id) const override; |
100 virtual void OnPageSelected(const std::string& page) OVERRIDE; | 100 virtual void OnPageSelected(const std::string& page) override; |
101 | 101 |
102 // SupervisedUserController::StatusConsumer overrides. | 102 // SupervisedUserController::StatusConsumer overrides. |
103 virtual void OnCreationError(SupervisedUserCreationController::ErrorCode code) | 103 virtual void OnCreationError(SupervisedUserCreationController::ErrorCode code) |
104 OVERRIDE; | 104 override; |
105 virtual void OnCreationTimeout() OVERRIDE; | 105 virtual void OnCreationTimeout() override; |
106 virtual void OnCreationSuccess() OVERRIDE; | 106 virtual void OnCreationSuccess() override; |
107 virtual void OnLongCreationWarning() OVERRIDE; | 107 virtual void OnLongCreationWarning() override; |
108 | 108 |
109 // NetworkPortalDetector::Observer implementation: | 109 // NetworkPortalDetector::Observer implementation: |
110 virtual void OnPortalDetectionCompleted( | 110 virtual void OnPortalDetectionCompleted( |
111 const NetworkState* network, | 111 const NetworkState* network, |
112 const NetworkPortalDetector::CaptivePortalState& state) OVERRIDE; | 112 const NetworkPortalDetector::CaptivePortalState& state) override; |
113 | 113 |
114 // TODO(antrim) : this is an explicit code duplications with UserImageScreen. | 114 // TODO(antrim) : this is an explicit code duplications with UserImageScreen. |
115 // It should be removed by issue 251179. | 115 // It should be removed by issue 251179. |
116 | 116 |
117 // SupervisedUserCreationScreenHandler::Delegate (image) implementation: | 117 // SupervisedUserCreationScreenHandler::Delegate (image) implementation: |
118 virtual void OnPhotoTaken(const std::string& raw_data) OVERRIDE; | 118 virtual void OnPhotoTaken(const std::string& raw_data) override; |
119 virtual void OnImageSelected(const std::string& image_url, | 119 virtual void OnImageSelected(const std::string& image_url, |
120 const std::string& image_type) OVERRIDE; | 120 const std::string& image_type) override; |
121 virtual void OnImageAccepted() OVERRIDE; | 121 virtual void OnImageAccepted() override; |
122 // ImageDecoder::Delegate overrides: | 122 // ImageDecoder::Delegate overrides: |
123 virtual void OnImageDecoded(const ImageDecoder* decoder, | 123 virtual void OnImageDecoded(const ImageDecoder* decoder, |
124 const SkBitmap& decoded_image) OVERRIDE; | 124 const SkBitmap& decoded_image) override; |
125 virtual void OnDecodeImageFailed(const ImageDecoder* decoder) OVERRIDE; | 125 virtual void OnDecodeImageFailed(const ImageDecoder* decoder) override; |
126 | 126 |
127 private: | 127 private: |
128 void ApplyPicture(); | 128 void ApplyPicture(); |
129 void OnGetSupervisedUsers(const base::DictionaryValue* users); | 129 void OnGetSupervisedUsers(const base::DictionaryValue* users); |
130 | 130 |
131 SupervisedUserCreationScreenHandler* actor_; | 131 SupervisedUserCreationScreenHandler* actor_; |
132 | 132 |
133 scoped_ptr<SupervisedUserCreationController> controller_; | 133 scoped_ptr<SupervisedUserCreationController> controller_; |
134 scoped_ptr<base::DictionaryValue> existing_users_; | 134 scoped_ptr<base::DictionaryValue> existing_users_; |
135 | 135 |
(...skipping 10 matching lines...) Expand all Loading... |
146 | 146 |
147 base::WeakPtrFactory<SupervisedUserCreationScreen> weak_factory_; | 147 base::WeakPtrFactory<SupervisedUserCreationScreen> weak_factory_; |
148 | 148 |
149 DISALLOW_COPY_AND_ASSIGN(SupervisedUserCreationScreen); | 149 DISALLOW_COPY_AND_ASSIGN(SupervisedUserCreationScreen); |
150 }; | 150 }; |
151 | 151 |
152 } // namespace chromeos | 152 } // namespace chromeos |
153 | 153 |
154 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SUPERVISED_SUPERVISED_USER_CREATION_SCR
EEN_H_ | 154 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SUPERVISED_SUPERVISED_USER_CREATION_SCR
EEN_H_ |
155 | 155 |
OLD | NEW |