Chromium Code Reviews| Index: chrome/browser/ui/gtk/website_settings_popup_gtk.h |
| diff --git a/chrome/browser/ui/gtk/website_settings_popup_gtk.h b/chrome/browser/ui/gtk/website_settings_popup_gtk.h |
| index be74f67938b494b6144a801698e879df6e74586c..92bdef6694eee43cf6a002d6549a63ac09d5081e 100644 |
| --- a/chrome/browser/ui/gtk/website_settings_popup_gtk.h |
| +++ b/chrome/browser/ui/gtk/website_settings_popup_gtk.h |
| @@ -6,31 +6,43 @@ |
| #define CHROME_BROWSER_UI_GTK_WEBSITE_SETTINGS_POPUP_GTK_H_ |
| #pragma once |
| -#include "chrome/browser/ui/website_settings_ui.h" |
| +#include "chrome/browser/ui/website_settings/website_settings_ui.h" |
|
tfarina
2012/06/01 21:20:26
nit: group with the other includes below. This is
markusheintz_
2012/06/02 21:22:33
Done.
|
| #include <gtk/gtk.h> |
| +#include "base/memory/scoped_ptr.h" |
| #include "chrome/browser/ui/gtk/bubble/bubble_gtk.h" |
| class Browser; |
| class BubbleGtk; |
|
tfarina
2012/06/01 21:20:26
nit: forgot to remove?
markusheintz_
2012/06/02 21:22:33
uups sorry. Removed.
|
| + |
| +namespace content { |
|
tfarina
2012/06/01 21:20:26
please, move this after the forward declarations b
markusheintz_
2012/06/02 21:22:33
Done.
|
| +struct SSLStatus; |
| +} |
| + |
| class GtkThemeService; |
|
tfarina
2012/06/01 21:20:26
group these forward declarations with the Browser
markusheintz_
2012/06/02 21:22:33
Done.
|
| +class GURL; |
| class Profile; |
| class TabContentsWrapper; |
| class WebsiteSettings; |
| -// GTK implementation of the website settings UI. The website settings UI is |
| -// displayed in a popup that is positioned relative the an anchor element. |
| +// GTK implementation of the website settings UI. |
| class WebsiteSettingsPopupGtk : public WebsiteSettingsUI, |
| public BubbleDelegateGtk { |
| public: |
| - WebsiteSettingsPopupGtk(gfx::NativeWindow parent, |
| - Profile* profile, |
| - TabContentsWrapper* wrapper); |
| - virtual ~WebsiteSettingsPopupGtk(); |
| + // Creates a |WebsiteSettingsPopupGtk| and displays the UI. The |url| |
| + // contains the omnibox URL of the currently active tab, |parent| contains |
| + // the currently active window, |profile| contains the currently active |
| + // profile and |ssl| contains the |SSLStatus| of the connection to the |
| + // website in the currently active tab that is wrapped by the |
| + // |tab_contents_wrapper|. |
| + static void Show(gfx::NativeWindow parent, |
| + Profile* profile, |
| + TabContentsWrapper* tab_contents_wrapper, |
| + const GURL& url, |
| + const content::SSLStatus& ssl); |
| // WebsiteSettingsUI implementations. |
| - virtual void SetPresenter(WebsiteSettings* presenter) OVERRIDE; |
| virtual void SetCookieInfo(const CookieInfoList& cookie_info_list) OVERRIDE; |
|
tfarina
2012/06/01 21:20:26
I'm away from my Linux desktop, but I think I can
markusheintz_
2012/06/02 21:22:33
hm ... why should I make these methods private her
tfarina
2012/06/03 16:09:04
The reason I suggested this is:
- WebsiteSettings
markusheintz_
2012/06/04 16:33:54
You are right. Thanks a lot for the long descripti
|
| virtual void SetPermissionInfo( |
| const PermissionInfoList& permission_info_list) OVERRIDE; |
| @@ -41,6 +53,14 @@ class WebsiteSettingsPopupGtk : public WebsiteSettingsUI, |
| virtual void BubbleClosing(BubbleGtk* bubble, bool closed_by_escape) OVERRIDE; |
| private: |
| + WebsiteSettingsPopupGtk(gfx::NativeWindow parent, |
| + Profile* profile, |
| + TabContentsWrapper* wrapper, |
| + const GURL& url, |
| + const content::SSLStatus& ssl); |
| + |
| + virtual ~WebsiteSettingsPopupGtk(); |
| + |
| // Layouts the different sections retrieved from the model. |
| void InitContents(); |
| @@ -108,7 +128,7 @@ class WebsiteSettingsPopupGtk : public WebsiteSettingsUI, |
| // The UI translates user actions to specific events and forwards them to the |
| // |presenter_|. The |presenter_| handles these events and updates the UI. |
| - WebsiteSettings* presenter_; |
| + scoped_ptr<WebsiteSettings> presenter_; |
| DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsPopupGtk); |
| }; |