OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // This is the Gtk implementation of the collected Cookies dialog. | 5 // This is the Gtk implementation of the collected Cookies dialog. |
6 | 6 |
7 #ifndef CHROME_BROWSER_UI_GTK_COLLECTED_COOKIES_GTK_H_ | 7 #ifndef CHROME_BROWSER_UI_GTK_COLLECTED_COOKIES_GTK_H_ |
8 #define CHROME_BROWSER_UI_GTK_COLLECTED_COOKIES_GTK_H_ | 8 #define CHROME_BROWSER_UI_GTK_COLLECTED_COOKIES_GTK_H_ |
9 #pragma once | 9 #pragma once |
10 | 10 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 | 48 |
49 // Enable the allow/block buttons if at least one origin node is selected. | 49 // Enable the allow/block buttons if at least one origin node is selected. |
50 void EnableControls(); | 50 void EnableControls(); |
51 | 51 |
52 // Add exceptions for all origin nodes within the selection. | 52 // Add exceptions for all origin nodes within the selection. |
53 void AddExceptions(GtkTreeSelection* selection, | 53 void AddExceptions(GtkTreeSelection* selection, |
54 gtk_tree::TreeAdapter* adapter, | 54 gtk_tree::TreeAdapter* adapter, |
55 ContentSetting setting); | 55 ContentSetting setting); |
56 | 56 |
57 // Notification Observer implementation. | 57 // Notification Observer implementation. |
58 virtual void Observe(NotificationType type, | 58 virtual void Observe(int type, |
59 const NotificationSource& source, | 59 const NotificationSource& source, |
60 const NotificationDetails& details); | 60 const NotificationDetails& details); |
61 | 61 |
62 // Create the information panes for the allowed and blocked cookies. | 62 // Create the information panes for the allowed and blocked cookies. |
63 GtkWidget* CreateAllowedPane(); | 63 GtkWidget* CreateAllowedPane(); |
64 GtkWidget* CreateBlockedPane(); | 64 GtkWidget* CreateBlockedPane(); |
65 | 65 |
66 // Show information about selected cookie in the cookie info view. | 66 // Show information about selected cookie in the cookie info view. |
67 void ShowCookieInfo(gint current_page); | 67 void ShowCookieInfo(gint current_page); |
68 void ShowSelectionInfo(GtkTreeSelection* selection, | 68 void ShowSelectionInfo(GtkTreeSelection* selection, |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 // The Cookies Table model. | 120 // The Cookies Table model. |
121 scoped_ptr<CookiesTreeModel> allowed_cookies_tree_model_; | 121 scoped_ptr<CookiesTreeModel> allowed_cookies_tree_model_; |
122 scoped_ptr<CookiesTreeModel> blocked_cookies_tree_model_; | 122 scoped_ptr<CookiesTreeModel> blocked_cookies_tree_model_; |
123 scoped_ptr<gtk_tree::TreeAdapter> allowed_cookies_tree_adapter_; | 123 scoped_ptr<gtk_tree::TreeAdapter> allowed_cookies_tree_adapter_; |
124 scoped_ptr<gtk_tree::TreeAdapter> blocked_cookies_tree_adapter_; | 124 scoped_ptr<gtk_tree::TreeAdapter> blocked_cookies_tree_adapter_; |
125 | 125 |
126 DISALLOW_COPY_AND_ASSIGN(CollectedCookiesGtk); | 126 DISALLOW_COPY_AND_ASSIGN(CollectedCookiesGtk); |
127 }; | 127 }; |
128 | 128 |
129 #endif // CHROME_BROWSER_UI_GTK_COLLECTED_COOKIES_GTK_H_ | 129 #endif // CHROME_BROWSER_UI_GTK_COLLECTED_COOKIES_GTK_H_ |
OLD | NEW |