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

Unified Diff: chrome/browser/gtk/options/geolocation_filter_page_gtk.h

Issue 650180: Initial Geolocation location bar icons. (Closed)
Patch Set: Addresses Peter and Brett's comments. Created 10 years, 9 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 side-by-side diff with in-line comments
Download patch
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_
« no previous file with comments | « chrome/browser/gtk/options/content_settings_window_gtk.cc ('k') | chrome/browser/gtk/options/geolocation_filter_page_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698