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

Side by Side Diff: chrome/browser/ui/views/collected_cookies_views.h

Issue 319013002: Reland Fix Views web-modal dialog widget creation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Revert MediaGalleriesScanResultDialogViews::AcceptDialogForTesting. Created 6 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) 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 #ifndef CHROME_BROWSER_UI_VIEWS_COLLECTED_COOKIES_VIEWS_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_COLLECTED_COOKIES_VIEWS_H_
6 #define CHROME_BROWSER_UI_VIEWS_COLLECTED_COOKIES_VIEWS_H_ 6 #define CHROME_BROWSER_UI_VIEWS_COLLECTED_COOKIES_VIEWS_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "chrome/common/content_settings.h" 9 #include "chrome/common/content_settings.h"
10 #include "content/public/browser/notification_observer.h" 10 #include "content/public/browser/notification_observer.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 public views::TreeViewController { 42 public views::TreeViewController {
43 public: 43 public:
44 // Use BrowserWindow::ShowCollectedCookiesDialog to show. 44 // Use BrowserWindow::ShowCollectedCookiesDialog to show.
45 explicit CollectedCookiesViews(content::WebContents* web_contents); 45 explicit CollectedCookiesViews(content::WebContents* web_contents);
46 46
47 // views::DialogDelegate: 47 // views::DialogDelegate:
48 virtual base::string16 GetWindowTitle() const OVERRIDE; 48 virtual base::string16 GetWindowTitle() const OVERRIDE;
49 virtual int GetDialogButtons() const OVERRIDE; 49 virtual int GetDialogButtons() const OVERRIDE;
50 virtual base::string16 GetDialogButtonLabel( 50 virtual base::string16 GetDialogButtonLabel(
51 ui::DialogButton button) const OVERRIDE; 51 ui::DialogButton button) const OVERRIDE;
52 virtual void DeleteDelegate() OVERRIDE;
53 virtual bool Cancel() OVERRIDE; 52 virtual bool Cancel() OVERRIDE;
54 virtual ui::ModalType GetModalType() const OVERRIDE; 53 virtual ui::ModalType GetModalType() const OVERRIDE;
55 54
56 // views::ButtonListener: 55 // views::ButtonListener:
57 virtual void ButtonPressed(views::Button* sender, 56 virtual void ButtonPressed(views::Button* sender,
58 const ui::Event& event) OVERRIDE; 57 const ui::Event& event) OVERRIDE;
59 58
60 // views::TabbedPaneListener: 59 // views::TabbedPaneListener:
61 virtual void TabSelectedAt(int index) OVERRIDE; 60 virtual void TabSelectedAt(int index) OVERRIDE;
62 61
(...skipping 23 matching lines...) Expand all
86 85
87 void AddContentException(views::TreeView* tree_view, ContentSetting setting); 86 void AddContentException(views::TreeView* tree_view, ContentSetting setting);
88 87
89 // content::NotificationObserver: 88 // content::NotificationObserver:
90 virtual void Observe(int type, 89 virtual void Observe(int type,
91 const content::NotificationSource& source, 90 const content::NotificationSource& source,
92 const content::NotificationDetails& details) OVERRIDE; 91 const content::NotificationDetails& details) OVERRIDE;
93 92
94 content::NotificationRegistrar registrar_; 93 content::NotificationRegistrar registrar_;
95 94
96 views::Widget* window_;
97
98 // The web contents. 95 // The web contents.
99 content::WebContents* web_contents_; 96 content::WebContents* web_contents_;
100 97
101 // Assorted views. 98 // Assorted views.
102 views::Label* allowed_label_; 99 views::Label* allowed_label_;
103 views::Label* blocked_label_; 100 views::Label* blocked_label_;
104 101
105 views::TreeView* allowed_cookies_tree_; 102 views::TreeView* allowed_cookies_tree_;
106 views::TreeView* blocked_cookies_tree_; 103 views::TreeView* blocked_cookies_tree_;
107 104
108 views::LabelButton* block_allowed_button_; 105 views::LabelButton* block_allowed_button_;
109 views::LabelButton* delete_allowed_button_; 106 views::LabelButton* delete_allowed_button_;
110 views::LabelButton* allow_blocked_button_; 107 views::LabelButton* allow_blocked_button_;
111 views::LabelButton* for_session_blocked_button_; 108 views::LabelButton* for_session_blocked_button_;
112 109
113 scoped_ptr<CookiesTreeModel> allowed_cookies_tree_model_; 110 scoped_ptr<CookiesTreeModel> allowed_cookies_tree_model_;
114 scoped_ptr<CookiesTreeModel> blocked_cookies_tree_model_; 111 scoped_ptr<CookiesTreeModel> blocked_cookies_tree_model_;
115 112
116 CookieInfoView* cookie_info_view_; 113 CookieInfoView* cookie_info_view_;
117 114
118 InfobarView* infobar_; 115 InfobarView* infobar_;
119 116
120 bool status_changed_; 117 bool status_changed_;
121 118
122 DISALLOW_COPY_AND_ASSIGN(CollectedCookiesViews); 119 DISALLOW_COPY_AND_ASSIGN(CollectedCookiesViews);
123 }; 120 };
124 121
125 #endif // CHROME_BROWSER_UI_VIEWS_COLLECTED_COOKIES_VIEWS_H_ 122 #endif // CHROME_BROWSER_UI_VIEWS_COLLECTED_COOKIES_VIEWS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/autofill/autofill_dialog_views.cc ('k') | chrome/browser/ui/views/collected_cookies_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698