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" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "chrome/browser/chromeos/camera_presence_notifier.h" | 12 #include "chrome/browser/chromeos/camera_presence_notifier.h" |
13 #include "chrome/browser/chromeos/login/screens/wizard_screen.h" | 13 #include "chrome/browser/chromeos/login/screens/wizard_screen.h" |
14 #include "chrome/browser/chromeos/login/supervised/supervised_user_creation_cont
roller.h" | 14 #include "chrome/browser/chromeos/login/supervised/supervised_user_creation_cont
roller.h" |
15 #include "chrome/browser/image_decoder.h" | 15 #include "chrome/browser/image_decoder.h" |
16 #include "chrome/browser/supervised_user/supervised_user_sync_service.h" | 16 #include "chrome/browser/supervised_user/supervised_user_sync_service.h" |
17 #include "chrome/browser/ui/webui/chromeos/login/supervised_user_creation_screen
_handler.h" | 17 #include "chrome/browser/ui/webui/chromeos/login/supervised_user_creation_screen
_handler.h" |
18 #include "chromeos/network/portal_detector/network_portal_detector.h" | 18 #include "chromeos/network/portal_detector/network_portal_detector.h" |
19 #include "ui/gfx/image/image_skia.h" | 19 #include "ui/gfx/image/image_skia.h" |
20 | 20 |
21 class Profile; | 21 class Profile; |
22 | 22 |
23 namespace chromeos { | 23 namespace chromeos { |
24 | 24 |
| 25 class ErrorScreensHistogramHelper; |
25 class NetworkState; | 26 class NetworkState; |
26 | 27 |
27 // Class that controls screen showing ui for supervised user creation. | 28 // Class that controls screen showing ui for supervised user creation. |
28 class SupervisedUserCreationScreen | 29 class SupervisedUserCreationScreen |
29 : public WizardScreen, | 30 : public WizardScreen, |
30 public SupervisedUserCreationScreenHandler::Delegate, | 31 public SupervisedUserCreationScreenHandler::Delegate, |
31 public SupervisedUserCreationController::StatusConsumer, | 32 public SupervisedUserCreationController::StatusConsumer, |
32 public SupervisedUserSyncServiceObserver, | 33 public SupervisedUserSyncServiceObserver, |
33 public ImageDecoder::Delegate, | 34 public ImageDecoder::Delegate, |
34 public NetworkPortalDetector::Observer, | 35 public NetworkPortalDetector::Observer, |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 bool on_error_screen_; | 135 bool on_error_screen_; |
135 std::string last_page_; | 136 std::string last_page_; |
136 | 137 |
137 SupervisedUserSyncService* sync_service_; | 138 SupervisedUserSyncService* sync_service_; |
138 | 139 |
139 gfx::ImageSkia user_photo_; | 140 gfx::ImageSkia user_photo_; |
140 scoped_refptr<ImageDecoder> image_decoder_; | 141 scoped_refptr<ImageDecoder> image_decoder_; |
141 bool apply_photo_after_decoding_; | 142 bool apply_photo_after_decoding_; |
142 int selected_image_; | 143 int selected_image_; |
143 | 144 |
| 145 scoped_ptr<ErrorScreensHistogramHelper> histogram_helper_; |
| 146 |
144 DISALLOW_COPY_AND_ASSIGN(SupervisedUserCreationScreen); | 147 DISALLOW_COPY_AND_ASSIGN(SupervisedUserCreationScreen); |
145 }; | 148 }; |
146 | 149 |
147 } // namespace chromeos | 150 } // namespace chromeos |
148 | 151 |
149 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SUPERVISED_SUPERVISED_USER_CREATION_SCR
EEN_H_ | 152 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SUPERVISED_SUPERVISED_USER_CREATION_SCR
EEN_H_ |
150 | 153 |
OLD | NEW |