summaryrefslogtreecommitdiffstats
path: root/chrome/browser/content_setting_bubble_model.h
diff options
context:
space:
mode:
authorbauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-03 08:22:21 +0000
committerbauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-03 08:22:21 +0000
commit97c5c596e4b649651fbef56875e125c06acb0f90 (patch)
tree3acba85143369eacd72006d383e5e198a59f9c7a /chrome/browser/content_setting_bubble_model.h
parent7a13e7926699ad5d03f2d6e121b7bdb68ca05680 (diff)
downloadchromium_src-97c5c596e4b649651fbef56875e125c06acb0f90.zip
chromium_src-97c5c596e4b649651fbef56875e125c06acb0f90.tar.gz
chromium_src-97c5c596e4b649651fbef56875e125c06acb0f90.tar.bz2
Add "Load all plugins on this page" button to blocked plugins bubble if click-to-play is enabled.
Screenshot: http://imgur.com/ZKsQB.png XIB changes: Add a rounded rect button hooked up to |loadAllPlugins:| in the File's Owner and referenced by its |loadAllPluginsButton_| outlet, wrapped in a GTMWidthBasedTweaker. BUG=49677 TEST=ContentSettingBubbleModelTest.* Review URL: http://codereview.chromium.org/3015036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54720 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/content_setting_bubble_model.h')
-rw-r--r--chrome/browser/content_setting_bubble_model.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/browser/content_setting_bubble_model.h b/chrome/browser/content_setting_bubble_model.h
index fd56ef8..3d7c08a 100644
--- a/chrome/browser/content_setting_bubble_model.h
+++ b/chrome/browser/content_setting_bubble_model.h
@@ -61,6 +61,8 @@ class ContentSettingBubbleModel : public NotificationObserver {
std::string manage_link;
std::string clear_link;
std::string info_link;
+ std::string load_plugins_link_title;
+ bool load_plugins_link_enabled;
};
const BubbleContent& bubble_content() const { return bubble_content_; }
@@ -75,6 +77,7 @@ class ContentSettingBubbleModel : public NotificationObserver {
virtual void OnManageLinkClicked() {}
virtual void OnClearLinkClicked() {}
virtual void OnInfoLinkClicked() {}
+ virtual void OnLoadPluginsLinkClicked() {}
protected:
ContentSettingBubbleModel(TabContents* tab_contents, Profile* profile,
@@ -102,6 +105,12 @@ class ContentSettingBubbleModel : public NotificationObserver {
void set_info_link(const std::string& link) {
bubble_content_.info_link = link;
}
+ void set_load_plugins_link_title(const std::string& title) {
+ bubble_content_.load_plugins_link_title = title;
+ }
+ void set_load_plugins_link_enabled(bool enabled) {
+ bubble_content_.load_plugins_link_enabled = enabled;
+ }
private:
TabContents* tab_contents_;