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

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: Created 8 years, 4 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 enum ProgressMessage {
Ivan Korotkov 2012/08/24 09:01:36 Add a comment, please.
ygorshenin1 2012/08/27 12:54:16 Done.
15 PROGRESS_MESSAGE_UPDATE_AVAILABLE = 0,
16 PROGRESS_MESSAGE_INSTALLING_UPDATE = 1,
Ivan Korotkov 2012/08/24 09:01:36 No need in explicit numbers other than 0.
ygorshenin1 2012/08/27 12:54:16 Done.
17 PROGRESS_MESSAGE_VERIFYING = 2,
18 PROGRESS_MESSAGE_FINALIZING = 3,
19 };
20
14 class Delegate { 21 class Delegate {
15 public: 22 public:
16 virtual ~Delegate() {} 23 virtual ~Delegate() {}
17 // Force cancel update. 24 // Force cancel update.
18 virtual void CancelUpdate() = 0; 25 virtual void CancelUpdate() = 0;
19 virtual void OnActorDestroyed(UpdateScreenActor* actor) = 0; 26 virtual void OnActorDestroyed(UpdateScreenActor* actor) = 0;
20 }; 27 };
21 28
22 virtual ~UpdateScreenActor() {} 29 virtual ~UpdateScreenActor() {}
23 30
(...skipping 13 matching lines...) Expand all
37 44
38 // Sets current progress in percents. 45 // Sets current progress in percents.
39 virtual void SetProgress(int progress) = 0; 46 virtual void SetProgress(int progress) = 0;
40 47
41 // Shows estimated time left message. 48 // Shows estimated time left message.
42 virtual void ShowEstimatedTimeLeft(bool enable) = 0; 49 virtual void ShowEstimatedTimeLeft(bool enable) = 0;
43 50
44 // Sets current estimation for time left in the downloading stage. 51 // Sets current estimation for time left in the downloading stage.
45 virtual void SetEstimatedTimeLeft(const base::TimeDelta& time) = 0; 52 virtual void SetEstimatedTimeLeft(const base::TimeDelta& time) = 0;
46 53
54 // Shows message under progress bar.
Ivan Korotkov 2012/08/24 09:01:36 Show and enable have somewhat different meanings.
ygorshenin1 2012/08/27 12:54:16 Done.
55 virtual void ShowProgressMessage(bool enable) = 0;
56
57 // Sets message under progress bar.
58 virtual void SetProgressMessage(ProgressMessage message) = 0;
59
47 // Shows screen curtains. 60 // Shows screen curtains.
48 virtual void ShowCurtain(bool enable) = 0; 61 virtual void ShowCurtain(bool enable) = 0;
49
50 // Shows label for "Preparing updates" state.
51 virtual void ShowPreparingUpdatesInfo(bool visible) = 0;
52 }; 62 };
53 63
54 } // namespace chromeos 64 } // namespace chromeos
55 65
56 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UPDATE_SCREEN_ACTOR_H_ 66 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UPDATE_SCREEN_ACTOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698