| 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/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 void OnSupervisedUserAcknowledged( | 72 void OnSupervisedUserAcknowledged( |
| 73 const std::string& supervised_user_id) override {} | 73 const std::string& supervised_user_id) override {} |
| 74 void OnSupervisedUsersSyncingStopped() override {} | 74 void OnSupervisedUsersSyncingStopped() override {} |
| 75 void OnSupervisedUsersChanged() override; | 75 void OnSupervisedUsersChanged() override; |
| 76 | 76 |
| 77 // BaseScreen implementation: | 77 // BaseScreen implementation: |
| 78 void Show() override; | 78 void Show() override; |
| 79 void Hide() override; | 79 void Hide() override; |
| 80 | 80 |
| 81 // SupervisedUserCreationScreenHandler::Delegate implementation: | 81 // SupervisedUserCreationScreenHandler::Delegate implementation: |
| 82 void OnActorDestroyed(SupervisedUserCreationScreenHandler* actor) override; | 82 void OnViewDestroyed(SupervisedUserCreationScreenHandler* view) override; |
| 83 void CreateSupervisedUser( | 83 void CreateSupervisedUser( |
| 84 const base::string16& display_name, | 84 const base::string16& display_name, |
| 85 const std::string& supervised_user_password) override; | 85 const std::string& supervised_user_password) override; |
| 86 void ImportSupervisedUser(const std::string& user_id) override; | 86 void ImportSupervisedUser(const std::string& user_id) override; |
| 87 void ImportSupervisedUserWithPassword(const std::string& user_id, | 87 void ImportSupervisedUserWithPassword(const std::string& user_id, |
| 88 const std::string& password) override; | 88 const std::string& password) override; |
| 89 void AuthenticateManager(const AccountId& manager_id, | 89 void AuthenticateManager(const AccountId& manager_id, |
| 90 const std::string& manager_password) override; | 90 const std::string& manager_password) override; |
| 91 void AbortFlow() override; | 91 void AbortFlow() override; |
| 92 void FinishFlow() override; | 92 void FinishFlow() override; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 116 const std::string& image_type) override; | 116 const std::string& image_type) override; |
| 117 void OnImageAccepted() override; | 117 void OnImageAccepted() override; |
| 118 // ImageDecoder::ImageRequest overrides: | 118 // ImageDecoder::ImageRequest overrides: |
| 119 void OnImageDecoded(const SkBitmap& decoded_image) override; | 119 void OnImageDecoded(const SkBitmap& decoded_image) override; |
| 120 void OnDecodeImageFailed() override; | 120 void OnDecodeImageFailed() override; |
| 121 | 121 |
| 122 private: | 122 private: |
| 123 void ApplyPicture(); | 123 void ApplyPicture(); |
| 124 void OnGetSupervisedUsers(const base::DictionaryValue* users); | 124 void OnGetSupervisedUsers(const base::DictionaryValue* users); |
| 125 | 125 |
| 126 SupervisedUserCreationScreenHandler* actor_; | 126 SupervisedUserCreationScreenHandler* view_; |
| 127 | 127 |
| 128 std::unique_ptr<SupervisedUserCreationController> controller_; | 128 std::unique_ptr<SupervisedUserCreationController> controller_; |
| 129 std::unique_ptr<base::DictionaryValue> existing_users_; | 129 std::unique_ptr<base::DictionaryValue> existing_users_; |
| 130 | 130 |
| 131 bool on_error_screen_; | 131 bool on_error_screen_; |
| 132 bool manager_signin_in_progress_; | 132 bool manager_signin_in_progress_; |
| 133 std::string last_page_; | 133 std::string last_page_; |
| 134 | 134 |
| 135 SupervisedUserSyncService* sync_service_; | 135 SupervisedUserSyncService* sync_service_; |
| 136 | 136 |
| 137 gfx::ImageSkia user_photo_; | 137 gfx::ImageSkia user_photo_; |
| 138 bool apply_photo_after_decoding_; | 138 bool apply_photo_after_decoding_; |
| 139 int selected_image_; | 139 int selected_image_; |
| 140 | 140 |
| 141 std::unique_ptr<ErrorScreensHistogramHelper> histogram_helper_; | 141 std::unique_ptr<ErrorScreensHistogramHelper> histogram_helper_; |
| 142 | 142 |
| 143 base::WeakPtrFactory<SupervisedUserCreationScreen> weak_factory_; | 143 base::WeakPtrFactory<SupervisedUserCreationScreen> weak_factory_; |
| 144 | 144 |
| 145 DISALLOW_COPY_AND_ASSIGN(SupervisedUserCreationScreen); | 145 DISALLOW_COPY_AND_ASSIGN(SupervisedUserCreationScreen); |
| 146 }; | 146 }; |
| 147 | 147 |
| 148 } // namespace chromeos | 148 } // namespace chromeos |
| 149 | 149 |
| 150 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SUPERVISED_SUPERVISED_USER_CREATION_SCR
EEN_H_ | 150 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SUPERVISED_SUPERVISED_USER_CREATION_SCR
EEN_H_ |
| 151 | 151 |
| OLD | NEW |