OLD | NEW |
---|---|
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 <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
100 | 100 |
101 // PermissionSelectorRowObserver implementation. | 101 // PermissionSelectorRowObserver implementation. |
102 void OnPermissionChanged( | 102 void OnPermissionChanged( |
103 const WebsiteSettingsUI::PermissionInfo& permission) override; | 103 const WebsiteSettingsUI::PermissionInfo& permission) override; |
104 | 104 |
105 // ChosenObjectRowObserver implementation. | 105 // ChosenObjectRowObserver implementation. |
106 void OnChosenObjectDeleted( | 106 void OnChosenObjectDeleted( |
107 const WebsiteSettingsUI::ChosenObjectInfo& info) override; | 107 const WebsiteSettingsUI::ChosenObjectInfo& info) override; |
108 | 108 |
109 // views::BubbleDialogDelegateView implementation. | 109 // views::BubbleDialogDelegateView implementation. |
110 base::string16 GetWindowTitle() const override; | |
111 bool ShouldShowCloseButton() const override; | |
110 void OnWidgetDestroying(views::Widget* widget) override; | 112 void OnWidgetDestroying(views::Widget* widget) override; |
111 int GetDialogButtons() const override; | 113 int GetDialogButtons() const override; |
114 const gfx::FontList& GetTitleFontList() const override; | |
112 | 115 |
113 // views::ButtonListener implementation. | 116 // views::ButtonListener implementation. |
114 void ButtonPressed(views::Button* button, const ui::Event& event) override; | 117 void ButtonPressed(views::Button* button, const ui::Event& event) override; |
115 | 118 |
116 // views::LinkListener implementation. | 119 // views::LinkListener implementation. |
117 void LinkClicked(views::Link* source, int event_flags) override; | 120 void LinkClicked(views::Link* source, int event_flags) override; |
118 | 121 |
119 // views::StyledLabelListener implementation. | 122 // views::StyledLabelListener implementation. |
120 void StyledLabelLinkClicked(views::StyledLabel* label, | 123 void StyledLabelLinkClicked(views::StyledLabel* label, |
121 const gfx::Range& range, | 124 const gfx::Range& range, |
(...skipping 23 matching lines...) Expand all Loading... | |
145 bool is_devtools_disabled_; | 148 bool is_devtools_disabled_; |
146 | 149 |
147 // The presenter that controls the Website Settings UI. | 150 // The presenter that controls the Website Settings UI. |
148 std::unique_ptr<WebsiteSettings> presenter_; | 151 std::unique_ptr<WebsiteSettings> presenter_; |
149 | 152 |
150 Profile* profile_; | 153 Profile* profile_; |
151 | 154 |
152 // The header section (containing security-related information). | 155 // The header section (containing security-related information). |
153 PopupHeaderView* header_; | 156 PopupHeaderView* header_; |
154 | 157 |
158 // The label that displays security summary for the current page. | |
lgarron
2016/12/14 23:46:23
Nit: Remove "label" from comment. (e.g. "The secur
tapted
2017/01/04 00:36:49
Done.
| |
159 base::string16 summary_text_; | |
160 | |
155 // The separator between the header and the site settings view. | 161 // The separator between the header and the site settings view. |
156 views::Separator* separator_; | 162 views::Separator* separator_; |
157 | 163 |
158 // The view that contains the cookie and permissions sections. | 164 // The view that contains the cookie and permissions sections. |
159 views::View* site_settings_view_; | 165 views::View* site_settings_view_; |
160 // The view that contains the contents of the "Cookies" part of the site | 166 // The view that contains the contents of the "Cookies" part of the site |
161 // settings view. | 167 // settings view. |
162 views::View* cookies_view_; | 168 views::View* cookies_view_; |
163 // The link that opens the "Cookies" dialog. | 169 // The link that opens the "Cookies" dialog. |
164 views::Link* cookie_dialog_link_; | 170 views::Link* cookie_dialog_link_; |
165 // The view that contains the "Permissions" table of the site settings view. | 171 // The view that contains the "Permissions" table of the site settings view. |
166 views::View* permissions_view_; | 172 views::View* permissions_view_; |
167 | 173 |
168 // The certificate provided by the site, if one exists. | 174 // The certificate provided by the site, if one exists. |
169 scoped_refptr<net::X509Certificate> certificate_; | 175 scoped_refptr<net::X509Certificate> certificate_; |
170 | 176 |
171 base::WeakPtrFactory<WebsiteSettingsPopupView> weak_factory_; | 177 base::WeakPtrFactory<WebsiteSettingsPopupView> weak_factory_; |
172 | 178 |
173 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsPopupView); | 179 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsPopupView); |
174 }; | 180 }; |
175 | 181 |
176 #endif // CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_WEBSITE_SETTINGS_POPUP_VIEW_ H_ | 182 #endif // CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_WEBSITE_SETTINGS_POPUP_VIEW_ H_ |
OLD | NEW |