| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_APP_LAUNCH_SPLASH_SCREEN_ACTOR_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_APP_LAUNCH_SPLASH_SCREEN_ACTOR_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_APP_LAUNCH_SPLASH_SCREEN_ACTOR_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_APP_LAUNCH_SPLASH_SCREEN_ACTOR_H_ |
| 7 | 7 |
| 8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
| 9 | 9 |
| 10 namespace chromeos { | 10 namespace chromeos { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 }; | 22 }; |
| 23 | 23 |
| 24 class Delegate { | 24 class Delegate { |
| 25 public: | 25 public: |
| 26 // Invoked when the configure network control is clicked. | 26 // Invoked when the configure network control is clicked. |
| 27 virtual void OnConfigureNetwork() = 0; | 27 virtual void OnConfigureNetwork() = 0; |
| 28 | 28 |
| 29 // Invoked when the app launch bailout shortcut key is pressed. | 29 // Invoked when the app launch bailout shortcut key is pressed. |
| 30 virtual void OnCancelAppLaunch() = 0; | 30 virtual void OnCancelAppLaunch() = 0; |
| 31 | 31 |
| 32 // Invoked when the network config shortcut key is pressed. | |
| 33 virtual void OnNetworkConfigRequested(bool requested) = 0; | |
| 34 | |
| 35 // Invoked when network state is changed. |online| is true if the device | 32 // Invoked when network state is changed. |online| is true if the device |
| 36 // is connected to the Internet. | 33 // is connected to the Internet. |
| 37 virtual void OnNetworkStateChanged(bool online) = 0; | 34 virtual void OnNetworkStateChanged(bool online) = 0; |
| 38 | 35 |
| 39 protected: | 36 protected: |
| 40 virtual ~Delegate() {} | 37 virtual ~Delegate() {} |
| 41 }; | 38 }; |
| 42 | 39 |
| 43 virtual ~AppLaunchSplashScreenActor() {} | 40 virtual ~AppLaunchSplashScreenActor() {} |
| 44 | 41 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 63 // Shows the network error and configure UI. | 60 // Shows the network error and configure UI. |
| 64 virtual void ShowNetworkConfigureUI() = 0; | 61 virtual void ShowNetworkConfigureUI() = 0; |
| 65 | 62 |
| 66 // Returns true if the default network has Internet access. | 63 // Returns true if the default network has Internet access. |
| 67 virtual bool IsNetworkReady() = 0; | 64 virtual bool IsNetworkReady() = 0; |
| 68 }; | 65 }; |
| 69 | 66 |
| 70 } // namespace chromeos | 67 } // namespace chromeos |
| 71 | 68 |
| 72 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_APP_LAUNCH_SPLASH_SCREEN_ACTOR_
H_ | 69 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_APP_LAUNCH_SPLASH_SCREEN_ACTOR_
H_ |
| OLD | NEW |