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

Unified Diff: chrome/browser/views/options/geolocation_filter_page_view.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/views/options/geolocation_filter_page_view.h
diff --git a/chrome/browser/views/options/geolocation_filter_page_view.h b/chrome/browser/views/options/geolocation_filter_page_view.h
new file mode 100644
index 0000000000000000000000000000000000000000..684905c4b957d1b1ddaba6c402ee29793c046b45
--- /dev/null
+++ b/chrome/browser/views/options/geolocation_filter_page_view.h
@@ -0,0 +1,48 @@
+// 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_VIEWS_OPTIONS_GEOLOCATION_FILTER_PAGE_VIEW_H_
+#define CHROME_BROWSER_VIEWS_OPTIONS_GEOLOCATION_FILTER_PAGE_VIEW_H_
+
+#include "chrome/browser/pref_member.h"
+#include "chrome/browser/views/options/options_page_view.h"
+#include "chrome/common/content_settings_types.h"
+#include "views/controls/button/button.h"
+#include "views/view.h"
+
+namespace views {
+class Label;
+class NativeButton;
+class RadioButton;
+}
+class PrefService;
+
+////////////////////////////////////////////////////////////////////////////////
+// The GeolocationFilterPageView class is used to render the Geolocation pages
+// in the Content Settings window.
+
+class GeolocationFilterPageView : public OptionsPageView,
+ public views::ButtonListener {
+ public:
+ explicit GeolocationFilterPageView(Profile* profile);
+ virtual ~GeolocationFilterPageView();
+
+ protected:
+ // OptionsPageView implementation:
+ virtual void InitControlLayout();
+
+ // views::ButtonListener implementation:
+ virtual void ButtonPressed(views::Button* sender, const views::Event& event);
+
+ private:
+ // Controls for the content filter tab page.
+ views::RadioButton* ask_radio_;
+ views::RadioButton* block_radio_;
+ views::RadioButton* allow_radio_;
+ views::NativeButton* exceptions_button_;
+
+ DISALLOW_IMPLICIT_CONSTRUCTORS(GeolocationFilterPageView);
+};
+
+#endif // CHROME_BROWSER_VIEWS_OPTIONS_GEOLOCATION_FILTER_PAGE_VIEW_H_
« no previous file with comments | « chrome/browser/views/options/exceptions_view.cc ('k') | chrome/browser/views/options/geolocation_filter_page_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698