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

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

Issue 10389064: Added estimated time remaining on AU. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Issues are fixed, sync. Created 8 years, 7 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
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/update_screen.cc ('k') | chrome/browser/resources/chromeos/login/login.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698