| 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_SCREENS_USER_IMAGE_VIEW_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_USER_IMAGE_VIEW_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_USER_IMAGE_VIEW_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_USER_IMAGE_VIEW_H_ |
| 7 | 7 |
| 8 namespace chromeos { | 8 namespace chromeos { |
| 9 | 9 |
| 10 class UserImageModel; | 10 class UserImageModel; |
| 11 | 11 |
| 12 // Interface for dependency injection between UserImageScreen and its actual | 12 // Interface for dependency injection between UserImageScreen and its actual |
| 13 // representation, either views based or WebUI. | 13 // representation, either views based or WebUI. |
| 14 class UserImageView { | 14 class UserImageView { |
| 15 public: | 15 public: |
| 16 virtual ~UserImageView() {} | 16 virtual ~UserImageView() {} |
| 17 | 17 |
| 18 virtual void Bind(UserImageModel& model) = 0; | 18 virtual void Bind(UserImageModel& model) = 0; |
| 19 | 19 |
| 20 virtual void Unbind() = 0; | 20 virtual void Unbind() = 0; |
| 21 | 21 |
| 22 // Prepare the contents to showing. | |
| 23 virtual void PrepareToShow() = 0; | |
| 24 | |
| 25 // Shows the contents of the screen. | 22 // Shows the contents of the screen. |
| 26 virtual void Show() = 0; | 23 virtual void Show() = 0; |
| 27 | 24 |
| 28 // Hides the contents of the screen. | 25 // Hides the contents of the screen. |
| 29 virtual void Hide() = 0; | 26 virtual void Hide() = 0; |
| 30 | 27 |
| 31 // Hides curtain with spinner. | 28 // Hides curtain with spinner. |
| 32 virtual void HideCurtain() = 0; | 29 virtual void HideCurtain() = 0; |
| 33 }; | 30 }; |
| 34 | 31 |
| 35 } // namespace chromeos | 32 } // namespace chromeos |
| 36 | 33 |
| 37 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_USER_IMAGE_VIEW_H_ | 34 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_USER_IMAGE_VIEW_H_ |
| OLD | NEW |