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

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

Issue 2717613003: Views Page Info: Implement expanding all permissions (Closed)
Patch Set: gco default-mac Created 3 years, 9 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/website_settings/website_settings_popup_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <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
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 |permission_link_|. The ownership of the
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/website_settings/website_settings_popup_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698