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

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

Issue 628773002: replace OVERRIDE and FINAL with override and final in chrome/browser/ui/[t-v]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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) 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 "components/content_settings/core/common/content_settings.h" 9 #include "components/content_settings/core/common/content_settings.h"
10 #include "content/public/browser/notification_observer.h" 10 #include "content/public/browser/notification_observer.h"
(...skipping 27 matching lines...) Expand all
38 class CollectedCookiesViews : public views::DialogDelegateView, 38 class CollectedCookiesViews : public views::DialogDelegateView,
39 public content::NotificationObserver, 39 public content::NotificationObserver,
40 public views::ButtonListener, 40 public views::ButtonListener,
41 public views::TabbedPaneListener, 41 public views::TabbedPaneListener,
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 bool Cancel() OVERRIDE; 52 virtual bool Cancel() override;
53 virtual ui::ModalType GetModalType() const OVERRIDE; 53 virtual ui::ModalType GetModalType() const override;
54 54
55 // views::ButtonListener: 55 // views::ButtonListener:
56 virtual void ButtonPressed(views::Button* sender, 56 virtual void ButtonPressed(views::Button* sender,
57 const ui::Event& event) OVERRIDE; 57 const ui::Event& event) override;
58 58
59 // views::TabbedPaneListener: 59 // views::TabbedPaneListener:
60 virtual void TabSelectedAt(int index) OVERRIDE; 60 virtual void TabSelectedAt(int index) override;
61 61
62 // views::TreeViewController: 62 // views::TreeViewController:
63 virtual void OnTreeViewSelectionChanged(views::TreeView* tree_view) OVERRIDE; 63 virtual void OnTreeViewSelectionChanged(views::TreeView* tree_view) override;
64 64
65 // views::View: 65 // views::View:
66 virtual gfx::Size GetMinimumSize() const OVERRIDE; 66 virtual gfx::Size GetMinimumSize() const override;
67 virtual void ViewHierarchyChanged( 67 virtual void ViewHierarchyChanged(
68 const ViewHierarchyChangedDetails& details) OVERRIDE; 68 const ViewHierarchyChangedDetails& details) override;
69 69
70 private: 70 private:
71 virtual ~CollectedCookiesViews(); 71 virtual ~CollectedCookiesViews();
72 72
73 void Init(); 73 void Init();
74 74
75 views::View* CreateAllowedPane(); 75 views::View* CreateAllowedPane();
76 76
77 views::View* CreateBlockedPane(); 77 views::View* CreateBlockedPane();
78 78
79 // Creates and returns a containing ScrollView around the given tree view. 79 // Creates and returns a containing ScrollView around the given tree view.
80 views::View* CreateScrollView(views::TreeView* pane); 80 views::View* CreateScrollView(views::TreeView* pane);
81 81
82 void EnableControls(); 82 void EnableControls();
83 83
84 void ShowCookieInfo(); 84 void ShowCookieInfo();
85 85
86 void AddContentException(views::TreeView* tree_view, ContentSetting setting); 86 void AddContentException(views::TreeView* tree_view, ContentSetting setting);
87 87
88 // content::NotificationObserver: 88 // content::NotificationObserver:
89 virtual void Observe(int type, 89 virtual void Observe(int type,
90 const content::NotificationSource& source, 90 const content::NotificationSource& source,
91 const content::NotificationDetails& details) OVERRIDE; 91 const content::NotificationDetails& details) override;
92 92
93 content::NotificationRegistrar registrar_; 93 content::NotificationRegistrar registrar_;
94 94
95 // The web contents. 95 // The web contents.
96 content::WebContents* web_contents_; 96 content::WebContents* web_contents_;
97 97
98 // Assorted views. 98 // Assorted views.
99 views::Label* allowed_label_; 99 views::Label* allowed_label_;
100 views::Label* blocked_label_; 100 views::Label* blocked_label_;
101 101
(...skipping 11 matching lines...) Expand all
113 CookieInfoView* cookie_info_view_; 113 CookieInfoView* cookie_info_view_;
114 114
115 InfobarView* infobar_; 115 InfobarView* infobar_;
116 116
117 bool status_changed_; 117 bool status_changed_;
118 118
119 DISALLOW_COPY_AND_ASSIGN(CollectedCookiesViews); 119 DISALLOW_COPY_AND_ASSIGN(CollectedCookiesViews);
120 }; 120 };
121 121
122 #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/chrome_views_delegate.h ('k') | chrome/browser/ui/views/collected_cookies_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698