summaryrefslogtreecommitdiffstats
path: root/chrome/browser/content_setting_bubble_model.h
diff options
context:
space:
mode:
authorjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-06 08:48:23 +0000
committerjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-06 08:48:23 +0000
commitf8f69210d233566fddf71b57b093dd16da609ffc (patch)
tree9ed9ffcd865d65c11b11f73ea486efa79af13346 /chrome/browser/content_setting_bubble_model.h
parent0af29d8cedd97d4604619dd4ab2b5e0a0805ecb1 (diff)
downloadchromium_src-f8f69210d233566fddf71b57b093dd16da609ffc.zip
chromium_src-f8f69210d233566fddf71b57b093dd16da609ffc.tar.gz
chromium_src-f8f69210d233566fddf71b57b093dd16da609ffc.tar.bz2
Display an info link in the blocked cookies info bubble.
The link will pop up a dialog that displays the cookies blocked and accessed by the current page. The XIB change adds a link-styled button (cell type HyperlinkButtonCell) below the title and above the horizontal line on the bubble with the text IDS_BLOCKED_COOKIES_INFO. The button action is hooked up to showMoreInfo: in the File's Owner. BUG=45230 TEST=none Review URL: http://codereview.chromium.org/2799012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51656 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/content_setting_bubble_model.h')
-rw-r--r--chrome/browser/content_setting_bubble_model.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/content_setting_bubble_model.h b/chrome/browser/content_setting_bubble_model.h
index 18cf6ac..a8aa744 100644
--- a/chrome/browser/content_setting_bubble_model.h
+++ b/chrome/browser/content_setting_bubble_model.h
@@ -59,6 +59,7 @@ class ContentSettingBubbleModel : public NotificationObserver {
std::vector<DomainList> domain_lists;
std::string manage_link;
std::string clear_link;
+ std::string info_link;
};
const BubbleContent& bubble_content() const { return bubble_content_; }
@@ -72,6 +73,7 @@ class ContentSettingBubbleModel : public NotificationObserver {
virtual void OnPopupClicked(int index) {}
virtual void OnManageLinkClicked() {}
virtual void OnClearLinkClicked() {}
+ virtual void OnInfoLinkClicked() {}
protected:
ContentSettingBubbleModel(TabContents* tab_contents, Profile* profile,
@@ -96,6 +98,9 @@ class ContentSettingBubbleModel : public NotificationObserver {
void set_clear_link(const std::string& link) {
bubble_content_.clear_link = link;
}
+ void set_info_link(const std::string& link) {
+ bubble_content_.info_link = link;
+ }
private:
TabContents* tab_contents_;