| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_NETWORK_SCREEN_ACTOR_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_NETWORK_SCREEN_ACTOR_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_NETWORK_SCREEN_ACTOR_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_NETWORK_SCREEN_ACTOR_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/string16.h" |
| 10 |
| 9 namespace chromeos { | 11 namespace chromeos { |
| 10 | 12 |
| 11 class HelpAppLauncher; | 13 class HelpAppLauncher; |
| 12 class NetworkSelectionView; | 14 class NetworkSelectionView; |
| 13 | 15 |
| 14 // Interface for dependency injection between NetworkScreen and its actual | 16 // Interface for dependency injection between NetworkScreen and its actual |
| 15 // representation, either views based or WebUI. Owned by NetworkScreen. | 17 // representation, either views based or WebUI. Owned by NetworkScreen. |
| 16 class NetworkScreenActor { | 18 class NetworkScreenActor { |
| 17 public: | 19 public: |
| 18 class Delegate { | 20 class Delegate { |
| (...skipping 22 matching lines...) Expand all Loading... |
| 41 // Hides error messages showing no error state. | 43 // Hides error messages showing no error state. |
| 42 virtual void ClearErrors() = 0; | 44 virtual void ClearErrors() = 0; |
| 43 | 45 |
| 44 // Shows network connecting status or network selection otherwise. | 46 // Shows network connecting status or network selection otherwise. |
| 45 virtual void ShowConnectingStatus( | 47 virtual void ShowConnectingStatus( |
| 46 bool connecting, | 48 bool connecting, |
| 47 const string16& network_id) = 0; | 49 const string16& network_id) = 0; |
| 48 | 50 |
| 49 // Sets whether continue control is enabled. | 51 // Sets whether continue control is enabled. |
| 50 virtual void EnableContinue(bool enabled) = 0; | 52 virtual void EnableContinue(bool enabled) = 0; |
| 51 | |
| 52 // Returns if continue control is enabled. | |
| 53 virtual bool IsContinueEnabled() const = 0; | |
| 54 | |
| 55 // Returns true if we're in the connecting state. | |
| 56 virtual bool IsConnecting() const = 0; | |
| 57 }; | 53 }; |
| 58 | 54 |
| 59 } // namespace chromeos | 55 } // namespace chromeos |
| 60 | 56 |
| 61 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_NETWORK_SCREEN_ACTOR_H_ | 57 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_NETWORK_SCREEN_ACTOR_H_ |
| OLD | NEW |