summaryrefslogtreecommitdiffstats
path: root/chrome/browser/blocked_popup_container.h
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-07 21:31:39 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-07 21:31:39 +0000
commit395f9295b3e370746846dbe6073a0d43ab7e4af5 (patch)
tree2b505a988e91b4700268aaba2cdb9601c9122998 /chrome/browser/blocked_popup_container.h
parent91ed49a3f98ff91be98d786f44da18d4bf182a32 (diff)
downloadchromium_src-395f9295b3e370746846dbe6073a0d43ab7e4af5.zip
chromium_src-395f9295b3e370746846dbe6073a0d43ab7e4af5.tar.gz
chromium_src-395f9295b3e370746846dbe6073a0d43ab7e4af5.tar.bz2
GTK Themes: Theme the popup notification.
TEST=Open popuptest.com in one tab and anything else in another. Switch between GTK theme and normal. Theme of blocked popup container should change, even when not the active tab. http://crbug.com/13967 Review URL: http://codereview.chromium.org/149277 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20085 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/blocked_popup_container.h')
-rw-r--r--chrome/browser/blocked_popup_container.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/chrome/browser/blocked_popup_container.h b/chrome/browser/blocked_popup_container.h
index c632438..ebffd23 100644
--- a/chrome/browser/blocked_popup_container.h
+++ b/chrome/browser/blocked_popup_container.h
@@ -81,6 +81,9 @@ class BlockedPopupContainer : public TabContentsDelegate,
static void RegisterUserPrefs(PrefService* prefs);
+ // Returns the profile associated with the Browser this container exists in.
+ Profile* profile() const { return profile_; }
+
// Sets this BlockedPopupContainer's view. BlockedPopupContainer now owns
// |view| and is responsible for calling Destroy() on it.
void set_view(BlockedPopupContainerView* view) { view_ = view; }
@@ -229,7 +232,7 @@ class BlockedPopupContainer : public TabContentsDelegate,
typedef std::set<std::string> Whitelist;
// Creates a container for a certain TabContents:
- BlockedPopupContainer(TabContents* owner, PrefService* prefs);
+ BlockedPopupContainer(TabContents* owner, Profile* profile);
// Either hides the view if there are no popups, or updates the label if
// there are.
@@ -267,6 +270,9 @@ class BlockedPopupContainer : public TabContentsDelegate,
// Our platform specific view.
BlockedPopupContainerView* view_;
+ // The profile for the browser associated with the container.
+ Profile* profile_;
+
DISALLOW_IMPLICIT_CONSTRUCTORS(BlockedPopupContainer);
};