Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Side by Side Diff: chrome/browser/chromeos/login/update_screen_actor.h

Issue 10882014: Slightly modified ETA computation algorithm. Also modified UI of the (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix, synx. Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_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 7
8 #include "base/time.h" 8 #include "base/time.h"
9 9
10 namespace chromeos { 10 namespace chromeos {
11 11
12 class UpdateScreenActor { 12 class UpdateScreenActor {
13 public: 13 public:
14 // Indices for corresponding info messages during update stage.
15 enum ProgressMessage {
16 PROGRESS_MESSAGE_UPDATE_AVAILABLE = 0,
17 PROGRESS_MESSAGE_INSTALLING_UPDATE,
18 PROGRESS_MESSAGE_VERIFYING,
19 PROGRESS_MESSAGE_FINALIZING
20 };
21
14 class Delegate { 22 class Delegate {
15 public: 23 public:
16 virtual ~Delegate() {} 24 virtual ~Delegate() {}
17 // Force cancel update. 25 // Force cancel update.
18 virtual void CancelUpdate() = 0; 26 virtual void CancelUpdate() = 0;
19 virtual void OnActorDestroyed(UpdateScreenActor* actor) = 0; 27 virtual void OnActorDestroyed(UpdateScreenActor* actor) = 0;
20 }; 28 };
21 29
22 virtual ~UpdateScreenActor() {} 30 virtual ~UpdateScreenActor() {}
23 31
24 // Sets screen this actor belongs to. 32 // Sets screen this actor belongs to.
25 virtual void SetDelegate(Delegate* screen) = 0; 33 virtual void SetDelegate(Delegate* screen) = 0;
26 34
27 // Shows the screen. 35 // Shows the screen.
28 virtual void Show() = 0; 36 virtual void Show() = 0;
29 37
30 // Hides the screen. 38 // Hides the screen.
31 virtual void Hide() = 0; 39 virtual void Hide() = 0;
32 40
33 virtual void PrepareToShow() = 0; 41 virtual void PrepareToShow() = 0;
34 42
35 // Shows manual reboot info message. 43 // Shows manual reboot info message.
36 virtual void ShowManualRebootInfo() = 0; 44 virtual void ShowManualRebootInfo() = 0;
37 45
38 // Sets current progress in percents. 46 // Sets current progress in percents.
39 virtual void SetProgress(int progress) = 0; 47 virtual void SetProgress(int progress) = 0;
40 48
41 // Shows estimated time left message. 49 // Shows estimated time left message.
42 virtual void ShowEstimatedTimeLeft(bool enable) = 0; 50 virtual void ShowEstimatedTimeLeft(bool visible) = 0;
43 51
44 // Sets current estimation for time left in the downloading stage. 52 // Sets current estimation for time left in the downloading stage.
45 virtual void SetEstimatedTimeLeft(const base::TimeDelta& time) = 0; 53 virtual void SetEstimatedTimeLeft(const base::TimeDelta& time) = 0;
46 54
55 // Shows message under progress bar.
56 virtual void ShowProgressMessage(bool visible) = 0;
57
58 // Sets message under progress bar.
59 virtual void SetProgressMessage(ProgressMessage message) = 0;
60
47 // Shows screen curtains. 61 // Shows screen curtains.
48 virtual void ShowCurtain(bool enable) = 0; 62 virtual void ShowCurtain(bool visible) = 0;
49
50 // Shows label for "Preparing updates" state.
51 virtual void ShowPreparingUpdatesInfo(bool visible) = 0;
52 }; 63 };
53 64
54 } // namespace chromeos 65 } // namespace chromeos
55 66
56 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UPDATE_SCREEN_ACTOR_H_ 67 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UPDATE_SCREEN_ACTOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/update_screen.cc ('k') | chrome/browser/resources/chromeos/login/oobe.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698