| 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 |
| 32 // Invoked when network state is changed. |online| is true if the device | 35 // Invoked when network state is changed. |online| is true if the device |
| 33 // is connected to the Internet. | 36 // is connected to the Internet. |
| 34 virtual void OnNetworkStateChanged(bool online) = 0; | 37 virtual void OnNetworkStateChanged(bool online) = 0; |
| 35 | 38 |
| 36 protected: | 39 protected: |
| 37 virtual ~Delegate() {} | 40 virtual ~Delegate() {} |
| 38 }; | 41 }; |
| 39 | 42 |
| 40 virtual ~AppLaunchSplashScreenActor() {} | 43 virtual ~AppLaunchSplashScreenActor() {} |
| 41 | 44 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 60 // Shows the network error and configure UI. | 63 // Shows the network error and configure UI. |
| 61 virtual void ShowNetworkConfigureUI() = 0; | 64 virtual void ShowNetworkConfigureUI() = 0; |
| 62 | 65 |
| 63 // Returns true if the default network has Internet access. | 66 // Returns true if the default network has Internet access. |
| 64 virtual bool IsNetworkReady() = 0; | 67 virtual bool IsNetworkReady() = 0; |
| 65 }; | 68 }; |
| 66 | 69 |
| 67 } // namespace chromeos | 70 } // namespace chromeos |
| 68 | 71 |
| 69 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_APP_LAUNCH_SPLASH_SCREEN_ACTOR_
H_ | 72 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_APP_LAUNCH_SPLASH_SCREEN_ACTOR_
H_ |
| OLD | NEW |