OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "chrome/browser/chromeos/login/screens/user_image_screen.h" | 5 #include "chrome/browser/chromeos/login/screens/user_image_screen.h" |
6 | 6 |
7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
9 #include "chrome/browser/chromeos/accessibility/accessibility_util.h" | 9 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" |
10 #include "chrome/browser/chromeos/camera_detector.h" | 10 #include "chrome/browser/chromeos/camera_detector.h" |
11 #include "chrome/browser/chromeos/login/default_user_images.h" | 11 #include "chrome/browser/chromeos/login/default_user_images.h" |
12 #include "chrome/browser/chromeos/login/login_utils.h" | 12 #include "chrome/browser/chromeos/login/login_utils.h" |
13 #include "chrome/browser/chromeos/login/screens/screen_observer.h" | 13 #include "chrome/browser/chromeos/login/screens/screen_observer.h" |
14 #include "chrome/browser/chromeos/login/user_image.h" | 14 #include "chrome/browser/chromeos/login/user_image.h" |
15 #include "chrome/browser/chromeos/login/user_image_manager.h" | 15 #include "chrome/browser/chromeos/login/user_image_manager.h" |
16 #include "chrome/browser/chromeos/login/user_manager.h" | 16 #include "chrome/browser/chromeos/login/user_manager.h" |
17 #include "chrome/browser/chromeos/login/wizard_controller.h" | 17 #include "chrome/browser/chromeos/login/wizard_controller.h" |
18 #include "chrome/common/chrome_notification_types.h" | 18 #include "chrome/common/chrome_notification_types.h" |
19 #include "chrome/common/url_constants.h" | 19 #include "chrome/common/url_constants.h" |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 | 192 |
193 selected_image_ = GetUser()->image_index(); | 193 selected_image_ = GetUser()->image_index(); |
194 actor_->SelectImage(selected_image_); | 194 actor_->SelectImage(selected_image_); |
195 | 195 |
196 if (profile_picture_enabled_) { | 196 if (profile_picture_enabled_) { |
197 // Start fetching the profile image. | 197 // Start fetching the profile image. |
198 UserManager::Get()->GetUserImageManager()-> | 198 UserManager::Get()->GetUserImageManager()-> |
199 DownloadProfileImage(kProfileDownloadReason); | 199 DownloadProfileImage(kProfileDownloadReason); |
200 } | 200 } |
201 | 201 |
202 accessibility::MaybeSpeak( | 202 AccessibilityManager::Get()->MaybeSpeak( |
203 l10n_util::GetStringUTF8(IDS_OPTIONS_CHANGE_PICTURE_DIALOG_TEXT)); | 203 l10n_util::GetStringUTF8(IDS_OPTIONS_CHANGE_PICTURE_DIALOG_TEXT)); |
204 } | 204 } |
205 | 205 |
206 void UserImageScreen::Hide() { | 206 void UserImageScreen::Hide() { |
207 if (actor_) | 207 if (actor_) |
208 actor_->Hide(); | 208 actor_->Hide(); |
209 } | 209 } |
210 | 210 |
211 std::string UserImageScreen::GetName() const { | 211 std::string UserImageScreen::GetName() const { |
212 return WizardController::kUserImageScreenName; | 212 return WizardController::kUserImageScreenName; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 | 248 |
249 int UserImageScreen::selected_image() { | 249 int UserImageScreen::selected_image() { |
250 return selected_image_; | 250 return selected_image_; |
251 } | 251 } |
252 | 252 |
253 std::string UserImageScreen::profile_picture_data_url() { | 253 std::string UserImageScreen::profile_picture_data_url() { |
254 return profile_picture_data_url_; | 254 return profile_picture_data_url_; |
255 } | 255 } |
256 | 256 |
257 } // namespace chromeos | 257 } // namespace chromeos |
OLD | NEW |