| 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 void OnImageSelected(const std::string& image_url, | 115 void OnImageSelected(const std::string& image_url, |
| 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 void UpdateSecureModuleMessages(); |
| 125 | 126 |
| 126 SupervisedUserCreationScreenHandler* view_; | 127 SupervisedUserCreationScreenHandler* view_; |
| 127 | 128 |
| 128 std::unique_ptr<SupervisedUserCreationController> controller_; | 129 std::unique_ptr<SupervisedUserCreationController> controller_; |
| 129 std::unique_ptr<base::DictionaryValue> existing_users_; | 130 std::unique_ptr<base::DictionaryValue> existing_users_; |
| 130 | 131 |
| 131 bool on_error_screen_; | 132 bool on_error_screen_; |
| 132 bool manager_signin_in_progress_; | 133 bool manager_signin_in_progress_; |
| 133 std::string last_page_; | 134 std::string last_page_; |
| 134 | 135 |
| 135 SupervisedUserSyncService* sync_service_; | 136 SupervisedUserSyncService* sync_service_; |
| 136 | 137 |
| 137 gfx::ImageSkia user_photo_; | 138 gfx::ImageSkia user_photo_; |
| 138 bool apply_photo_after_decoding_; | 139 bool apply_photo_after_decoding_; |
| 139 int selected_image_; | 140 int selected_image_; |
| 140 | 141 |
| 141 std::unique_ptr<ErrorScreensHistogramHelper> histogram_helper_; | 142 std::unique_ptr<ErrorScreensHistogramHelper> histogram_helper_; |
| 142 | 143 |
| 143 base::WeakPtrFactory<SupervisedUserCreationScreen> weak_factory_; | 144 base::WeakPtrFactory<SupervisedUserCreationScreen> weak_factory_; |
| 144 | 145 |
| 145 DISALLOW_COPY_AND_ASSIGN(SupervisedUserCreationScreen); | 146 DISALLOW_COPY_AND_ASSIGN(SupervisedUserCreationScreen); |
| 146 }; | 147 }; |
| 147 | 148 |
| 148 } // namespace chromeos | 149 } // namespace chromeos |
| 149 | 150 |
| 150 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SUPERVISED_SUPERVISED_USER_CREATION_SCR
EEN_H_ | 151 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SUPERVISED_SUPERVISED_USER_CREATION_SCR
EEN_H_ |
| 151 | 152 |
| OLD | NEW |