Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(992)

Unified Diff: chrome/browser/ui/gtk/website_settings_popup_gtk.h

Issue 10440092: Remove any platform specific code from the chrome/browser/website_settings.* . (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sort includes Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/gtk/browser_window_gtk.cc ('k') | chrome/browser/ui/gtk/website_settings_popup_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..7b558435eefde0a583cc2b5a96e11875710743b3 100644
--- a/chrome/browser/ui/gtk/website_settings_popup_gtk.h
+++ b/chrome/browser/ui/gtk/website_settings_popup_gtk.h
@@ -6,31 +6,49 @@
#define CHROME_BROWSER_UI_GTK_WEBSITE_SETTINGS_POPUP_GTK_H_
#pragma once
-#include "chrome/browser/ui/website_settings_ui.h"
-
#include <gtk/gtk.h>
+#include "base/basictypes.h"
+#include "base/compiler_specific.h"
+#include "base/memory/scoped_ptr.h"
#include "chrome/browser/ui/gtk/bubble/bubble_gtk.h"
+#include "chrome/browser/ui/website_settings/website_settings_ui.h"
class Browser;
-class BubbleGtk;
class GtkThemeService;
+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.
+namespace content {
+struct SSLStatus;
+}
+
+// GTK implementation of the website settings UI.
class WebsiteSettingsPopupGtk : public WebsiteSettingsUI,
public BubbleDelegateGtk {
public:
+ // 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);
+
+ private:
WebsiteSettingsPopupGtk(gfx::NativeWindow parent,
Profile* profile,
- TabContentsWrapper* wrapper);
- virtual ~WebsiteSettingsPopupGtk();
+ TabContentsWrapper* 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;
virtual void SetPermissionInfo(
const PermissionInfoList& permission_info_list) OVERRIDE;
@@ -40,7 +58,9 @@ class WebsiteSettingsPopupGtk : public WebsiteSettingsUI,
// BubbleDelegateGtk implementation.
virtual void BubbleClosing(BubbleGtk* bubble, bool closed_by_escape) OVERRIDE;
- private:
+
+ 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);
};
« no previous file with comments | « chrome/browser/ui/gtk/browser_window_gtk.cc ('k') | chrome/browser/ui/gtk/website_settings_popup_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698