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 chromeos { | 14 namespace chromeos { |
15 | 15 |
16 class LanguageSwitchMenu; | 16 class LanguageSwitchMenu; |
17 | 17 |
18 // Interface that NetworkScreen exposes to the NetworkSelectionView. | 18 // Interface that NetworkScreen exposes to the NetworkSelectionView. |
19 class NetworkScreenDelegate : public ComboboxModel, | 19 class NetworkScreenDelegate : public views::ButtonListener, |
20 public views::Combobox::Listener, | |
21 public views::ButtonListener, | |
22 public NetworkLibrary::Observer { | 20 public NetworkLibrary::Observer { |
23 public: | 21 public: |
24 virtual LanguageSwitchMenu* language_switch_menu() = 0; | 22 virtual LanguageSwitchMenu* language_switch_menu() = 0; |
25 | 23 |
26 protected: | 24 protected: |
27 virtual ~NetworkScreenDelegate() {} | 25 virtual ~NetworkScreenDelegate() {} |
28 }; | 26 }; |
29 | 27 |
30 } // namespace chromeos | 28 } // namespace chromeos |
31 | 29 |
32 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_NETWORK_SCREEN_DELEGATE_H_ | 30 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_NETWORK_SCREEN_DELEGATE_H_ |
OLD | NEW |