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 <string> | |
10 #include "base/time.h" | |
Nikita (slow)
2012/05/10 16:04:31
nit: insert empty line between different include t
ygorshenin1
2012/05/11 12:42:50
Done.
| |
11 | |
9 namespace chromeos { | 12 namespace chromeos { |
10 | 13 |
11 class UpdateScreenActor { | 14 class UpdateScreenActor { |
12 public: | 15 public: |
13 class Delegate { | 16 class Delegate { |
14 public: | 17 public: |
15 virtual ~Delegate() {} | 18 virtual ~Delegate() {} |
16 // Force cancel update. | 19 // Force cancel update. |
17 virtual void CancelUpdate() = 0; | 20 virtual void CancelUpdate() = 0; |
18 virtual void OnActorDestroyed(UpdateScreenActor* actor) = 0; | 21 virtual void OnActorDestroyed(UpdateScreenActor* actor) = 0; |
(...skipping 11 matching lines...) Expand all Loading... | |
30 virtual void Hide() = 0; | 33 virtual void Hide() = 0; |
31 | 34 |
32 virtual void PrepareToShow() = 0; | 35 virtual void PrepareToShow() = 0; |
33 | 36 |
34 // Shows manual reboot info message. | 37 // Shows manual reboot info message. |
35 virtual void ShowManualRebootInfo() = 0; | 38 virtual void ShowManualRebootInfo() = 0; |
36 | 39 |
37 // Sets current progress in percents. | 40 // Sets current progress in percents. |
38 virtual void SetProgress(int progress) = 0; | 41 virtual void SetProgress(int progress) = 0; |
39 | 42 |
43 // Sets current estimation for time left in the downloading stage. | |
44 virtual void SetEstimatedTimeLeft(const base::TimeDelta& time) = 0; | |
45 | |
46 // Sets current downloading rate. |rate| must be in B/s. | |
47 virtual void SetDownloadingRate(double rate) = 0; | |
48 | |
40 // Shows screen curtains. | 49 // Shows screen curtains. |
41 virtual void ShowCurtain(bool enable) = 0; | 50 virtual void ShowCurtain(bool enable) = 0; |
42 | 51 |
52 // Shows update downloading stats. | |
53 virtual void ShowUpdateDownloadingStats(bool enable) = 0; | |
54 | |
43 // Shows label for "Preparing updates" state. | 55 // Shows label for "Preparing updates" state. |
44 virtual void ShowPreparingUpdatesInfo(bool visible) = 0; | 56 virtual void ShowPreparingUpdatesInfo(bool visible) = 0; |
45 }; | 57 }; |
46 | 58 |
47 } // namespace chromeos | 59 } // namespace chromeos |
48 | 60 |
49 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UPDATE_SCREEN_ACTOR_H_ | 61 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UPDATE_SCREEN_ACTOR_H_ |
OLD | NEW |