Index: chrome/browser/gtk/options/geolocation_filter_page_gtk.h |
diff --git a/chrome/browser/gtk/options/geolocation_filter_page_gtk.h b/chrome/browser/gtk/options/geolocation_filter_page_gtk.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f1fd426e3696c77ee0b6dfdffc4876cd362d0b2c |
--- /dev/null |
+++ b/chrome/browser/gtk/options/geolocation_filter_page_gtk.h |
@@ -0,0 +1,46 @@ |
+// Copyright (c) 2010 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_GTK_OPTIONS_GEOLOCATION_FILTER_PAGE_GTK_H_ |
+#define CHROME_BROWSER_GTK_OPTIONS_GEOLOCATION_FILTER_PAGE_GTK_H_ |
+ |
+#include <gtk/gtk.h> |
+ |
+#include <string> |
+ |
+#include "chrome/browser/gtk/gtk_util.h" |
+#include "chrome/browser/options_page_base.h" |
+#include "chrome/common/content_settings_types.h" |
+ |
+// A page in the content settings window for Geolocation settings. |
+class GeolocationFilterPageGtk : public OptionsPageBase { |
+ public: |
+ explicit GeolocationFilterPageGtk(Profile* profile); |
+ virtual ~GeolocationFilterPageGtk(); |
+ |
+ GtkWidget* get_page_widget() const { |
+ return page_; |
+ } |
+ |
+ private: |
+ // Builds the content of the dialog. |
+ GtkWidget* InitGroup(); |
+ |
+ // GTK callbacks |
+ static void OnAskToggled(GtkWidget* toggle_button, |
+ GeolocationFilterPageGtk* geolocation_page); |
+ static void OnExceptionsClicked(GtkWidget* button, |
+ GeolocationFilterPageGtk* geolocation_page); |
+ |
+ GtkWidget* page_; |
+ |
+ // Controls for the content filter tab page. |
+ GtkWidget* ask_radio_; |
+ GtkWidget* block_radio_; |
+ GtkWidget* allow_radio_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(GeolocationFilterPageGtk); |
+}; |
+ |
+#endif // CHROME_BROWSER_GTK_OPTIONS_GEOLOCATION_FILTER_PAGE_GTK_H_ |