| 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 11 matching lines...) Expand all Loading... |
| 22 class Profile; | 22 class Profile; |
| 23 class TabContents; | 23 class TabContents; |
| 24 | 24 |
| 25 namespace content { | 25 namespace content { |
| 26 struct SSLStatus; | 26 struct SSLStatus; |
| 27 } | 27 } |
| 28 | 28 |
| 29 namespace views { | 29 namespace views { |
| 30 class Link; | 30 class Link; |
| 31 class TabbedPane; | 31 class TabbedPane; |
| 32 class Widget; |
| 32 } | 33 } |
| 33 | 34 |
| 34 // The views implementation of the website settings UI. | 35 // The views implementation of the website settings UI. |
| 35 class WebsiteSettingsPopupView | 36 class WebsiteSettingsPopupView |
| 36 : public PermissionSelectorViewObserver, | 37 : public PermissionSelectorViewObserver, |
| 37 public views::BubbleDelegateView, | 38 public views::BubbleDelegateView, |
| 38 public views::ButtonListener, | 39 public views::ButtonListener, |
| 39 public views::LinkListener, | 40 public views::LinkListener, |
| 40 public views::TabbedPaneListener, | 41 public views::TabbedPaneListener, |
| 41 public WebsiteSettingsUI { | 42 public WebsiteSettingsUI { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 54 TabContents* tab_contents, | 55 TabContents* tab_contents, |
| 55 const GURL& url, | 56 const GURL& url, |
| 56 const content::SSLStatus& ssl); | 57 const content::SSLStatus& ssl); |
| 57 | 58 |
| 58 // PermissionSelectorViewObserver implementation. | 59 // PermissionSelectorViewObserver implementation. |
| 59 virtual void OnPermissionChanged( | 60 virtual void OnPermissionChanged( |
| 60 PermissionSelectorView* selector) OVERRIDE; | 61 PermissionSelectorView* selector) OVERRIDE; |
| 61 | 62 |
| 62 // views::BubbleDelegate implementations. | 63 // views::BubbleDelegate implementations. |
| 63 virtual gfx::Rect GetAnchorRect() OVERRIDE; | 64 virtual gfx::Rect GetAnchorRect() OVERRIDE; |
| 65 virtual void OnWidgetClosing(views::Widget* widget) OVERRIDE; |
| 64 | 66 |
| 65 // views::ButtonListener implementation. | 67 // views::ButtonListener implementation. |
| 66 virtual void ButtonPressed(views::Button* button, | 68 virtual void ButtonPressed(views::Button* button, |
| 67 const views::Event& event) OVERRIDE; | 69 const views::Event& event) OVERRIDE; |
| 68 | 70 |
| 69 // views::LinkListener implementation. | 71 // views::LinkListener implementation. |
| 70 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; | 72 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; |
| 71 | 73 |
| 72 // views::TabbedPaneListener implementations. | 74 // views::TabbedPaneListener implementations. |
| 73 virtual void TabSelectedAt(int index) OVERRIDE; | 75 virtual void TabSelectedAt(int index) OVERRIDE; |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 // provide a certificate then |cert_id_| is 0. | 144 // provide a certificate then |cert_id_| is 0. |
| 143 int cert_id_; | 145 int cert_id_; |
| 144 | 146 |
| 145 views::View* connection_info_content_; | 147 views::View* connection_info_content_; |
| 146 views::View* page_info_content_; | 148 views::View* page_info_content_; |
| 147 | 149 |
| 148 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsPopupView); | 150 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsPopupView); |
| 149 }; | 151 }; |
| 150 | 152 |
| 151 #endif // CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_WEBSITE_SETTINGS_POPUP_VIEW_
H_ | 153 #endif // CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_WEBSITE_SETTINGS_POPUP_VIEW_
H_ |
| OLD | NEW |