| 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 const gfx::Range& range, | 124 const gfx::Range& range, |
| 125 int event_flags) override; | 125 int event_flags) override; |
| 126 | 126 |
| 127 // views::View implementation. | 127 // views::View implementation. |
| 128 gfx::Size GetPreferredSize() const override; | 128 gfx::Size GetPreferredSize() const override; |
| 129 | 129 |
| 130 // WebsiteSettingsUI implementations. | 130 // WebsiteSettingsUI implementations. |
| 131 void SetCookieInfo(const CookieInfoList& cookie_info_list) override; | 131 void SetCookieInfo(const CookieInfoList& cookie_info_list) override; |
| 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( |
| 135 WebsiteSettingsUI::VisiblePermissions visible_permissions) override; |
| 134 void SetIdentityInfo(const IdentityInfo& identity_info) override; | 136 void SetIdentityInfo(const IdentityInfo& identity_info) override; |
| 135 | 137 |
| 136 // 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 |
| 137 // returned view is transferred to the caller. | 139 // returned view is transferred to the caller. |
| 138 views::View* CreateSiteSettingsView(int side_margin) WARN_UNUSED_RESULT; | 140 views::View* CreateSiteSettingsView(int side_margin) WARN_UNUSED_RESULT; |
| 139 | 141 |
| 140 // Used to asynchronously handle clicks since these calls may cause the | 142 // Used to asynchronously handle clicks since these calls may cause the |
| 141 // destruction of the settings view and the base class window still needs to | 143 // destruction of the settings view and the base class window still needs to |
| 142 // be alive to finish handling the mouse or keyboard click. | 144 // be alive to finish handling the mouse or keyboard click. |
| 143 void HandleLinkClickedAsync(views::Link* source); | 145 void HandleLinkClickedAsync(views::Link* source); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 171 | 173 |
| 172 // The certificate provided by the site, if one exists. | 174 // The certificate provided by the site, if one exists. |
| 173 scoped_refptr<net::X509Certificate> certificate_; | 175 scoped_refptr<net::X509Certificate> certificate_; |
| 174 | 176 |
| 175 base::WeakPtrFactory<WebsiteSettingsPopupView> weak_factory_; | 177 base::WeakPtrFactory<WebsiteSettingsPopupView> weak_factory_; |
| 176 | 178 |
| 177 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsPopupView); | 179 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsPopupView); |
| 178 }; | 180 }; |
| 179 | 181 |
| 180 #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 |