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

Side by Side Diff: chrome/browser/gtk/options/content_page_gtk.h

Issue 125105: Add Personal Stuff tab page to Options in Linux (Closed)
Patch Set: fix git nit Created 11 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/gtk/options/content_page_gtk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_GTK_OPTIONS_CONTENT_PAGE_GTK_H_
6 #define CHROME_BROWSER_GTK_OPTIONS_CONTENT_PAGE_GTK_H_
7
8 #include <gtk/gtk.h>
9
10 #include "chrome/browser/options_page_base.h"
11 #include "chrome/browser/profile.h"
12 #include "chrome/common/pref_member.h"
13
14 class ContentPageGtk : public OptionsPageBase {
15 public:
16 explicit ContentPageGtk(Profile* profile);
17 ~ContentPageGtk();
18
19 GtkWidget* get_page_widget() const {
20 return page_;
21 }
22
23 private:
24 // Overridden from OptionsPageBase.
25 virtual void NotifyPrefChanged(const std::wstring* pref_name);
26
27 // Initialize the option group widgets, return their container.
28 GtkWidget* InitPasswordSavingGroup();
29 GtkWidget* InitFormAutofillGroup();
30 GtkWidget* InitBrowsingDataGroup();
31 GtkWidget* InitThemesGroup();
32
33 // Callback for import button.
34 static void OnImportButtonClicked(GtkButton* widget, ContentPageGtk* page);
35
36 // Callback for clear data button.
37 static void OnClearBrowsingDataButtonClicked(GtkButton* widget,
38 ContentPageGtk* page);
39
40 // Callback for reset default theme button.
41 static void OnResetDefaultThemeButtonClicked(GtkButton* widget,
42 ContentPageGtk* page);
43
44 // Callback for passwords exceptions button.
45 static void OnPasswordsExceptionsButtonClicked(GtkButton* widget,
46 ContentPageGtk* page);
47
48 // Callback for password radio buttons.
49 static void OnPasswordRadioToggled(GtkToggleButton* widget,
50 ContentPageGtk* page);
51
52 // Callback for form autofill radio buttons.
53 static void OnAutofillRadioToggled(GtkToggleButton* widget,
54 ContentPageGtk* page);
55
56 // Widgets for the Password saving group.
57 GtkWidget* passwords_asktosave_radio_;
58 GtkWidget* passwords_neversave_radio_;
59
60 // Widget for the Form Autofill group.
61 GtkWidget* form_autofill_asktosave_radio_;
62 GtkWidget* form_autofill_neversave_radio_;
63
64 // The parent GtkTable widget
65 GtkWidget* page_;
66
67 // Pref members.
68 BooleanPrefMember ask_to_save_passwords_;
69 BooleanPrefMember ask_to_save_form_autofill_;
70
71 // Flag to ignore gtk callbacks while we are loading prefs, to avoid
72 // then turning around and saving them again.
73 bool initializing_;
74
75 DISALLOW_COPY_AND_ASSIGN(ContentPageGtk);
76 };
77
78 #endif // CHROME_BROWSER_GTK_OPTIONS_CONTENT_PAGE_GTK_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/gtk/options/content_page_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698