| OLD | NEW |
| 1 // Copyright (c) 2011 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_UPDATE_SCREEN_ACTOR_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_UPDATE_SCREEN_ACTOR_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UPDATE_SCREEN_ACTOR_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UPDATE_SCREEN_ACTOR_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/time.h" |
| 10 |
| 9 namespace chromeos { | 11 namespace chromeos { |
| 10 | 12 |
| 11 class UpdateScreenActor { | 13 class UpdateScreenActor { |
| 12 public: | 14 public: |
| 13 class Delegate { | 15 class Delegate { |
| 14 public: | 16 public: |
| 15 virtual ~Delegate() {} | 17 virtual ~Delegate() {} |
| 16 // Force cancel update. | 18 // Force cancel update. |
| 17 virtual void CancelUpdate() = 0; | 19 virtual void CancelUpdate() = 0; |
| 18 virtual void OnActorDestroyed(UpdateScreenActor* actor) = 0; | 20 virtual void OnActorDestroyed(UpdateScreenActor* actor) = 0; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 30 virtual void Hide() = 0; | 32 virtual void Hide() = 0; |
| 31 | 33 |
| 32 virtual void PrepareToShow() = 0; | 34 virtual void PrepareToShow() = 0; |
| 33 | 35 |
| 34 // Shows manual reboot info message. | 36 // Shows manual reboot info message. |
| 35 virtual void ShowManualRebootInfo() = 0; | 37 virtual void ShowManualRebootInfo() = 0; |
| 36 | 38 |
| 37 // Sets current progress in percents. | 39 // Sets current progress in percents. |
| 38 virtual void SetProgress(int progress) = 0; | 40 virtual void SetProgress(int progress) = 0; |
| 39 | 41 |
| 42 // Shows estimated time left message. |
| 43 virtual void ShowEstimatedTimeLeft(bool enable) = 0; |
| 44 |
| 45 // Sets current estimation for time left in the downloading stage. |
| 46 virtual void SetEstimatedTimeLeft(const base::TimeDelta& time) = 0; |
| 47 |
| 40 // Shows screen curtains. | 48 // Shows screen curtains. |
| 41 virtual void ShowCurtain(bool enable) = 0; | 49 virtual void ShowCurtain(bool enable) = 0; |
| 42 | 50 |
| 43 // Shows label for "Preparing updates" state. | 51 // Shows label for "Preparing updates" state. |
| 44 virtual void ShowPreparingUpdatesInfo(bool visible) = 0; | 52 virtual void ShowPreparingUpdatesInfo(bool visible) = 0; |
| 45 }; | 53 }; |
| 46 | 54 |
| 47 } // namespace chromeos | 55 } // namespace chromeos |
| 48 | 56 |
| 49 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UPDATE_SCREEN_ACTOR_H_ | 57 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UPDATE_SCREEN_ACTOR_H_ |
| OLD | NEW |