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

Side by Side Diff: chrome/browser/ui/views/website_settings/website_settings_popup_view.h

Issue 680993004: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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_WEBSITE_SETTINGS_WEBSITE_SETTINGS_POPUP_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_WEBSITE_SETTINGS_POPUP_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_WEBSITE_SETTINGS_POPUP_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_WEBSITE_SETTINGS_POPUP_VIEW_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 28 matching lines...) Expand all
39 39
40 // The views implementation of the website settings UI. 40 // The views implementation of the website settings UI.
41 class WebsiteSettingsPopupView 41 class WebsiteSettingsPopupView
42 : public PermissionSelectorViewObserver, 42 : public PermissionSelectorViewObserver,
43 public views::BubbleDelegateView, 43 public views::BubbleDelegateView,
44 public views::ButtonListener, 44 public views::ButtonListener,
45 public views::LinkListener, 45 public views::LinkListener,
46 public views::TabbedPaneListener, 46 public views::TabbedPaneListener,
47 public WebsiteSettingsUI { 47 public WebsiteSettingsUI {
48 public: 48 public:
49 virtual ~WebsiteSettingsPopupView(); 49 ~WebsiteSettingsPopupView() override;
50 50
51 static void ShowPopup(views::View* anchor_view, 51 static void ShowPopup(views::View* anchor_view,
52 Profile* profile, 52 Profile* profile,
53 content::WebContents* web_contents, 53 content::WebContents* web_contents,
54 const GURL& url, 54 const GURL& url,
55 const content::SSLStatus& ssl, 55 const content::SSLStatus& ssl,
56 Browser* browser); 56 Browser* browser);
57 57
58 static bool IsPopupShowing(); 58 static bool IsPopupShowing();
59 59
60 private: 60 private:
61 WebsiteSettingsPopupView(views::View* anchor_view, 61 WebsiteSettingsPopupView(views::View* anchor_view,
62 Profile* profile, 62 Profile* profile,
63 content::WebContents* web_contents, 63 content::WebContents* web_contents,
64 const GURL& url, 64 const GURL& url,
65 const content::SSLStatus& ssl, 65 const content::SSLStatus& ssl,
66 Browser* browser); 66 Browser* browser);
67 67
68 // PermissionSelectorViewObserver implementation. 68 // PermissionSelectorViewObserver implementation.
69 virtual void OnPermissionChanged( 69 void OnPermissionChanged(
70 const WebsiteSettingsUI::PermissionInfo& permission) override; 70 const WebsiteSettingsUI::PermissionInfo& permission) override;
71 71
72 // views::BubbleDelegateView implementation. 72 // views::BubbleDelegateView implementation.
73 virtual void OnWidgetDestroying(views::Widget* widget) override; 73 void OnWidgetDestroying(views::Widget* widget) override;
74 74
75 // views::ButtonListener implementation. 75 // views::ButtonListener implementation.
76 virtual void ButtonPressed(views::Button* button, 76 void ButtonPressed(views::Button* button, const ui::Event& event) override;
77 const ui::Event& event) override;
78 77
79 // views::LinkListener implementation. 78 // views::LinkListener implementation.
80 virtual void LinkClicked(views::Link* source, int event_flags) override; 79 void LinkClicked(views::Link* source, int event_flags) override;
81 80
82 // views::TabbedPaneListener implementations. 81 // views::TabbedPaneListener implementations.
83 virtual void TabSelectedAt(int index) override; 82 void TabSelectedAt(int index) override;
84 83
85 // views::View implementation. 84 // views::View implementation.
86 virtual gfx::Size GetPreferredSize() const override; 85 gfx::Size GetPreferredSize() const override;
87 86
88 // WebsiteSettingsUI implementations. 87 // WebsiteSettingsUI implementations.
89 virtual void SetCookieInfo(const CookieInfoList& cookie_info_list) override; 88 void SetCookieInfo(const CookieInfoList& cookie_info_list) override;
90 virtual void SetPermissionInfo( 89 void SetPermissionInfo(
91 const PermissionInfoList& permission_info_list) override; 90 const PermissionInfoList& permission_info_list) override;
92 virtual void SetIdentityInfo(const IdentityInfo& identity_info) override; 91 void SetIdentityInfo(const IdentityInfo& identity_info) override;
93 virtual void SetFirstVisit(const base::string16& first_visit) override; 92 void SetFirstVisit(const base::string16& first_visit) override;
94 virtual void SetSelectedTab(TabId tab_id) override; 93 void SetSelectedTab(TabId tab_id) override;
95 94
96 // Creates the contents of the "Permissions" tab. The ownership of the 95 // Creates the contents of the "Permissions" tab. The ownership of the
97 // returned view is transferred to the caller. 96 // returned view is transferred to the caller.
98 views::View* CreatePermissionsTab() WARN_UNUSED_RESULT; 97 views::View* CreatePermissionsTab() WARN_UNUSED_RESULT;
99 98
100 // Creates the contents of the "connection" tab. The ownership of the returned 99 // Creates the contents of the "connection" tab. The ownership of the returned
101 // view is transferred to the caller. 100 // view is transferred to the caller.
102 views::View* CreateConnectionTab() WARN_UNUSED_RESULT; 101 views::View* CreateConnectionTab() WARN_UNUSED_RESULT;
103 102
104 // Each tab contains several sections with a |headline| followed by the 103 // Each tab contains several sections with a |headline| followed by the
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 177
179 views::View* connection_info_content_; 178 views::View* connection_info_content_;
180 views::View* page_info_content_; 179 views::View* page_info_content_;
181 180
182 base::WeakPtrFactory<WebsiteSettingsPopupView> weak_factory_; 181 base::WeakPtrFactory<WebsiteSettingsPopupView> weak_factory_;
183 182
184 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsPopupView); 183 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsPopupView);
185 }; 184 };
186 185
187 #endif // CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_WEBSITE_SETTINGS_POPUP_VIEW_ H_ 186 #endif // CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_WEBSITE_SETTINGS_POPUP_VIEW_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698