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_ |