| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_NETWORK_SCREEN_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_NETWORK_SCREEN_DELEGATE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_NETWORK_SCREEN_DELEGATE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "app/combobox_model.h" | 9 #include "app/combobox_model.h" |
| 10 #include "chrome/browser/chromeos/cros/network_library.h" | 10 #include "chrome/browser/chromeos/cros/network_library.h" |
| 11 #include "views/controls/button/button.h" | 11 #include "views/controls/button/button.h" |
| 12 #include "views/controls/combobox/combobox.h" | 12 #include "views/controls/combobox/combobox.h" |
| 13 | 13 |
| 14 namespace gfx { | 14 namespace gfx { |
| 15 class Size; | 15 class Size; |
| 16 } // namespace gfx | 16 } // namespace gfx |
| 17 | 17 |
| 18 namespace chromeos { | 18 namespace chromeos { |
| 19 | 19 |
| 20 class KeyboardSwitchMenu; | 20 class KeyboardSwitchMenu; |
| 21 class LanguageSwitchMenu; | 21 class LanguageSwitchMenu; |
| 22 | 22 |
| 23 // Interface that NetworkScreen exposes to the NetworkSelectionView. | 23 // Interface that NetworkScreen exposes to the NetworkSelectionView. |
| 24 class NetworkScreenDelegate : public views::ButtonListener, | 24 class NetworkScreenDelegate : public views::ButtonListener, |
| 25 public NetworkLibrary::Observer { | 25 public NetworkLibrary::NetworkManagerObserver { |
| 26 public: | 26 public: |
| 27 // Cleares all error notifications. | 27 // Cleares all error notifications. |
| 28 virtual void ClearErrors() = 0; | 28 virtual void ClearErrors() = 0; |
| 29 | 29 |
| 30 // True is MessageBubble with error message is shown. | 30 // True is MessageBubble with error message is shown. |
| 31 virtual bool is_error_shown() = 0; | 31 virtual bool is_error_shown() = 0; |
| 32 | 32 |
| 33 virtual LanguageSwitchMenu* language_switch_menu() = 0; | 33 virtual LanguageSwitchMenu* language_switch_menu() = 0; |
| 34 virtual KeyboardSwitchMenu* keyboard_switch_menu() = 0; | 34 virtual KeyboardSwitchMenu* keyboard_switch_menu() = 0; |
| 35 | 35 |
| 36 virtual gfx::Size size() const = 0; | 36 virtual gfx::Size size() const = 0; |
| 37 | 37 |
| 38 protected: | 38 protected: |
| 39 virtual ~NetworkScreenDelegate() {} | 39 virtual ~NetworkScreenDelegate() {} |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 } // namespace chromeos | 42 } // namespace chromeos |
| 43 | 43 |
| 44 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_NETWORK_SCREEN_DELEGATE_H_ | 44 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_NETWORK_SCREEN_DELEGATE_H_ |
| OLD | NEW |