OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_SETTINGS_PAGE_VIEW_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_SETTINGS_PAGE_VIEW_H_ |
6 #define CHROME_BROWSER_CHROMEOS_SETTINGS_PAGE_VIEW_H_ | 6 #define CHROME_BROWSER_CHROMEOS_SETTINGS_PAGE_VIEW_H_ |
7 | 7 |
8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
9 | 9 |
10 #include "chrome/browser/views/options/options_page_view.h" | 10 #include "chrome/browser/views/options/options_page_view.h" |
11 | 11 |
| 12 namespace chromeos { |
| 13 |
12 class SettingsContentsView; | 14 class SettingsContentsView; |
13 | 15 |
14 // Settings page for Chrome OS. | 16 // Settings page for Chrome OS. |
15 class SettingsPageView : public OptionsPageView { | 17 class SettingsPageView : public OptionsPageView { |
16 public: | 18 public: |
17 explicit SettingsPageView(Profile* profile); | 19 explicit SettingsPageView(Profile* profile); |
18 | 20 |
19 // Wraps the SettingsPageView in a GtkWidget and returns it. It's up to the | 21 // Wraps the SettingsPageView in a GtkWidget and returns it. It's up to the |
20 // caller to delete (unref) the returned widget, which in turn deletes this | 22 // caller to delete (unref) the returned widget, which in turn deletes this |
21 // SettingsPageView. | 23 // SettingsPageView. |
22 GtkWidget* WrapInGtkWidget(); | 24 GtkWidget* WrapInGtkWidget(); |
23 | 25 |
24 protected: | 26 protected: |
25 virtual void InitControlLayout(); | 27 virtual void InitControlLayout(); |
26 | 28 |
27 private: | 29 private: |
28 // Controls for the Settings page | 30 // Controls for the Settings page |
29 SettingsContentsView* settings_contents_view_; | 31 SettingsContentsView* settings_contents_view_; |
30 | 32 |
31 DISALLOW_COPY_AND_ASSIGN(SettingsPageView); | 33 DISALLOW_COPY_AND_ASSIGN(SettingsPageView); |
32 }; | 34 }; |
33 | 35 |
| 36 } // namespace chromeos |
| 37 |
34 #endif // CHROME_BROWSER_CHROMEOS_SETTINGS_PAGE_VIEW_H_ | 38 #endif // CHROME_BROWSER_CHROMEOS_SETTINGS_PAGE_VIEW_H_ |
OLD | NEW |