| 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 SetIdentityInfo(const IdentityInfo& identity_info) override; | 134 void SetIdentityInfo(const IdentityInfo& identity_info) override; |
| 135 | 135 |
| 136 // Creates the contents of the |site_settings_view_|. The ownership of the | 136 // Creates the contents of the |site_settings_view_|. The ownership of the |
| 137 // returned view is transferred to the caller. | 137 // returned view is transferred to the caller. |
| 138 views::View* CreateSiteSettingsView() WARN_UNUSED_RESULT; | 138 views::View* CreateSiteSettingsView(int side_margin) WARN_UNUSED_RESULT; |
| 139 | 139 |
| 140 // Used to asynchronously handle clicks since these calls may cause the | 140 // 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 | 141 // destruction of the settings view and the base class window still needs to |
| 142 // be alive to finish handling the mouse or keyboard click. | 142 // be alive to finish handling the mouse or keyboard click. |
| 143 void HandleLinkClickedAsync(views::Link* source); | 143 void HandleLinkClickedAsync(views::Link* source); |
| 144 | 144 |
| 145 // Whether DevTools is disabled for the relevant profile. | 145 // Whether DevTools is disabled for the relevant profile. |
| 146 bool is_devtools_disabled_; | 146 bool is_devtools_disabled_; |
| 147 | 147 |
| 148 // The presenter that controls the Website Settings UI. | 148 // The presenter that controls the Website Settings UI. |
| (...skipping 22 matching lines...) Expand all Loading... |
| 171 | 171 |
| 172 // The certificate provided by the site, if one exists. | 172 // The certificate provided by the site, if one exists. |
| 173 scoped_refptr<net::X509Certificate> certificate_; | 173 scoped_refptr<net::X509Certificate> certificate_; |
| 174 | 174 |
| 175 base::WeakPtrFactory<WebsiteSettingsPopupView> weak_factory_; | 175 base::WeakPtrFactory<WebsiteSettingsPopupView> weak_factory_; |
| 176 | 176 |
| 177 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsPopupView); | 177 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsPopupView); |
| 178 }; | 178 }; |
| 179 | 179 |
| 180 #endif // CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_WEBSITE_SETTINGS_POPUP_VIEW_
H_ | 180 #endif // CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_WEBSITE_SETTINGS_POPUP_VIEW_
H_ |
| OLD | NEW |