blob: 5793980a061da9d51928b2b916c5951eca38db05 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_CHROMEOS_OPTIONS_SETTINGS_PAGE_VIEW_H_
#define CHROME_BROWSER_CHROMEOS_OPTIONS_SETTINGS_PAGE_VIEW_H_
#include <gtk/gtk.h>
#include "chrome/browser/views/options/options_page_view.h"
#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "views/grid_layout.h"
#include "views/standard_layout.h"
using views::ColumnSet;
using views::GridLayout;
namespace chromeos {
class SettingsContentsView;
// Settings page for Chrome OS.
class SettingsPageView : public OptionsPageView {
public:
explicit SettingsPageView(Profile* profile);
// Wraps the SettingsPageView in a GtkWidget and returns it. It's up to the
// caller to delete (unref) the returned widget, which in turn deletes this
// SettingsPageView.
GtkWidget* WrapInGtkWidget();
protected:
virtual void InitControlLayout() = 0;
DISALLOW_COPY_AND_ASSIGN(SettingsPageView);
};
// Base section class settings
class SettingsPageSection : public OptionsPageView {
public:
explicit SettingsPageSection(Profile* profile, int title_msg_id);
virtual ~SettingsPageSection() {}
protected:
// OptionsPageView overrides:
virtual void InitControlLayout();
virtual void InitContents(GridLayout* layout) = 0;
int single_column_view_set_id() const { return single_column_view_set_id_; }
int double_column_view_set_id() const { return double_column_view_set_id_; }
private:
// The message id for the title of this section.
int title_msg_id_;
int single_column_view_set_id_;
int double_column_view_set_id_;
DISALLOW_COPY_AND_ASSIGN(SettingsPageSection);
};
} // namespace chromeos
#endif // CHROME_BROWSER_CHROMEOS_OPTIONS_SETTINGS_PAGE_VIEW_H_
|