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

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: Added OnActorDestroyed to UpdateScreen::Delegate. 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 virtual void OnActorDestroyed(UpdateScreenActor* actor) = 0;
22 };
23
16 virtual ~UpdateScreenActor() {} 24 virtual ~UpdateScreenActor() {}
17 25
26 // Sets screen this actor belongs to.
27 virtual void SetDelegate(Delegate* screen) = 0;
28
18 // Shows the screen. 29 // Shows the screen.
19 virtual void Show() = 0; 30 virtual void Show() = 0;
20 31
21 // Hides the screen. 32 // Hides the screen.
22 virtual void Hide() = 0; 33 virtual void Hide() = 0;
23 34
24 virtual void PrepareToShow() = 0; 35 virtual void PrepareToShow() = 0;
25 36
26 // Shows manual reboot info message. 37 // Shows manual reboot info message.
27 virtual void ShowManualRebootInfo() = 0; 38 virtual void ShowManualRebootInfo() = 0;
28 39
29 // Sets current progress in percents. 40 // Sets current progress in percents.
30 virtual void SetProgress(int progress) = 0; 41 virtual void SetProgress(int progress) = 0;
31 42
32 // Shows screen curtains. 43 // Shows screen curtains.
33 virtual void ShowCurtain(bool enable) = 0; 44 virtual void ShowCurtain(bool enable) = 0;
34 45
35 // Shows label for "Preparing updates" state. 46 // Shows label for "Preparing updates" state.
36 virtual void ShowPreparingUpdatesInfo(bool visible) = 0; 47 virtual void ShowPreparingUpdatesInfo(bool visible) = 0;
37 }; 48 };
38 49
39 } // namespace chromeos 50 } // namespace chromeos
40 51
41 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UPDATE_SCREEN_ACTOR_H_ 52 #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/chromeos/login/views_update_screen_actor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698