| 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 // 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_GTK_COLLECTED_COOKIES_GTK_H_ | 7 #ifndef CHROME_BROWSER_GTK_COLLECTED_COOKIES_GTK_H_ |
| 8 #define CHROME_BROWSER_GTK_COLLECTED_COOKIES_GTK_H_ | 8 #define CHROME_BROWSER_GTK_COLLECTED_COOKIES_GTK_H_ |
| 9 #pragma once | 9 #pragma once |
| 10 | 10 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 | 46 |
| 47 // Enable the allow/block buttons if at least one origin node is selected. | 47 // Enable the allow/block buttons if at least one origin node is selected. |
| 48 void EnableControls(); | 48 void EnableControls(); |
| 49 | 49 |
| 50 // Add exceptions for all origin nodes within the selection. | 50 // Add exceptions for all origin nodes within the selection. |
| 51 void AddExceptions(GtkTreeSelection* selection, | 51 void AddExceptions(GtkTreeSelection* selection, |
| 52 gtk_tree::TreeAdapter* adapter, | 52 gtk_tree::TreeAdapter* adapter, |
| 53 ContentSetting setting); | 53 ContentSetting setting); |
| 54 | 54 |
| 55 // Notification Observer implementation. | 55 // Notification Observer implementation. |
| 56 void Observe(NotificationType type, | 56 virtual void Observe(NotificationType type, |
| 57 const NotificationSource& source, | 57 const NotificationSource& source, |
| 58 const NotificationDetails& details); | 58 const NotificationDetails& details); |
| 59 | 59 |
| 60 // Callbacks. | 60 // Callbacks. |
| 61 CHROMEGTK_CALLBACK_2(CollectedCookiesGtk, void, OnTreeViewRowExpanded, | 61 CHROMEGTK_CALLBACK_2(CollectedCookiesGtk, void, OnTreeViewRowExpanded, |
| 62 GtkTreeIter*, GtkTreePath*); | 62 GtkTreeIter*, GtkTreePath*); |
| 63 CHROMEGTK_CALLBACK_0(CollectedCookiesGtk, void, OnTreeViewSelectionChange); | 63 CHROMEGTK_CALLBACK_0(CollectedCookiesGtk, void, OnTreeViewSelectionChange); |
| 64 CHROMEGTK_CALLBACK_0(CollectedCookiesGtk, void, OnClose); | 64 CHROMEGTK_CALLBACK_0(CollectedCookiesGtk, void, OnClose); |
| 65 CHROMEGTK_CALLBACK_0(CollectedCookiesGtk, void, OnBlockAllowedButtonClicked); | 65 CHROMEGTK_CALLBACK_0(CollectedCookiesGtk, void, OnBlockAllowedButtonClicked); |
| 66 CHROMEGTK_CALLBACK_0(CollectedCookiesGtk, void, OnAllowBlockedButtonClicked); | 66 CHROMEGTK_CALLBACK_0(CollectedCookiesGtk, void, OnAllowBlockedButtonClicked); |
| 67 CHROMEGTK_CALLBACK_0(CollectedCookiesGtk, void, | 67 CHROMEGTK_CALLBACK_0(CollectedCookiesGtk, void, |
| 68 OnForSessionBlockedButtonClicked); | 68 OnForSessionBlockedButtonClicked); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 99 // The Cookies Table model. | 99 // The Cookies Table model. |
| 100 scoped_ptr<CookiesTreeModel> allowed_cookies_tree_model_; | 100 scoped_ptr<CookiesTreeModel> allowed_cookies_tree_model_; |
| 101 scoped_ptr<CookiesTreeModel> blocked_cookies_tree_model_; | 101 scoped_ptr<CookiesTreeModel> blocked_cookies_tree_model_; |
| 102 scoped_ptr<gtk_tree::TreeAdapter> allowed_cookies_tree_adapter_; | 102 scoped_ptr<gtk_tree::TreeAdapter> allowed_cookies_tree_adapter_; |
| 103 scoped_ptr<gtk_tree::TreeAdapter> blocked_cookies_tree_adapter_; | 103 scoped_ptr<gtk_tree::TreeAdapter> blocked_cookies_tree_adapter_; |
| 104 | 104 |
| 105 DISALLOW_COPY_AND_ASSIGN(CollectedCookiesGtk); | 105 DISALLOW_COPY_AND_ASSIGN(CollectedCookiesGtk); |
| 106 }; | 106 }; |
| 107 | 107 |
| 108 #endif // CHROME_BROWSER_GTK_COLLECTED_COOKIES_GTK_H_ | 108 #endif // CHROME_BROWSER_GTK_COLLECTED_COOKIES_GTK_H_ |
| OLD | NEW |