OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_GTK_OPTIONS_CONTENT_SETTINGS_WINDOW_GTK_H_ | 5 #ifndef CHROME_BROWSER_GTK_OPTIONS_CONTENT_SETTINGS_WINDOW_GTK_H_ |
6 #define CHROME_BROWSER_GTK_OPTIONS_CONTENT_SETTINGS_WINDOW_GTK_H_ | 6 #define CHROME_BROWSER_GTK_OPTIONS_CONTENT_SETTINGS_WINDOW_GTK_H_ |
7 | 7 |
8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
9 | 9 |
10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
11 #include "chrome/browser/gtk/options/cookie_filter_page_gtk.h" | 11 #include "chrome/browser/gtk/options/cookie_filter_page_gtk.h" |
12 #include "chrome/browser/gtk/options/content_filter_page_gtk.h" | 12 #include "chrome/browser/gtk/options/content_filter_page_gtk.h" |
| 13 #include "chrome/browser/gtk/options/geolocation_filter_page_gtk.h" |
13 #include "chrome/browser/pref_member.h" | 14 #include "chrome/browser/pref_member.h" |
14 #include "chrome/common/content_settings_types.h" | 15 #include "chrome/common/content_settings_types.h" |
15 | 16 |
16 class AccessibleWidgetHelper; | 17 class AccessibleWidgetHelper; |
17 | 18 |
18 // A window that presents options to the user for blocking various kinds of | 19 // A window that presents options to the user for blocking various kinds of |
19 // content in webpages (cookies, javascript, images, popups). | 20 // content in webpages (cookies, javascript, images, popups). |
20 class ContentSettingsWindowGtk { | 21 class ContentSettingsWindowGtk { |
21 public: | 22 public: |
22 // Shows the current content settings page, opening a new one if it doesn't | 23 // Shows the current content settings page, opening a new one if it doesn't |
(...skipping 28 matching lines...) Expand all Loading... |
51 IntegerPrefMember last_selected_page_; | 52 IntegerPrefMember last_selected_page_; |
52 | 53 |
53 // The individual page implementations. Note that we have a specialized one | 54 // The individual page implementations. Note that we have a specialized one |
54 // for cookies (which have more complex rules) and use the same basic page | 55 // for cookies (which have more complex rules) and use the same basic page |
55 // layout for each other type. | 56 // layout for each other type. |
56 CookieFilterPageGtk cookie_page_; | 57 CookieFilterPageGtk cookie_page_; |
57 ContentFilterPageGtk image_page_; | 58 ContentFilterPageGtk image_page_; |
58 ContentFilterPageGtk javascript_page_; | 59 ContentFilterPageGtk javascript_page_; |
59 ContentFilterPageGtk plugin_page_; | 60 ContentFilterPageGtk plugin_page_; |
60 ContentFilterPageGtk popup_page_; | 61 ContentFilterPageGtk popup_page_; |
| 62 GeolocationFilterPageGtk geolocation_page_; |
61 | 63 |
62 // Helper object to manage accessibility metadata. | 64 // Helper object to manage accessibility metadata. |
63 scoped_ptr<AccessibleWidgetHelper> accessible_widget_helper_; | 65 scoped_ptr<AccessibleWidgetHelper> accessible_widget_helper_; |
64 | 66 |
65 DISALLOW_COPY_AND_ASSIGN(ContentSettingsWindowGtk); | 67 DISALLOW_COPY_AND_ASSIGN(ContentSettingsWindowGtk); |
66 }; | 68 }; |
67 | 69 |
68 #endif // CHROME_BROWSER_GTK_OPTIONS_CONTENT_SETTINGS_WINDOW_GTK_H_ | 70 #endif // CHROME_BROWSER_GTK_OPTIONS_CONTENT_SETTINGS_WINDOW_GTK_H_ |
OLD | NEW |