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

Side by Side Diff: chrome/browser/gtk/options/advanced_page_gtk.cc

Issue 149097: Add stubs for the rest of the gtk advanced options sections. Hook up the reset prefs function. (Closed)
Patch Set: 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 | « chrome/browser/gtk/options/advanced_contents_gtk.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include "chrome/browser/gtk/options/advanced_page_gtk.h" 5 #include "chrome/browser/gtk/options/advanced_page_gtk.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "chrome/browser/options_util.h"
8 #include "chrome/common/gtk_util.h" 9 #include "chrome/common/gtk_util.h"
9 #include "grit/generated_resources.h" 10 #include "grit/generated_resources.h"
10 #include "grit/chromium_strings.h" 11 #include "grit/chromium_strings.h"
11 12
12 AdvancedPageGtk::AdvancedPageGtk(Profile* profile) 13 AdvancedPageGtk::AdvancedPageGtk(Profile* profile)
13 : OptionsPageBase(profile), 14 : OptionsPageBase(profile),
14 advanced_contents_(profile) { 15 advanced_contents_(profile) {
15 Init(); 16 Init();
16 } 17 }
17 18
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 g_signal_connect(dialog_, "response", 67 g_signal_connect(dialog_, "response",
67 G_CALLBACK(OnResetToDefaultsResponse), advanced_page); 68 G_CALLBACK(OnResetToDefaultsResponse), advanced_page);
68 69
69 gtk_widget_show_all(dialog_); 70 gtk_widget_show_all(dialog_);
70 } 71 }
71 72
72 // static 73 // static
73 void AdvancedPageGtk::OnResetToDefaultsResponse( 74 void AdvancedPageGtk::OnResetToDefaultsResponse(
74 GtkDialog* dialog, int response_id, AdvancedPageGtk* advanced_page) { 75 GtkDialog* dialog, int response_id, AdvancedPageGtk* advanced_page) {
75 if (response_id == GTK_RESPONSE_OK) { 76 if (response_id == GTK_RESPONSE_OK) {
76 NOTIMPLEMENTED(); 77 OptionsUtil::ResetToDefaults(advanced_page->profile());
77 } 78 }
78 gtk_widget_destroy(GTK_WIDGET(dialog)); 79 gtk_widget_destroy(GTK_WIDGET(dialog));
79 } 80 }
OLDNEW
« no previous file with comments | « chrome/browser/gtk/options/advanced_contents_gtk.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698