Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Side by Side Diff: chrome/browser/ui/gtk/collected_cookies_gtk.h

Issue 10545115: TabContentsWrapper -> TabContents, part 41. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
11 #include <gtk/gtk.h> 11 #include <gtk/gtk.h>
12 12
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "chrome/browser/ui/gtk/constrained_window_gtk.h" 15 #include "chrome/browser/ui/gtk/constrained_window_gtk.h"
16 #include "chrome/browser/ui/gtk/gtk_tree.h" 16 #include "chrome/browser/ui/gtk/gtk_tree.h"
17 #include "chrome/common/content_settings.h" 17 #include "chrome/common/content_settings.h"
18 #include "content/public/browser/notification_observer.h" 18 #include "content/public/browser/notification_observer.h"
19 #include "content/public/browser/notification_registrar.h" 19 #include "content/public/browser/notification_registrar.h"
20 #include "ui/base/gtk/gtk_signal.h" 20 #include "ui/base/gtk/gtk_signal.h"
21 21
22 class CookiesTreeModel; 22 class CookiesTreeModel;
23 class TabContents; 23 class TabContents;
24 typedef TabContents TabContentsWrapper;
25 24
26 // CollectedCookiesGtk is a dialog that displays the allowed and blocked 25 // CollectedCookiesGtk is a dialog that displays the allowed and blocked
27 // cookies of the current tab contents. To display the dialog, invoke 26 // cookies of the current tab contents. To display the dialog, invoke
28 // ShowCollectedCookiesDialog() on the delegate of the tab contents wrapper's 27 // ShowCollectedCookiesDialog() on the delegate of the tab contents's
29 // content settings tab helper. 28 // content settings tab helper.
30 29
31 class CollectedCookiesGtk : public ConstrainedWindowGtkDelegate, 30 class CollectedCookiesGtk : public ConstrainedWindowGtkDelegate,
32 public gtk_tree::TreeAdapter::Delegate, 31 public gtk_tree::TreeAdapter::Delegate,
33 public content::NotificationObserver { 32 public content::NotificationObserver {
34 public: 33 public:
35 CollectedCookiesGtk(GtkWindow* parent, TabContentsWrapper* wrapper); 34 CollectedCookiesGtk(GtkWindow* parent, TabContents* tab_contents);
36 35
37 // ConstrainedWindowGtkDelegate methods. 36 // ConstrainedWindowGtkDelegate methods.
38 virtual GtkWidget* GetWidgetRoot() OVERRIDE; 37 virtual GtkWidget* GetWidgetRoot() OVERRIDE;
39 virtual GtkWidget* GetFocusWidget() OVERRIDE; 38 virtual GtkWidget* GetFocusWidget() OVERRIDE;
40 virtual void DeleteDelegate() OVERRIDE; 39 virtual void DeleteDelegate() OVERRIDE;
41 40
42 private: 41 private:
43 virtual ~CollectedCookiesGtk(); 42 virtual ~CollectedCookiesGtk();
44 43
45 // Initialize all widgets of this dialog. 44 // Initialize all widgets of this dialog.
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 GtkTreeSelection* allowed_selection_; 107 GtkTreeSelection* allowed_selection_;
109 GtkTreeSelection* blocked_selection_; 108 GtkTreeSelection* blocked_selection_;
110 109
111 // The infobar widget. 110 // The infobar widget.
112 GtkWidget* infobar_; 111 GtkWidget* infobar_;
113 GtkWidget* infobar_label_; 112 GtkWidget* infobar_label_;
114 113
115 // Displays information about selected cookie. 114 // Displays information about selected cookie.
116 GtkWidget* cookie_info_view_; 115 GtkWidget* cookie_info_view_;
117 116
118 // The tab contents wrapper. 117 // The tab contents.
119 TabContentsWrapper* wrapper_; 118 TabContents* tab_contents_;
120 119
121 bool status_changed_; 120 bool status_changed_;
122 121
123 // The Cookies Table model. 122 // The Cookies Table model.
124 scoped_ptr<CookiesTreeModel> allowed_cookies_tree_model_; 123 scoped_ptr<CookiesTreeModel> allowed_cookies_tree_model_;
125 scoped_ptr<CookiesTreeModel> blocked_cookies_tree_model_; 124 scoped_ptr<CookiesTreeModel> blocked_cookies_tree_model_;
126 scoped_ptr<gtk_tree::TreeAdapter> allowed_cookies_tree_adapter_; 125 scoped_ptr<gtk_tree::TreeAdapter> allowed_cookies_tree_adapter_;
127 scoped_ptr<gtk_tree::TreeAdapter> blocked_cookies_tree_adapter_; 126 scoped_ptr<gtk_tree::TreeAdapter> blocked_cookies_tree_adapter_;
128 127
129 DISALLOW_COPY_AND_ASSIGN(CollectedCookiesGtk); 128 DISALLOW_COPY_AND_ASSIGN(CollectedCookiesGtk);
130 }; 129 };
131 130
132 #endif // CHROME_BROWSER_UI_GTK_COLLECTED_COOKIES_GTK_H_ 131 #endif // CHROME_BROWSER_UI_GTK_COLLECTED_COOKIES_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/browser_window_gtk.cc ('k') | chrome/browser/ui/gtk/collected_cookies_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698