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

Unified Diff: chrome/browser/chromeos/login/screens/update_screen_actor.h

Issue 863263006: Migrating UpdateScreen to ScreenContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: refactor Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/login/screens/update_screen_actor.h
diff --git a/chrome/browser/chromeos/login/screens/update_screen_actor.h b/chrome/browser/chromeos/login/screens/update_screen_actor.h
deleted file mode 100644
index 064e2ce37dac2f21352907446d98ccfa3db0a3e7..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/login/screens/update_screen_actor.h
+++ /dev/null
@@ -1,73 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_UPDATE_SCREEN_ACTOR_H_
-#define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_UPDATE_SCREEN_ACTOR_H_
-
-#include "base/time/time.h"
-
-namespace chromeos {
-
-class UpdateScreenActor {
- public:
- // Indices for corresponding info messages during update stage.
- enum ProgressMessage {
- PROGRESS_MESSAGE_UPDATE_AVAILABLE = 0,
- PROGRESS_MESSAGE_INSTALLING_UPDATE,
- PROGRESS_MESSAGE_VERIFYING,
- PROGRESS_MESSAGE_FINALIZING
- };
-
- class Delegate {
- public:
- virtual ~Delegate() {}
-
- // Force cancel update.
- virtual void CancelUpdate() = 0;
-
- // Called prior to destroying |actor|.
- virtual void OnActorDestroyed(UpdateScreenActor* actor) = 0;
-
- // Called any time a new network connect request occurs.
- virtual void OnConnectToNetworkRequested() = 0;
- };
-
- virtual ~UpdateScreenActor() {}
-
- // Sets screen this actor belongs to.
- virtual void SetDelegate(Delegate* screen) = 0;
-
- // Shows the screen.
- virtual void Show() = 0;
-
- // Hides the screen.
- virtual void Hide() = 0;
-
- virtual void PrepareToShow() = 0;
-
- // Shows manual reboot info message.
- virtual void ShowManualRebootInfo() = 0;
-
- // Sets current progress in percents.
- virtual void SetProgress(int progress) = 0;
-
- // Shows estimated time left message.
- virtual void ShowEstimatedTimeLeft(bool visible) = 0;
-
- // Sets current estimation for time left in the downloading stage.
- virtual void SetEstimatedTimeLeft(const base::TimeDelta& time) = 0;
-
- // Shows message under progress bar.
- virtual void ShowProgressMessage(bool visible) = 0;
-
- // Sets message under progress bar.
- virtual void SetProgressMessage(ProgressMessage message) = 0;
-
- // Shows screen curtains.
- virtual void ShowCurtain(bool visible) = 0;
-};
-
-} // namespace chromeos
-
-#endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_UPDATE_SCREEN_ACTOR_H_

Powered by Google App Engine
This is Rietveld 408576698