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