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 namespace chromeos { |
| 9 |
| 10 // Interface between the device disabled screen and its representation. |
| 11 class DeviceDisabledScreenActor { |
| 12 public: |
| 13 // Allows the representation to access information about the screen. |
| 14 class Delegate { |
| 15 public: |
| 16 virtual ~Delegate() { |
| 17 } |
| 18 |
| 19 // Called when the actor is being destroyed. Note that if the Delegate is |
| 20 // destroyed first, it must call SetDelegate(nullptr). |
| 21 virtual void OnActorDestroyed(DeviceDisabledScreenActor* actor) = 0; |
| 22 }; |
| 23 |
| 24 virtual ~DeviceDisabledScreenActor() { |
| 25 } |
| 26 |
| 27 virtual void Show() = 0; |
| 28 virtual void Hide() = 0; |
| 29 virtual void SetDelegate(Delegate* delegate) = 0; |
| 30 }; |
| 31 |
| 32 } // namespace chromeos |
| 33 |
| 34 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_DEVICE_DISABLED_SCREEN_ACTOR_H_ |
| 35 |
OLD | NEW |