| 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 "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 | 34 |
| 35 // The views implementation of the website settings UI. | 35 // The views implementation of the website settings UI. |
| 36 class WebsiteSettingsPopupView | 36 class WebsiteSettingsPopupView |
| 37 : public PermissionSelectorViewObserver, | 37 : public PermissionSelectorViewObserver, |
| 38 public views::BubbleDelegateView, | 38 public views::BubbleDelegateView, |
| 39 public views::ButtonListener, | 39 public views::ButtonListener, |
| 40 public views::LinkListener, | 40 public views::LinkListener, |
| 41 public views::TabbedPaneListener, | 41 public views::TabbedPaneListener, |
| 42 public WebsiteSettingsUI { | 42 public WebsiteSettingsUI { |
| 43 public: | 43 public: |
| 44 // Margin built-in to the icon asset in the anchor view. Used to ensure the |
| 45 // bubble arrow points to the actual icon. |
| 46 static const int kLocationIconVerticalMargin; |
| 47 |
| 44 ~WebsiteSettingsPopupView() override; | 48 ~WebsiteSettingsPopupView() override; |
| 45 | 49 |
| 46 static void ShowPopup(views::View* anchor_view, | 50 static views::BubbleDelegateView* ShowPopup( |
| 47 Profile* profile, | 51 views::View* anchor_view, |
| 48 content::WebContents* web_contents, | 52 Profile* profile, |
| 49 const GURL& url, | 53 content::WebContents* web_contents, |
| 50 const content::SSLStatus& ssl); | 54 const GURL& url, |
| 55 const content::SSLStatus& ssl); |
| 51 | 56 |
| 52 static bool IsPopupShowing(); | 57 static bool IsPopupShowing(); |
| 53 | 58 |
| 54 private: | 59 private: |
| 55 WebsiteSettingsPopupView(views::View* anchor_view, | 60 WebsiteSettingsPopupView(views::View* anchor_view, |
| 56 Profile* profile, | 61 Profile* profile, |
| 57 content::WebContents* web_contents, | 62 content::WebContents* web_contents, |
| 58 const GURL& url, | 63 const GURL& url, |
| 59 const content::SSLStatus& ssl); | 64 const content::SSLStatus& ssl); |
| 60 | 65 |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 views::Link* site_settings_link_; | 175 views::Link* site_settings_link_; |
| 171 | 176 |
| 172 views::View* connection_info_content_; | 177 views::View* connection_info_content_; |
| 173 | 178 |
| 174 base::WeakPtrFactory<WebsiteSettingsPopupView> weak_factory_; | 179 base::WeakPtrFactory<WebsiteSettingsPopupView> weak_factory_; |
| 175 | 180 |
| 176 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsPopupView); | 181 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsPopupView); |
| 177 }; | 182 }; |
| 178 | 183 |
| 179 #endif // CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_WEBSITE_SETTINGS_POPUP_VIEW_
H_ | 184 #endif // CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_WEBSITE_SETTINGS_POPUP_VIEW_
H_ |
| OLD | NEW |