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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 // Removes all children of |container|. | 74 // Removes all children of |container|. |
75 void ClearContainer(GtkWidget* container); | 75 void ClearContainer(GtkWidget* container); |
76 | 76 |
77 // Creates a popup section and returns a virtual box that contains the | 77 // Creates a popup section and returns a virtual box that contains the |
78 // section content. | 78 // section content. |
79 GtkWidget* CreateSection(std::string section_title, | 79 GtkWidget* CreateSection(std::string section_title, |
80 GtkWidget* section_content); | 80 GtkWidget* section_content); |
81 | 81 |
82 // Callbacks for the link buttons. | 82 // Callbacks for the link buttons. |
83 CHROMEGTK_CALLBACK_0(WebsiteSettingsPopupGtk, void, OnCookiesLinkClicked); | 83 CHROMEGTK_CALLBACK_0(WebsiteSettingsPopupGtk, void, OnCookiesLinkClicked); |
84 CHROMEGTK_CALLBACK_0(WebsiteSettingsPopupGtk, void, | |
85 OnPermissionsSettingsLinkClicked); | |
86 CHROMEGTK_CALLBACK_0(WebsiteSettingsPopupGtk, void, OnViewCertLinkClicked); | 84 CHROMEGTK_CALLBACK_0(WebsiteSettingsPopupGtk, void, OnViewCertLinkClicked); |
87 | 85 |
88 // Parent window. | 86 // Parent window. |
89 GtkWindow* parent_; | 87 GtkWindow* parent_; |
90 | 88 |
91 // The container that contains the content of the popup. | 89 // The container that contains the content of the popup. |
92 GtkWidget* contents_; | 90 GtkWidget* contents_; |
93 | 91 |
94 // The widget relative to which the popup is positioned. | 92 // The widget relative to which the popup is positioned. |
95 GtkWidget* anchor_; | 93 GtkWidget* anchor_; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 scoped_ptr<WebsiteSettings> presenter_; | 130 scoped_ptr<WebsiteSettings> presenter_; |
133 | 131 |
134 // The permission selectors that allow the user to change individual | 132 // The permission selectors that allow the user to change individual |
135 // permissions. | 133 // permissions. |
136 ScopedVector<PermissionSelector> selectors_; | 134 ScopedVector<PermissionSelector> selectors_; |
137 | 135 |
138 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsPopupGtk); | 136 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsPopupGtk); |
139 }; | 137 }; |
140 | 138 |
141 #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 |