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

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

Issue 2700303002: cros: Unify oobe View/Actor naming to just View. (Closed)
Patch Set: Rebase Created 3 years, 9 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_VIEW_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_DEVICE_DISABLED_SCREEN_ACTOR_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_DEVICE_DISABLED_SCREEN_VIEW_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 namespace chromeos { 10 namespace chromeos {
11 11
12 // Interface between the device disabled screen and its representation. 12 // Interface between the device disabled screen and its representation.
13 class DeviceDisabledScreenActor { 13 class DeviceDisabledScreenView {
14 public: 14 public:
15 // Allows the representation to access information about the screen. 15 // Allows the representation to access information about the screen.
16 class Delegate { 16 class Delegate {
17 public: 17 public:
18 virtual ~Delegate() { 18 virtual ~Delegate() {}
19 }
20 19
21 // Called when the actor is being destroyed. Note that if the Delegate is 20 // Called when the view is being destroyed. Note that if the Delegate is
22 // destroyed first, it must call SetDelegate(nullptr). 21 // destroyed first, it must call SetDelegate(nullptr).
23 virtual void OnActorDestroyed(DeviceDisabledScreenActor* actor) = 0; 22 virtual void OnViewDestroyed(DeviceDisabledScreenView* view) = 0;
24 23
25 // Returns the domain that owns the device. 24 // Returns the domain that owns the device.
26 virtual const std::string& GetEnrollmentDomain() const = 0; 25 virtual const std::string& GetEnrollmentDomain() const = 0;
27 26
28 // Returns the message that should be shown to the user. 27 // Returns the message that should be shown to the user.
29 virtual const std::string& GetMessage() const = 0; 28 virtual const std::string& GetMessage() const = 0;
30 }; 29 };
31 30
32 virtual ~DeviceDisabledScreenActor() { 31 virtual ~DeviceDisabledScreenView() {}
33 }
34 32
35 virtual void Show() = 0; 33 virtual void Show() = 0;
36 virtual void Hide() = 0; 34 virtual void Hide() = 0;
37 virtual void SetDelegate(Delegate* delegate) = 0; 35 virtual void SetDelegate(Delegate* delegate) = 0;
38 virtual void UpdateMessage(const std::string& message) = 0; 36 virtual void UpdateMessage(const std::string& message) = 0;
39 }; 37 };
40 38
41 } // namespace chromeos 39 } // namespace chromeos
42 40
43 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_DEVICE_DISABLED_SCREEN_ACTOR_H_ 41 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_DEVICE_DISABLED_SCREEN_VIEW_H_
44
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698