OLD | NEW |
(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_UI_GTK_OPTIONS_ADVANCED_PAGE_GTK_H_ |
| 6 #define CHROME_BROWSER_UI_GTK_OPTIONS_ADVANCED_PAGE_GTK_H_ |
| 7 #pragma once |
| 8 |
| 9 #include <gtk/gtk.h> |
| 10 |
| 11 #include "app/gtk_signal.h" |
| 12 #include "chrome/browser/gtk/options/advanced_contents_gtk.h" |
| 13 #include "chrome/browser/gtk/options/managed_prefs_banner_gtk.h" |
| 14 #include "chrome/browser/prefs/pref_member.h" |
| 15 #include "chrome/browser/ui/options/options_page_base.h" |
| 16 |
| 17 class Profile; |
| 18 |
| 19 class AdvancedPageGtk : public OptionsPageBase { |
| 20 public: |
| 21 explicit AdvancedPageGtk(Profile* profile); |
| 22 virtual ~AdvancedPageGtk(); |
| 23 |
| 24 GtkWidget* get_page_widget() const { |
| 25 return page_; |
| 26 } |
| 27 |
| 28 private: |
| 29 void Init(); |
| 30 |
| 31 // Callback for reset to default button. |
| 32 CHROMEGTK_CALLBACK_0(AdvancedPageGtk, void, OnResetToDefaultsClicked); |
| 33 |
| 34 // Callback for reset to default confirmation dialog. |
| 35 CHROMEGTK_CALLBACK_1(AdvancedPageGtk, void, OnResetToDefaultsResponse, int); |
| 36 |
| 37 // The contents of the scroll box. |
| 38 AdvancedContentsGtk advanced_contents_; |
| 39 |
| 40 // The widget containing the options for this page. |
| 41 GtkWidget* page_; |
| 42 |
| 43 // Tracks managed preference warning banner state. |
| 44 ManagedPrefsBannerGtk managed_prefs_banner_; |
| 45 |
| 46 DISALLOW_COPY_AND_ASSIGN(AdvancedPageGtk); |
| 47 }; |
| 48 |
| 49 #endif // CHROME_BROWSER_UI_GTK_OPTIONS_ADVANCED_PAGE_GTK_H_ |
OLD | NEW |