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

Side by Side Diff: chrome/browser/views/collected_cookies_win.h

Issue 3108029: Display an infobar when content settings were created. (Closed)
Patch Set: updates Created 10 years, 4 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
OLDNEW
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 Views implementation of the collected Cookies dialog. 5 // This is the Views implementation of the collected Cookies dialog.
6 6
7 #ifndef CHROME_BROWSER_VIEWS_COLLECTED_COOKIES_WIN_H_ 7 #ifndef CHROME_BROWSER_VIEWS_COLLECTED_COOKIES_WIN_H_
8 #define CHROME_BROWSER_VIEWS_COLLECTED_COOKIES_WIN_H_ 8 #define CHROME_BROWSER_VIEWS_COLLECTED_COOKIES_WIN_H_
9 #pragma once 9 #pragma once
10 10
11 #include "chrome/browser/tab_contents/constrained_window.h" 11 #include "chrome/browser/tab_contents/constrained_window.h"
12 #include "chrome/common/content_settings.h" 12 #include "chrome/common/content_settings.h"
13 #include "chrome/common/notification_observer.h" 13 #include "chrome/common/notification_observer.h"
14 #include "chrome/common/notification_registrar.h" 14 #include "chrome/common/notification_registrar.h"
15 #include "views/controls/tree/tree_view.h" 15 #include "views/controls/tree/tree_view.h"
16 #include "views/window/dialog_delegate.h" 16 #include "views/window/dialog_delegate.h"
17 17
18 class ConstrainedWindow; 18 class ConstrainedWindow;
19 class CookiesTreeModel; 19 class CookiesTreeModel;
20 class InfobarView;
20 class TabContents; 21 class TabContents;
21 namespace views { 22 namespace views {
22 class Label; 23 class Label;
23 class NativeButton; 24 class NativeButton;
24 } 25 }
25 26
26 // CollectedCookiesWin is a dialog that displays the allowed and blocked 27 // CollectedCookiesWin is a dialog that displays the allowed and blocked
27 // cookies of the current tab contents. To display the dialog, invoke 28 // cookies of the current tab contents. To display the dialog, invoke
28 // ShowCollectedCookiesDialog() on the delegate of the tab contents. 29 // ShowCollectedCookiesDialog() on the delegate of the tab contents.
29 30
(...skipping 15 matching lines...) Expand all
45 virtual void DeleteDelegate(); 46 virtual void DeleteDelegate();
46 virtual bool Cancel(); 47 virtual bool Cancel();
47 virtual views::View* GetContentsView(); 48 virtual views::View* GetContentsView();
48 49
49 // views::ButtonListener implementation. 50 // views::ButtonListener implementation.
50 virtual void ButtonPressed(views::Button* sender, const views::Event& event); 51 virtual void ButtonPressed(views::Button* sender, const views::Event& event);
51 52
52 // views::TreeViewController implementation. 53 // views::TreeViewController implementation.
53 virtual void OnTreeViewSelectionChanged(views::TreeView* tree_view); 54 virtual void OnTreeViewSelectionChanged(views::TreeView* tree_view);
54 55
55 // views::View implementation.
56 virtual gfx::Size GetPreferredSize();
57
58 private: 56 private:
59 virtual ~CollectedCookiesWin(); 57 virtual ~CollectedCookiesWin();
60 58
61 void Init(); 59 void Init();
62 60
63 void EnableControls(); 61 void EnableControls();
64 62
65 void AddContentException(views::TreeView* tree_view, ContentSetting setting); 63 void AddContentException(views::TreeView* tree_view, ContentSetting setting);
66 64
67 // Notification Observer implementation. 65 // Notification Observer implementation.
(...skipping 15 matching lines...) Expand all
83 views::TreeView* allowed_cookies_tree_; 81 views::TreeView* allowed_cookies_tree_;
84 views::TreeView* blocked_cookies_tree_; 82 views::TreeView* blocked_cookies_tree_;
85 83
86 views::NativeButton* block_allowed_button_; 84 views::NativeButton* block_allowed_button_;
87 views::NativeButton* allow_blocked_button_; 85 views::NativeButton* allow_blocked_button_;
88 views::NativeButton* for_session_blocked_button_; 86 views::NativeButton* for_session_blocked_button_;
89 87
90 scoped_ptr<CookiesTreeModel> allowed_cookies_tree_model_; 88 scoped_ptr<CookiesTreeModel> allowed_cookies_tree_model_;
91 scoped_ptr<CookiesTreeModel> blocked_cookies_tree_model_; 89 scoped_ptr<CookiesTreeModel> blocked_cookies_tree_model_;
92 90
91 InfobarView* infobar_;
92
93 DISALLOW_COPY_AND_ASSIGN(CollectedCookiesWin); 93 DISALLOW_COPY_AND_ASSIGN(CollectedCookiesWin);
94 }; 94 };
95 95
96 #endif // CHROME_BROWSER_VIEWS_COLLECTED_COOKIES_WIN_H_ 96 #endif // CHROME_BROWSER_VIEWS_COLLECTED_COOKIES_WIN_H_
OLDNEW
« no previous file with comments | « chrome/browser/host_content_settings_map.cc ('k') | chrome/browser/views/collected_cookies_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698