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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 60 |
61 // PermissionSelectorObserver implementations. | 61 // PermissionSelectorObserver implementations. |
62 virtual void OnPermissionChanged(PermissionSelector* selector) OVERRIDE; | 62 virtual void OnPermissionChanged(PermissionSelector* selector) OVERRIDE; |
63 virtual void OnComboboxShown() OVERRIDE; | 63 virtual void OnComboboxShown() OVERRIDE; |
64 | 64 |
65 // BubbleDelegateGtk implementation. | 65 // BubbleDelegateGtk implementation. |
66 virtual void BubbleClosing(BubbleGtk* bubble, bool closed_by_escape) OVERRIDE; | 66 virtual void BubbleClosing(BubbleGtk* bubble, bool closed_by_escape) OVERRIDE; |
67 | 67 |
68 | |
69 virtual ~WebsiteSettingsPopupGtk(); | 68 virtual ~WebsiteSettingsPopupGtk(); |
70 | 69 |
71 // Layouts the different sections retrieved from the model. | 70 // Layouts the different sections retrieved from the model. |
72 void InitContents(); | 71 void InitContents(); |
73 | 72 |
74 // Removes all children of |container|. | |
75 void ClearContainer(GtkWidget* container); | |
76 | |
77 // Creates a popup section and returns a virtual box that contains the | 73 // Creates a popup section and returns a virtual box that contains the |
78 // section content. | 74 // section content. |
79 GtkWidget* CreateSection(std::string section_title, | 75 GtkWidget* CreateSection(std::string section_title, |
80 GtkWidget* section_content); | 76 GtkWidget* section_content); |
81 | 77 |
82 // Callbacks for the link buttons. | 78 // Callbacks for the link buttons. |
83 CHROMEGTK_CALLBACK_0(WebsiteSettingsPopupGtk, void, OnCookiesLinkClicked); | 79 CHROMEGTK_CALLBACK_0(WebsiteSettingsPopupGtk, void, OnCookiesLinkClicked); |
84 CHROMEGTK_CALLBACK_0(WebsiteSettingsPopupGtk, void, OnViewCertLinkClicked); | 80 CHROMEGTK_CALLBACK_0(WebsiteSettingsPopupGtk, void, OnViewCertLinkClicked); |
85 | 81 |
86 // Parent window. | 82 // Parent window. |
(...skipping 25 matching lines...) Expand all Loading... |
112 | 108 |
113 // Container for the popup header content. | 109 // Container for the popup header content. |
114 GtkWidget* header_box_; | 110 GtkWidget* header_box_; |
115 | 111 |
116 // Container for the cookies and site data section content. | 112 // Container for the cookies and site data section content. |
117 GtkWidget* cookies_section_contents_; | 113 GtkWidget* cookies_section_contents_; |
118 | 114 |
119 // Container for the permissions section content. | 115 // Container for the permissions section content. |
120 GtkWidget* permissions_section_contents_; | 116 GtkWidget* permissions_section_contents_; |
121 | 117 |
122 // Container for the identity tab content. | 118 // Container for the remote host (website) identity section of the connection |
123 GtkWidget* identity_tab_contents_; | 119 // tab. |
| 120 GtkWidget* identity_contents_; |
| 121 |
| 122 // Container for the connection section of the connection tab. |
| 123 GtkWidget* connection_contents_; |
124 | 124 |
125 // Container for the information about the first visit date of the website. | 125 // Container for the information about the first visit date of the website. |
126 GtkWidget* first_visit_contents_; | 126 GtkWidget* first_visit_contents_; |
127 | 127 |
128 // The UI translates user actions to specific events and forwards them to the | 128 // The UI translates user actions to specific events and forwards them to the |
129 // |presenter_|. The |presenter_| handles these events and updates the UI. | 129 // |presenter_|. The |presenter_| handles these events and updates the UI. |
130 scoped_ptr<WebsiteSettings> presenter_; | 130 scoped_ptr<WebsiteSettings> presenter_; |
131 | 131 |
132 // The permission selectors that allow the user to change individual | 132 // The permission selectors that allow the user to change individual |
133 // permissions. | 133 // permissions. |
134 ScopedVector<PermissionSelector> selectors_; | 134 ScopedVector<PermissionSelector> selectors_; |
135 | 135 |
136 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsPopupGtk); | 136 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsPopupGtk); |
137 }; | 137 }; |
138 | 138 |
139 #endif // CHROME_BROWSER_UI_GTK_WEBSITE_SETTINGS_WEBSITE_SETTINGS_POPUP_GTK_H_ | 139 #endif // CHROME_BROWSER_UI_GTK_WEBSITE_SETTINGS_WEBSITE_SETTINGS_POPUP_GTK_H_ |
OLD | NEW |