diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-26 22:45:11 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-26 22:45:11 +0000 |
commit | eac6fefd4eb776d0a71d0841ab69e4aeee394662 (patch) | |
tree | 84665d9d24ee4a34448976db6c06eb5ceabd6d56 /chrome/browser/plugins/plugin_infobar_delegates.h | |
parent | b21aa2ce49740e51cbf46ceea0ca1309e73593f7 (diff) | |
download | chromium_src-eac6fefd4eb776d0a71d0841ab69e4aeee394662.zip chromium_src-eac6fefd4eb776d0a71d0841ab69e4aeee394662.tar.gz chromium_src-eac6fefd4eb776d0a71d0841ab69e4aeee394662.tar.bz2 |
For the Metro mode infobar, move various variables from the caller side to the
infobar side. This will make a subsequent infobar creation change patch I'm
working on much easier. Besides, it's not really important for the caller to
know these sorts of low-level details.
BUG=none
TEST=none
Review URL: https://codereview.chromium.org/11667015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174640 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/plugins/plugin_infobar_delegates.h')
-rw-r--r-- | chrome/browser/plugins/plugin_infobar_delegates.h | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/chrome/browser/plugins/plugin_infobar_delegates.h b/chrome/browser/plugins/plugin_infobar_delegates.h index 45b0af3..62e0d84 100644 --- a/chrome/browser/plugins/plugin_infobar_delegates.h +++ b/chrome/browser/plugins/plugin_infobar_delegates.h @@ -185,13 +185,18 @@ class PluginInstallerInfoBarDelegate : public ConfirmInfoBarDelegate, #if defined(OS_WIN) class PluginMetroModeInfoBarDelegate : public ConfirmInfoBarDelegate { public: - // Shows an infobar asking the user to switch to desktop chrome if they - // want to use the plugin. + // The infobar can be used for two purposes: to inform the user about a + // missing plugin or to note that a plugin only works in desktop mode. These + // purposes require different messages, buttons, etc. + enum Mode { + MISSING_PLUGIN, + DESKTOP_MODE_REQUIRED, + }; + PluginMetroModeInfoBarDelegate(InfoBarService* infobar_service, - const string16& plugin_name, - const string16& ok_label, - const GURL& learn_more_url, - bool show_dont_ask_again_button); + Mode mode, + const string16& name); + private: virtual ~PluginMetroModeInfoBarDelegate(); @@ -205,10 +210,8 @@ class PluginMetroModeInfoBarDelegate : public ConfirmInfoBarDelegate { virtual string16 GetLinkText() const OVERRIDE; virtual bool LinkClicked(WindowOpenDisposition disposition) OVERRIDE; - const string16 message_; - const string16 ok_label_; - const GURL learn_more_url_; - const bool show_dont_ask_again_button_; + const Mode mode_; + const string16 name_; DISALLOW_COPY_AND_ASSIGN(PluginMetroModeInfoBarDelegate); }; |