| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 private: | 60 private: |
| 61 WebsiteSettingsPopupView(views::View* anchor_view, | 61 WebsiteSettingsPopupView(views::View* anchor_view, |
| 62 Profile* profile, | 62 Profile* profile, |
| 63 content::WebContents* web_contents, | 63 content::WebContents* web_contents, |
| 64 const GURL& url, | 64 const GURL& url, |
| 65 const content::SSLStatus& ssl, | 65 const content::SSLStatus& ssl, |
| 66 Browser* browser); | 66 Browser* browser); |
| 67 | 67 |
| 68 // PermissionSelectorViewObserver implementation. | 68 // PermissionSelectorViewObserver implementation. |
| 69 virtual void OnPermissionChanged( | 69 virtual void OnPermissionChanged( |
| 70 const WebsiteSettingsUI::PermissionInfo& permission) OVERRIDE; | 70 const WebsiteSettingsUI::PermissionInfo& permission) override; |
| 71 | 71 |
| 72 // views::BubbleDelegateView implementation. | 72 // views::BubbleDelegateView implementation. |
| 73 virtual void OnWidgetDestroying(views::Widget* widget) OVERRIDE; | 73 virtual void OnWidgetDestroying(views::Widget* widget) override; |
| 74 | 74 |
| 75 // views::ButtonListener implementation. | 75 // views::ButtonListener implementation. |
| 76 virtual void ButtonPressed(views::Button* button, | 76 virtual void ButtonPressed(views::Button* button, |
| 77 const ui::Event& event) OVERRIDE; | 77 const ui::Event& event) override; |
| 78 | 78 |
| 79 // views::LinkListener implementation. | 79 // views::LinkListener implementation. |
| 80 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; | 80 virtual void LinkClicked(views::Link* source, int event_flags) override; |
| 81 | 81 |
| 82 // views::TabbedPaneListener implementations. | 82 // views::TabbedPaneListener implementations. |
| 83 virtual void TabSelectedAt(int index) OVERRIDE; | 83 virtual void TabSelectedAt(int index) override; |
| 84 | 84 |
| 85 // views::View implementation. | 85 // views::View implementation. |
| 86 virtual gfx::Size GetPreferredSize() const OVERRIDE; | 86 virtual gfx::Size GetPreferredSize() const override; |
| 87 | 87 |
| 88 // WebsiteSettingsUI implementations. | 88 // WebsiteSettingsUI implementations. |
| 89 virtual void SetCookieInfo(const CookieInfoList& cookie_info_list) OVERRIDE; | 89 virtual void SetCookieInfo(const CookieInfoList& cookie_info_list) override; |
| 90 virtual void SetPermissionInfo( | 90 virtual void SetPermissionInfo( |
| 91 const PermissionInfoList& permission_info_list) OVERRIDE; | 91 const PermissionInfoList& permission_info_list) override; |
| 92 virtual void SetIdentityInfo(const IdentityInfo& identity_info) OVERRIDE; | 92 virtual void SetIdentityInfo(const IdentityInfo& identity_info) override; |
| 93 virtual void SetFirstVisit(const base::string16& first_visit) OVERRIDE; | 93 virtual void SetFirstVisit(const base::string16& first_visit) override; |
| 94 virtual void SetSelectedTab(TabId tab_id) OVERRIDE; | 94 virtual void SetSelectedTab(TabId tab_id) override; |
| 95 | 95 |
| 96 // Creates the contents of the "Permissions" tab. The ownership of the | 96 // Creates the contents of the "Permissions" tab. The ownership of the |
| 97 // returned view is transferred to the caller. | 97 // returned view is transferred to the caller. |
| 98 views::View* CreatePermissionsTab() WARN_UNUSED_RESULT; | 98 views::View* CreatePermissionsTab() WARN_UNUSED_RESULT; |
| 99 | 99 |
| 100 // Creates the contents of the "connection" tab. The ownership of the returned | 100 // Creates the contents of the "connection" tab. The ownership of the returned |
| 101 // view is transferred to the caller. | 101 // view is transferred to the caller. |
| 102 views::View* CreateConnectionTab() WARN_UNUSED_RESULT; | 102 views::View* CreateConnectionTab() WARN_UNUSED_RESULT; |
| 103 | 103 |
| 104 // Each tab contains several sections with a |headline| followed by the | 104 // Each tab contains several sections with a |headline| followed by the |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 | 178 |
| 179 views::View* connection_info_content_; | 179 views::View* connection_info_content_; |
| 180 views::View* page_info_content_; | 180 views::View* page_info_content_; |
| 181 | 181 |
| 182 base::WeakPtrFactory<WebsiteSettingsPopupView> weak_factory_; | 182 base::WeakPtrFactory<WebsiteSettingsPopupView> weak_factory_; |
| 183 | 183 |
| 184 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsPopupView); | 184 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsPopupView); |
| 185 }; | 185 }; |
| 186 | 186 |
| 187 #endif // CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_WEBSITE_SETTINGS_POPUP_VIEW_
H_ | 187 #endif // CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_WEBSITE_SETTINGS_POPUP_VIEW_
H_ |
| OLD | NEW |