| 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::Observer { | 
|  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::Observer implementation. | 
|  28   virtual void NetworkChanged(NetworkLibrary* obj); |  28   virtual void NetworkChanged(NetworkLibrary* obj); | 
|  29   virtual void NetworkTraffic(NetworkLibrary* obj, int traffic_type) {} |  | 
|  30  |  29  | 
|  31   // views::View overrides: |  30   // views::View overrides: | 
|  32   virtual void Layout(); |  31   virtual void Layout(); | 
|  33  |  32  | 
|  34  protected: |  33  protected: | 
|  35   // SettingsPageView implementation: |  34   // SettingsPageView implementation: | 
|  36   virtual void InitControlLayout(); |  35   virtual void InitControlLayout(); | 
|  37  |  36  | 
|  38  private: |  37  private: | 
|  39   // The contents of the internet page view. |  38   // The contents of the internet page view. | 
|  40   InternetPageContentView* contents_view_; |  39   InternetPageContentView* contents_view_; | 
|  41  |  40  | 
|  42   // The scroll view that contains the advanced options. |  41   // The scroll view that contains the advanced options. | 
|  43   views::ScrollView* scroll_view_; |  42   views::ScrollView* scroll_view_; | 
|  44  |  43  | 
|  45   DISALLOW_COPY_AND_ASSIGN(InternetPageView); |  44   DISALLOW_COPY_AND_ASSIGN(InternetPageView); | 
|  46 }; |  45 }; | 
|  47  |  46  | 
|  48 }  // namespace chromeos |  47 }  // namespace chromeos | 
|  49  |  48  | 
|  50 #endif  // CHROME_BROWSER_CHROMEOS_OPTIONS_INTERNET_PAGE_VIEW_H_ |  49 #endif  // CHROME_BROWSER_CHROMEOS_OPTIONS_INTERNET_PAGE_VIEW_H_ | 
| OLD | NEW |