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/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 public: | 46 public: |
47 virtual ~WebsiteSettingsPopupView(); | 47 virtual ~WebsiteSettingsPopupView(); |
48 | 48 |
49 static void ShowPopup(views::View* anchor_view, | 49 static void ShowPopup(views::View* anchor_view, |
50 Profile* profile, | 50 Profile* profile, |
51 content::WebContents* web_contents, | 51 content::WebContents* web_contents, |
52 const GURL& url, | 52 const GURL& url, |
53 const content::SSLStatus& ssl, | 53 const content::SSLStatus& ssl, |
54 Browser* browser); | 54 Browser* browser); |
55 | 55 |
| 56 static bool IsPopupShowing(); |
| 57 |
56 private: | 58 private: |
57 WebsiteSettingsPopupView(views::View* anchor_view, | 59 WebsiteSettingsPopupView(views::View* anchor_view, |
58 Profile* profile, | 60 Profile* profile, |
59 content::WebContents* web_contents, | 61 content::WebContents* web_contents, |
60 const GURL& url, | 62 const GURL& url, |
61 const content::SSLStatus& ssl, | 63 const content::SSLStatus& ssl, |
62 Browser* browser); | 64 Browser* browser); |
63 | 65 |
64 // PermissionSelectorViewObserver implementation. | 66 // PermissionSelectorViewObserver implementation. |
65 virtual void OnPermissionChanged( | 67 virtual void OnPermissionChanged( |
66 PermissionSelectorView* selector) OVERRIDE; | 68 PermissionSelectorView* selector) OVERRIDE; |
67 | 69 |
68 // views::BubbleDelegate implementation. | 70 // views::BubbleDelegateView implementation. |
69 virtual void OnWidgetDestroying(views::Widget* widget) OVERRIDE; | 71 virtual void OnWidgetDestroying(views::Widget* widget) OVERRIDE; |
70 | 72 |
71 // views::ButtonListener implementation. | 73 // views::ButtonListener implementation. |
72 virtual void ButtonPressed(views::Button* button, | 74 virtual void ButtonPressed(views::Button* button, |
73 const ui::Event& event) OVERRIDE; | 75 const ui::Event& event) OVERRIDE; |
74 | 76 |
75 // views::LinkListener implementation. | 77 // views::LinkListener implementation. |
76 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; | 78 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; |
77 | 79 |
78 // views::TabbedPaneListener implementations. | 80 // views::TabbedPaneListener implementations. |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 | 174 |
173 views::View* connection_info_content_; | 175 views::View* connection_info_content_; |
174 views::View* page_info_content_; | 176 views::View* page_info_content_; |
175 | 177 |
176 base::WeakPtrFactory<WebsiteSettingsPopupView> weak_factory_; | 178 base::WeakPtrFactory<WebsiteSettingsPopupView> weak_factory_; |
177 | 179 |
178 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsPopupView); | 180 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsPopupView); |
179 }; | 181 }; |
180 | 182 |
181 #endif // CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_WEBSITE_SETTINGS_POPUP_VIEW_
H_ | 183 #endif // CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_WEBSITE_SETTINGS_POPUP_VIEW_
H_ |
OLD | NEW |