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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 base::WeakPtrFactory<SupervisedUserCreationScreen> weak_factory_; | |
132 SupervisedUserCreationScreenHandler* actor_; | 131 SupervisedUserCreationScreenHandler* actor_; |
133 | 132 |
134 scoped_ptr<SupervisedUserCreationController> controller_; | 133 scoped_ptr<SupervisedUserCreationController> controller_; |
135 scoped_ptr<base::DictionaryValue> existing_users_; | 134 scoped_ptr<base::DictionaryValue> existing_users_; |
136 | 135 |
137 bool on_error_screen_; | 136 bool on_error_screen_; |
138 std::string last_page_; | 137 std::string last_page_; |
139 | 138 |
140 SupervisedUserSyncService* sync_service_; | 139 SupervisedUserSyncService* sync_service_; |
141 | 140 |
142 gfx::ImageSkia user_photo_; | 141 gfx::ImageSkia user_photo_; |
143 scoped_refptr<ImageDecoder> image_decoder_; | 142 scoped_refptr<ImageDecoder> image_decoder_; |
144 bool apply_photo_after_decoding_; | 143 bool apply_photo_after_decoding_; |
145 int selected_image_; | 144 int selected_image_; |
146 | 145 |
| 146 base::WeakPtrFactory<SupervisedUserCreationScreen> weak_factory_; |
| 147 |
147 DISALLOW_COPY_AND_ASSIGN(SupervisedUserCreationScreen); | 148 DISALLOW_COPY_AND_ASSIGN(SupervisedUserCreationScreen); |
148 }; | 149 }; |
149 | 150 |
150 } // namespace chromeos | 151 } // namespace chromeos |
151 | 152 |
152 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SUPERVISED_SUPERVISED_USER_CREATION_SCR
EEN_H_ | 153 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SUPERVISED_SUPERVISED_USER_CREATION_SCR
EEN_H_ |
153 | 154 |
OLD | NEW |