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

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

Issue 7774009: [cros] check for updates in WebUI OOBE can be cancelled in dev builds. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixed mock for UpdateScreenActor. Created 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 namespace chromeos { 9 namespace chromeos {
10 10
11 class WizardScreen; 11 class WizardScreen;
12 class ScreenObserver; 12 class ScreenObserver;
13 13
14 class UpdateScreenActor { 14 class UpdateScreenActor {
15 public: 15 public:
16 class Delegate {
17 public:
18 virtual ~Delegate() {}
19 // Force cancel update.
20 virtual void CancelUpdate() = 0;
21 };
22
16 virtual ~UpdateScreenActor() {} 23 virtual ~UpdateScreenActor() {}
whywhat 2011/08/29 17:55:51 nit: I think we'd better notify the screen that we
Ivan Korotkov 2011/08/29 18:19:17 Other actors with delegates (like UserImageScreenA
17 24
25 // Sets screen this actor belongs to.
26 virtual void SetDelegate(Delegate* screen) = 0;
27
18 // Shows the screen. 28 // Shows the screen.
19 virtual void Show() = 0; 29 virtual void Show() = 0;
20 30
21 // Hides the screen. 31 // Hides the screen.
22 virtual void Hide() = 0; 32 virtual void Hide() = 0;
23 33
24 virtual void PrepareToShow() = 0; 34 virtual void PrepareToShow() = 0;
25 35
26 // Shows manual reboot info message. 36 // Shows manual reboot info message.
27 virtual void ShowManualRebootInfo() = 0; 37 virtual void ShowManualRebootInfo() = 0;
28 38
29 // Sets current progress in percents. 39 // Sets current progress in percents.
30 virtual void SetProgress(int progress) = 0; 40 virtual void SetProgress(int progress) = 0;
31 41
32 // Shows screen curtains. 42 // Shows screen curtains.
33 virtual void ShowCurtain(bool enable) = 0; 43 virtual void ShowCurtain(bool enable) = 0;
34 44
35 // Shows label for "Preparing updates" state. 45 // Shows label for "Preparing updates" state.
36 virtual void ShowPreparingUpdatesInfo(bool visible) = 0; 46 virtual void ShowPreparingUpdatesInfo(bool visible) = 0;
37 }; 47 };
38 48
39 } // namespace chromeos 49 } // namespace chromeos
40 50
41 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UPDATE_SCREEN_ACTOR_H_ 51 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UPDATE_SCREEN_ACTOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698