| 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 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_USER_IMAGE_SCREEN_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_USER_IMAGE_SCREEN_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_USER_IMAGE_SCREEN_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_USER_IMAGE_SCREEN_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 public UserImageSyncObserver::Observer, | 40 public UserImageSyncObserver::Observer, |
| 41 public CameraPresenceNotifier::Observer { | 41 public CameraPresenceNotifier::Observer { |
| 42 public: | 42 public: |
| 43 UserImageScreen(BaseScreenDelegate* base_screen_delegate, | 43 UserImageScreen(BaseScreenDelegate* base_screen_delegate, |
| 44 UserImageView* view); | 44 UserImageView* view); |
| 45 ~UserImageScreen() override; | 45 ~UserImageScreen() override; |
| 46 | 46 |
| 47 static UserImageScreen* Get(ScreenManager* manager); | 47 static UserImageScreen* Get(ScreenManager* manager); |
| 48 | 48 |
| 49 // BaseScreen implementation: | 49 // BaseScreen implementation: |
| 50 void PrepareToShow() override; | |
| 51 void Show() override; | 50 void Show() override; |
| 52 void Hide() override; | 51 void Hide() override; |
| 53 | 52 |
| 54 // UserImageScreenActor::Delegate implementation: | 53 // UserImageScreenActor::Delegate implementation: |
| 55 void OnScreenReady() override; | 54 void OnScreenReady() override; |
| 56 void OnPhotoTaken(const std::string& raw_data) override; | 55 void OnPhotoTaken(const std::string& raw_data) override; |
| 57 void OnImageSelected(const std::string& image_url, | 56 void OnImageSelected(const std::string& image_url, |
| 58 const std::string& image_type, | 57 const std::string& image_type, |
| 59 bool is_user_selection) override; | 58 bool is_user_selection) override; |
| 60 void OnImageAccepted() override; | 59 void OnImageAccepted() override; |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 | 143 |
| 145 // The time when we started wait for user image sync. | 144 // The time when we started wait for user image sync. |
| 146 base::Time sync_waiting_start_time_; | 145 base::Time sync_waiting_start_time_; |
| 147 | 146 |
| 148 DISALLOW_COPY_AND_ASSIGN(UserImageScreen); | 147 DISALLOW_COPY_AND_ASSIGN(UserImageScreen); |
| 149 }; | 148 }; |
| 150 | 149 |
| 151 } // namespace chromeos | 150 } // namespace chromeos |
| 152 | 151 |
| 153 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_USER_IMAGE_SCREEN_H_ | 152 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_USER_IMAGE_SCREEN_H_ |
| OLD | NEW |