OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 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_WAIT_FOR_CONTAINER_READY_SCREEN_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_WAIT_FOR_CONTAINER_READY_SCREEN_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "base/macros.h" |
| 11 #include "chrome/browser/chromeos/login/screens/base_screen.h" |
| 12 |
| 13 namespace chromeos { |
| 14 |
| 15 class WaitForContainerReadyScreenView; |
| 16 class BaseScreenDelegate; |
| 17 |
| 18 class WaitForContainerReadyScreen : public BaseScreen { |
| 19 public: |
| 20 WaitForContainerReadyScreen(BaseScreenDelegate* base_screen_delegate, |
| 21 WaitForContainerReadyScreenView* view); |
| 22 ~WaitForContainerReadyScreen() override; |
| 23 |
| 24 // BaseScreen: |
| 25 void Show() override; |
| 26 void Hide() override; |
| 27 |
| 28 // Called when view is destroyed so there's no dead reference to it. |
| 29 void OnViewDestroyed(WaitForContainerReadyScreenView* view_); |
| 30 |
| 31 // Called when the container is ready, exit the screen. |
| 32 void OnContainerReady(); |
| 33 |
| 34 private: |
| 35 WaitForContainerReadyScreenView* view_; |
| 36 |
| 37 DISALLOW_COPY_AND_ASSIGN(WaitForContainerReadyScreen); |
| 38 }; |
| 39 |
| 40 } // namespace chromeos |
| 41 |
| 42 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_WAIT_FOR_CONTAINER_READY_SCREEN
_H_ |
OLD | NEW |