Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Side by Side Diff: chrome/browser/chromeos/options/settings_page_view.h

Issue 6307019: Cleanup: remove unused internet and system pages for chrome os options. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Remove ifdef code in content_page_gtk.cc Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_OPTIONS_SETTINGS_PAGE_VIEW_H_
6 #define CHROME_BROWSER_CHROMEOS_OPTIONS_SETTINGS_PAGE_VIEW_H_
7 #pragma once
8
9 #include <gtk/gtk.h>
10
11 #include "base/basictypes.h"
12 #include "chrome/browser/ui/views/options/options_page_view.h"
13 #include "views/layout/grid_layout.h"
14
15 using views::ColumnSet;
16 using views::GridLayout;
17
18 namespace chromeos {
19
20 class SettingsContentsView;
21
22 // Settings page for Chrome OS.
23 class SettingsPageView : public OptionsPageView {
24 public:
25 explicit SettingsPageView(Profile* profile);
26
27 // Wraps the SettingsPageView in a GtkWidget and returns it. It's up to the
28 // caller to delete (unref) the returned widget, which in turn deletes this
29 // SettingsPageView.
30 GtkWidget* WrapInGtkWidget();
31
32 protected:
33 virtual void InitControlLayout() = 0;
34
35 DISALLOW_COPY_AND_ASSIGN(SettingsPageView);
36 };
37
38 // Base section class settings
39 class SettingsPageSection : public OptionsPageView {
40 public:
41 explicit SettingsPageSection(Profile* profile, int title_msg_id);
42 virtual ~SettingsPageSection() {}
43
44 protected:
45 // OptionsPageView overrides:
46 virtual void InitControlLayout();
47 virtual void InitContents(GridLayout* layout) = 0;
48
49 int single_column_view_set_id() const { return single_column_view_set_id_; }
50 int double_column_view_set_id() const { return double_column_view_set_id_; }
51
52 private:
53 // The message id for the title of this section.
54 int title_msg_id_;
55
56 int single_column_view_set_id_;
57 int double_column_view_set_id_;
58
59 DISALLOW_COPY_AND_ASSIGN(SettingsPageSection);
60 };
61
62 } // namespace chromeos
63
64 #endif // CHROME_BROWSER_CHROMEOS_OPTIONS_SETTINGS_PAGE_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/options/options_window_view.cc ('k') | chrome/browser/chromeos/options/settings_page_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698