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_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_NETWORK_SCREEN_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_NETWORK_SCREEN_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_NETWORK_SCREEN_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
10 #include "base/string16.h" | 10 #include "base/string16.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 return &language_switch_menu_; | 40 return &language_switch_menu_; |
41 } | 41 } |
42 virtual KeyboardSwitchMenu* keyboard_switch_menu() { | 42 virtual KeyboardSwitchMenu* keyboard_switch_menu() { |
43 return &keyboard_switch_menu_; | 43 return &keyboard_switch_menu_; |
44 } | 44 } |
45 virtual gfx::Size size() const { return GetScreenSize(); } | 45 virtual gfx::Size size() const { return GetScreenSize(); } |
46 | 46 |
47 // views::ButtonListener implementation: | 47 // views::ButtonListener implementation: |
48 virtual void ButtonPressed(views::Button* sender, const views::Event& event); | 48 virtual void ButtonPressed(views::Button* sender, const views::Event& event); |
49 | 49 |
50 // NetworkLibrary::Observer implementation: | 50 // NetworkLibrary::NetworkManagerObserver implementation: |
51 virtual void NetworkChanged(NetworkLibrary* network_lib); | 51 virtual void OnNetworkManagerChanged(NetworkLibrary* network_lib); |
52 | 52 |
53 protected: | 53 protected: |
54 // Subscribes NetworkScreen to the network change notification, | 54 // Subscribes NetworkScreen to the network change notification, |
55 // forces refresh of current network state. | 55 // forces refresh of current network state. |
56 void Refresh(); | 56 void Refresh(); |
57 | 57 |
58 private: | 58 private: |
59 FRIEND_TEST(NetworkScreenTest, Timeout); | 59 FRIEND_TEST(NetworkScreenTest, Timeout); |
60 | 60 |
61 // ViewScreen implementation: | 61 // ViewScreen implementation: |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 | 112 |
113 // Help application used for help dialogs. | 113 // Help application used for help dialogs. |
114 scoped_ptr<HelpAppLauncher> help_app_; | 114 scoped_ptr<HelpAppLauncher> help_app_; |
115 | 115 |
116 DISALLOW_COPY_AND_ASSIGN(NetworkScreen); | 116 DISALLOW_COPY_AND_ASSIGN(NetworkScreen); |
117 }; | 117 }; |
118 | 118 |
119 } // namespace chromeos | 119 } // namespace chromeos |
120 | 120 |
121 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_NETWORK_SCREEN_H_ | 121 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_NETWORK_SCREEN_H_ |
OLD | NEW |