| 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_GTK_WEBSITE_SETTINGS_WEBSITE_SETTINGS_POPUP_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_WEBSITE_SETTINGS_WEBSITE_SETTINGS_POPUP_GTK_H_ |
| 6 #define CHROME_BROWSER_UI_GTK_WEBSITE_SETTINGS_WEBSITE_SETTINGS_POPUP_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_WEBSITE_SETTINGS_WEBSITE_SETTINGS_POPUP_GTK_H_ |
| 7 | 7 |
| 8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 TabContents* tab_contents, | 50 TabContents* tab_contents, |
| 51 const GURL& url, | 51 const GURL& url, |
| 52 const content::SSLStatus& ssl); | 52 const content::SSLStatus& ssl); |
| 53 | 53 |
| 54 // WebsiteSettingsUI implementations. | 54 // WebsiteSettingsUI implementations. |
| 55 virtual void SetCookieInfo(const CookieInfoList& cookie_info_list) OVERRIDE; | 55 virtual void SetCookieInfo(const CookieInfoList& cookie_info_list) OVERRIDE; |
| 56 virtual void SetPermissionInfo( | 56 virtual void SetPermissionInfo( |
| 57 const PermissionInfoList& permission_info_list) OVERRIDE; | 57 const PermissionInfoList& permission_info_list) OVERRIDE; |
| 58 virtual void SetIdentityInfo(const IdentityInfo& identity_info) OVERRIDE; | 58 virtual void SetIdentityInfo(const IdentityInfo& identity_info) OVERRIDE; |
| 59 virtual void SetFirstVisit(const string16& first_visit) OVERRIDE; | 59 virtual void SetFirstVisit(const string16& first_visit) OVERRIDE; |
| 60 virtual void SetSelectedTab(WebsiteSettingsUI::TabId tab_id) OVERRIDE; |
| 60 | 61 |
| 61 // PermissionSelectorObserver implementations. | 62 // PermissionSelectorObserver implementations. |
| 62 virtual void OnPermissionChanged(PermissionSelector* selector) OVERRIDE; | 63 virtual void OnPermissionChanged(PermissionSelector* selector) OVERRIDE; |
| 63 virtual void OnComboboxShown() OVERRIDE; | 64 virtual void OnComboboxShown() OVERRIDE; |
| 64 | 65 |
| 65 // BubbleDelegateGtk implementation. | 66 // BubbleDelegateGtk implementation. |
| 66 virtual void BubbleClosing(BubbleGtk* bubble, bool closed_by_escape) OVERRIDE; | 67 virtual void BubbleClosing(BubbleGtk* bubble, bool closed_by_escape) OVERRIDE; |
| 67 | 68 |
| 68 virtual ~WebsiteSettingsPopupGtk(); | 69 virtual ~WebsiteSettingsPopupGtk(); |
| 69 | 70 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 // Container for the cookies and site data section content. | 108 // Container for the cookies and site data section content. |
| 108 GtkWidget* cookies_section_contents_; | 109 GtkWidget* cookies_section_contents_; |
| 109 | 110 |
| 110 // Container for the permissions section content. | 111 // Container for the permissions section content. |
| 111 GtkWidget* permissions_section_contents_; | 112 GtkWidget* permissions_section_contents_; |
| 112 | 113 |
| 113 // Container for the remote host (website) identity section of the connection | 114 // Container for the remote host (website) identity section of the connection |
| 114 // tab. | 115 // tab. |
| 115 GtkWidget* identity_contents_; | 116 GtkWidget* identity_contents_; |
| 116 | 117 |
| 118 // An array that is indexed by |WebsiteSettingsUI::TabId| and stores the tab |
| 119 // indecies used by |notebook_|. |tab_id_index_map_| is used to map |TabId|s |
| 120 // to indecies. |
| 121 int tab_id_index_map_[NUM_TAB_IDS]; |
| 122 |
| 117 // Container for the connection section of the connection tab. | 123 // Container for the connection section of the connection tab. |
| 118 GtkWidget* connection_contents_; | 124 GtkWidget* connection_contents_; |
| 119 | 125 |
| 120 // Container for the information about the first visit date of the website. | 126 // Container for the information about the first visit date of the website. |
| 121 GtkWidget* first_visit_contents_; | 127 GtkWidget* first_visit_contents_; |
| 122 | 128 |
| 129 // The widget that contains the tabs display on the popup. |
| 130 GtkWidget* notebook_; |
| 131 |
| 123 // The UI translates user actions to specific events and forwards them to the | 132 // The UI translates user actions to specific events and forwards them to the |
| 124 // |presenter_|. The |presenter_| handles these events and updates the UI. | 133 // |presenter_|. The |presenter_| handles these events and updates the UI. |
| 125 scoped_ptr<WebsiteSettings> presenter_; | 134 scoped_ptr<WebsiteSettings> presenter_; |
| 126 | 135 |
| 127 // The permission selectors that allow the user to change individual | 136 // The permission selectors that allow the user to change individual |
| 128 // permissions. | 137 // permissions. |
| 129 ScopedVector<PermissionSelector> selectors_; | 138 ScopedVector<PermissionSelector> selectors_; |
| 130 | 139 |
| 131 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsPopupGtk); | 140 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsPopupGtk); |
| 132 }; | 141 }; |
| 133 | 142 |
| 134 #endif // CHROME_BROWSER_UI_GTK_WEBSITE_SETTINGS_WEBSITE_SETTINGS_POPUP_GTK_H_ | 143 #endif // CHROME_BROWSER_UI_GTK_WEBSITE_SETTINGS_WEBSITE_SETTINGS_POPUP_GTK_H_ |
| OLD | NEW |