OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_OPTIONS_INTERNET_PAGE_VIEW_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_OPTIONS_INTERNET_PAGE_VIEW_H_ |
6 #define CHROME_BROWSER_CHROMEOS_OPTIONS_INTERNET_PAGE_VIEW_H_ | 6 #define CHROME_BROWSER_CHROMEOS_OPTIONS_INTERNET_PAGE_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/chromeos/cros/network_library.h" | 9 #include "chrome/browser/chromeos/cros/network_library.h" |
10 #include "chrome/browser/chromeos/options/settings_page_view.h" | 10 #include "chrome/browser/chromeos/options/settings_page_view.h" |
11 | 11 |
12 namespace views { | 12 namespace views { |
13 class ScrollView; | 13 class ScrollView; |
14 } // namespace views | 14 } // namespace views |
15 | 15 |
16 namespace chromeos { | 16 namespace chromeos { |
17 | 17 |
18 class InternetPageContentView; | 18 class InternetPageContentView; |
19 | 19 |
20 // Internet settings page for Chrome OS | 20 // Internet settings page for Chrome OS |
21 class InternetPageView : public SettingsPageView, | 21 class InternetPageView : public SettingsPageView, |
22 public NetworkLibrary::Observer { | 22 public NetworkLibrary::NetworkManagerObserver { |
23 public: | 23 public: |
24 explicit InternetPageView(Profile* profile); | 24 explicit InternetPageView(Profile* profile); |
25 virtual ~InternetPageView(); | 25 virtual ~InternetPageView(); |
26 | 26 |
27 // NetworkLibrary::Observer implementation. | 27 // NetworkLibrary::NetworkManagerObserver implementation. |
28 virtual void NetworkChanged(NetworkLibrary* obj); | 28 virtual void OnNetworkManagerChanged(NetworkLibrary* obj); |
29 | 29 |
30 // views::View overrides: | 30 // views::View overrides: |
31 virtual void Layout(); | 31 virtual void Layout(); |
32 | 32 |
33 protected: | 33 protected: |
34 // SettingsPageView implementation: | 34 // SettingsPageView implementation: |
35 virtual void InitControlLayout(); | 35 virtual void InitControlLayout(); |
36 | 36 |
37 private: | 37 private: |
38 // The contents of the internet page view. | 38 // The contents of the internet page view. |
39 InternetPageContentView* contents_view_; | 39 InternetPageContentView* contents_view_; |
40 | 40 |
41 // The scroll view that contains the advanced options. | 41 // The scroll view that contains the advanced options. |
42 views::ScrollView* scroll_view_; | 42 views::ScrollView* scroll_view_; |
43 | 43 |
44 DISALLOW_COPY_AND_ASSIGN(InternetPageView); | 44 DISALLOW_COPY_AND_ASSIGN(InternetPageView); |
45 }; | 45 }; |
46 | 46 |
47 } // namespace chromeos | 47 } // namespace chromeos |
48 | 48 |
49 #endif // CHROME_BROWSER_CHROMEOS_OPTIONS_INTERNET_PAGE_VIEW_H_ | 49 #endif // CHROME_BROWSER_CHROMEOS_OPTIONS_INTERNET_PAGE_VIEW_H_ |
OLD | NEW |