| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 26 matching lines...) Expand all Loading... |
| 37 virtual GtkWidget* GetWidgetRoot() OVERRIDE; | 37 virtual GtkWidget* GetWidgetRoot() OVERRIDE; |
| 38 virtual GtkWidget* GetFocusWidget() OVERRIDE; | 38 virtual GtkWidget* GetFocusWidget() OVERRIDE; |
| 39 virtual void DeleteDelegate() OVERRIDE; | 39 virtual void DeleteDelegate() OVERRIDE; |
| 40 | 40 |
| 41 private: | 41 private: |
| 42 virtual ~CollectedCookiesGtk(); | 42 virtual ~CollectedCookiesGtk(); |
| 43 | 43 |
| 44 // Initialize all widgets of this dialog. | 44 // Initialize all widgets of this dialog. |
| 45 void Init(); | 45 void Init(); |
| 46 | 46 |
| 47 // True if the selection contains at least one origin node. | 47 // True if the selection contains at least one host node. |
| 48 bool SelectionContainsOriginNode(GtkTreeSelection* selection, | 48 bool SelectionContainsHostNode(GtkTreeSelection* selection, |
| 49 gtk_tree::TreeAdapter* adapter); | 49 gtk_tree::TreeAdapter* adapter); |
| 50 | 50 |
| 51 // Enable the allow/block buttons if at least one origin node is selected. | 51 // Enable the allow/block buttons if at least one host node is selected. |
| 52 void EnableControls(); | 52 void EnableControls(); |
| 53 | 53 |
| 54 // Add exceptions for all origin nodes within the selection. | 54 // Add exceptions for all origin nodes within the selection. |
| 55 void AddExceptions(GtkTreeSelection* selection, | 55 void AddExceptions(GtkTreeSelection* selection, |
| 56 gtk_tree::TreeAdapter* adapter, | 56 gtk_tree::TreeAdapter* adapter, |
| 57 ContentSetting setting); | 57 ContentSetting setting); |
| 58 | 58 |
| 59 // Notification Observer implementation. | 59 // Notification Observer implementation. |
| 60 virtual void Observe(int type, | 60 virtual void Observe(int type, |
| 61 const content::NotificationSource& source, | 61 const content::NotificationSource& source, |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 // The Cookies Table model. | 122 // The Cookies Table model. |
| 123 scoped_ptr<CookiesTreeModel> allowed_cookies_tree_model_; | 123 scoped_ptr<CookiesTreeModel> allowed_cookies_tree_model_; |
| 124 scoped_ptr<CookiesTreeModel> blocked_cookies_tree_model_; | 124 scoped_ptr<CookiesTreeModel> blocked_cookies_tree_model_; |
| 125 scoped_ptr<gtk_tree::TreeAdapter> allowed_cookies_tree_adapter_; | 125 scoped_ptr<gtk_tree::TreeAdapter> allowed_cookies_tree_adapter_; |
| 126 scoped_ptr<gtk_tree::TreeAdapter> blocked_cookies_tree_adapter_; | 126 scoped_ptr<gtk_tree::TreeAdapter> blocked_cookies_tree_adapter_; |
| 127 | 127 |
| 128 DISALLOW_COPY_AND_ASSIGN(CollectedCookiesGtk); | 128 DISALLOW_COPY_AND_ASSIGN(CollectedCookiesGtk); |
| 129 }; | 129 }; |
| 130 | 130 |
| 131 #endif // CHROME_BROWSER_UI_GTK_COLLECTED_COOKIES_GTK_H_ | 131 #endif // CHROME_BROWSER_UI_GTK_COLLECTED_COOKIES_GTK_H_ |
| OLD | NEW |