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

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

Issue 669623006: Add a "device disabled" OOBE screen (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed nits. Created 6 years, 2 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/device_disabled_screen_actor.h
diff --git a/chrome/browser/chromeos/login/screens/device_disabled_screen_actor.h b/chrome/browser/chromeos/login/screens/device_disabled_screen_actor.h
new file mode 100644
index 0000000000000000000000000000000000000000..aa26e2115f87bca046f38590cf6ade6c8a654ed0
--- /dev/null
+++ b/chrome/browser/chromeos/login/screens/device_disabled_screen_actor.h
@@ -0,0 +1,35 @@
+// Copyright 2014 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_DEVICE_DISABLED_SCREEN_ACTOR_H_
+#define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_DEVICE_DISABLED_SCREEN_ACTOR_H_
+
+namespace chromeos {
+
+// Interface between the device disabled screen and its representation.
+class DeviceDisabledScreenActor {
+ public:
+ // Allows the representation to access information about the screen.
+ class Delegate {
+ public:
+ virtual ~Delegate() {
+ }
+
+ // Called when the actor is being destroyed. Note that if the Delegate is
+ // destroyed first, it must call SetDelegate(nullptr).
+ virtual void OnActorDestroyed(DeviceDisabledScreenActor* actor) = 0;
+ };
+
+ virtual ~DeviceDisabledScreenActor() {
+ }
+
+ virtual void Show() = 0;
+ virtual void Hide() = 0;
+ virtual void SetDelegate(Delegate* delegate) = 0;
+};
+
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_DEVICE_DISABLED_SCREEN_ACTOR_H_
+
« no previous file with comments | « chrome/browser/chromeos/login/screens/device_disabled_screen.cc ('k') | chrome/browser/chromeos/login/ui/oobe_display.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698