Chromium Code Reviews| 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 132 void SetPermissionInfo(const PermissionInfoList& permission_info_list, | 132 void SetPermissionInfo(const PermissionInfoList& permission_info_list, |
| 133 ChosenObjectInfoList chosen_object_info_list) override; | 133 ChosenObjectInfoList chosen_object_info_list) override; |
| 134 void UpdatePermissionButton( | 134 void UpdatePermissionButton( |
| 135 WebsiteSettingsUI::VisiblePermissions visible_permissions) override; | 135 WebsiteSettingsUI::VisiblePermissions visible_permissions) override; |
| 136 void SetIdentityInfo(const IdentityInfo& identity_info) override; | 136 void SetIdentityInfo(const IdentityInfo& identity_info) override; |
| 137 | 137 |
| 138 // Creates the contents of the |site_settings_view_|. The ownership of the | 138 // Creates the contents of the |site_settings_view_|. The ownership of the |
| 139 // returned view is transferred to the caller. | 139 // returned view is transferred to the caller. |
| 140 views::View* CreateSiteSettingsView(int side_margin) WARN_UNUSED_RESULT; | 140 views::View* CreateSiteSettingsView(int side_margin) WARN_UNUSED_RESULT; |
| 141 | 141 |
| 142 // Creates the contents of the |site_settings_view_|. The ownership of the | |
|
msw
2017/02/24 18:42:49
This comment is copy-pasted from above, please upd
lgarron
2017/02/28 03:21:01
Done.
| |
| 143 // returned view is transferred to the caller. | |
| 144 views::Link* CreatePermissionLink() WARN_UNUSED_RESULT; | |
| 145 | |
| 142 // Used to asynchronously handle clicks since these calls may cause the | 146 // Used to asynchronously handle clicks since these calls may cause the |
| 143 // destruction of the settings view and the base class window still needs to | 147 // destruction of the settings view and the base class window still needs to |
| 144 // be alive to finish handling the mouse or keyboard click. | 148 // be alive to finish handling the mouse or keyboard click. |
| 145 void HandleLinkClickedAsync(views::Link* source); | 149 void HandleLinkClickedAsync(views::Link* source); |
| 146 | 150 |
| 147 // Whether DevTools is disabled for the relevant profile. | 151 // Whether DevTools is disabled for the relevant profile. |
| 148 bool is_devtools_disabled_; | 152 bool is_devtools_disabled_; |
| 149 | 153 |
| 150 // The presenter that controls the Website Settings UI. | 154 // The presenter that controls the Website Settings UI. |
| 151 std::unique_ptr<WebsiteSettings> presenter_; | 155 std::unique_ptr<WebsiteSettings> presenter_; |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 163 | 167 |
| 164 // The view that contains the cookie and permissions sections. | 168 // The view that contains the cookie and permissions sections. |
| 165 views::View* site_settings_view_; | 169 views::View* site_settings_view_; |
| 166 // The view that contains the contents of the "Cookies" part of the site | 170 // The view that contains the contents of the "Cookies" part of the site |
| 167 // settings view. | 171 // settings view. |
| 168 views::View* cookies_view_; | 172 views::View* cookies_view_; |
| 169 // The link that opens the "Cookies" dialog. | 173 // The link that opens the "Cookies" dialog. |
| 170 views::Link* cookie_dialog_link_; | 174 views::Link* cookie_dialog_link_; |
| 171 // The view that contains the "Permissions" table of the site settings view. | 175 // The view that contains the "Permissions" table of the site settings view. |
| 172 views::View* permissions_view_; | 176 views::View* permissions_view_; |
| 177 // The link that either: | |
| 178 // - expands the bubble to show all permissions, or | |
| 179 // - opens site settings in chrome://settings | |
| 180 views::Link* permission_link_; | |
| 173 | 181 |
| 174 // The certificate provided by the site, if one exists. | 182 // The certificate provided by the site, if one exists. |
| 175 scoped_refptr<net::X509Certificate> certificate_; | 183 scoped_refptr<net::X509Certificate> certificate_; |
| 176 | 184 |
| 177 base::WeakPtrFactory<WebsiteSettingsPopupView> weak_factory_; | 185 base::WeakPtrFactory<WebsiteSettingsPopupView> weak_factory_; |
| 178 | 186 |
| 179 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsPopupView); | 187 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsPopupView); |
| 180 }; | 188 }; |
| 181 | 189 |
| 182 #endif // CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_WEBSITE_SETTINGS_POPUP_VIEW_ H_ | 190 #endif // CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_WEBSITE_SETTINGS_POPUP_VIEW_ H_ |
| OLD | NEW |