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

Side by Side Diff: chrome/browser/chromeos/login/screens/device_disabled_screen_actor.h

Issue 676773002: Add device disabling to OOBE flow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update browser tests. 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SCREENS_DEVICE_DISABLED_SCREEN_ACTOR_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_DEVICE_DISABLED_SCREEN_ACTOR_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_DEVICE_DISABLED_SCREEN_ACTOR_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_DEVICE_DISABLED_SCREEN_ACTOR_H_
7 7
8 #include <string>
9
8 namespace chromeos { 10 namespace chromeos {
9 11
10 // Interface between the device disabled screen and its representation. 12 // Interface between the device disabled screen and its representation.
11 class DeviceDisabledScreenActor { 13 class DeviceDisabledScreenActor {
12 public: 14 public:
13 // Allows the representation to access information about the screen. 15 // Allows the representation to access information about the screen.
14 class Delegate { 16 class Delegate {
15 public: 17 public:
16 virtual ~Delegate() { 18 virtual ~Delegate() {
17 } 19 }
18 20
19 // Called when the actor is being destroyed. Note that if the Delegate is 21 // Called when the actor is being destroyed. Note that if the Delegate is
20 // destroyed first, it must call SetDelegate(nullptr). 22 // destroyed first, it must call SetDelegate(nullptr).
21 virtual void OnActorDestroyed(DeviceDisabledScreenActor* actor) = 0; 23 virtual void OnActorDestroyed(DeviceDisabledScreenActor* actor) = 0;
22 }; 24 };
23 25
24 virtual ~DeviceDisabledScreenActor() { 26 virtual ~DeviceDisabledScreenActor() {
25 } 27 }
26 28
27 virtual void Show() = 0; 29 virtual void Show(const std::string& message) = 0;
28 virtual void Hide() = 0; 30 virtual void Hide() = 0;
29 virtual void SetDelegate(Delegate* delegate) = 0; 31 virtual void SetDelegate(Delegate* delegate) = 0;
30 }; 32 };
31 33
32 } // namespace chromeos 34 } // namespace chromeos
33 35
34 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_DEVICE_DISABLED_SCREEN_ACTOR_H_ 36 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_DEVICE_DISABLED_SCREEN_ACTOR_H_
35 37
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698