| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_DEVICE_DISABLED_SCREEN_ACTOR_H_ | |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_DEVICE_DISABLED_SCREEN_ACTOR_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 namespace chromeos { | |
| 11 | |
| 12 // Interface between the device disabled screen and its representation. | |
| 13 class DeviceDisabledScreenActor { | |
| 14 public: | |
| 15 // Allows the representation to access information about the screen. | |
| 16 class Delegate { | |
| 17 public: | |
| 18 virtual ~Delegate() { | |
| 19 } | |
| 20 | |
| 21 // Called when the actor is being destroyed. Note that if the Delegate is | |
| 22 // destroyed first, it must call SetDelegate(nullptr). | |
| 23 virtual void OnActorDestroyed(DeviceDisabledScreenActor* actor) = 0; | |
| 24 | |
| 25 // Returns the domain that owns the device. | |
| 26 virtual const std::string& GetEnrollmentDomain() const = 0; | |
| 27 | |
| 28 // Returns the message that should be shown to the user. | |
| 29 virtual const std::string& GetMessage() const = 0; | |
| 30 }; | |
| 31 | |
| 32 virtual ~DeviceDisabledScreenActor() { | |
| 33 } | |
| 34 | |
| 35 virtual void Show() = 0; | |
| 36 virtual void Hide() = 0; | |
| 37 virtual void SetDelegate(Delegate* delegate) = 0; | |
| 38 virtual void UpdateMessage(const std::string& message) = 0; | |
| 39 }; | |
| 40 | |
| 41 } // namespace chromeos | |
| 42 | |
| 43 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_DEVICE_DISABLED_SCREEN_ACTOR_H_ | |
| 44 | |
| OLD | NEW |