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

Side by Side Diff: chrome/browser/plugins/plugin_infobar_delegates.h

Issue 1584573004: Remove Metro pinning, and relaunch menu items and strings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_PLUGINS_PLUGIN_INFOBAR_DELEGATES_H_ 5 #ifndef CHROME_BROWSER_PLUGINS_PLUGIN_INFOBAR_DELEGATES_H_
6 #define CHROME_BROWSER_PLUGINS_PLUGIN_INFOBAR_DELEGATES_H_ 6 #define CHROME_BROWSER_PLUGINS_PLUGIN_INFOBAR_DELEGATES_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 std::string identifier_; 74 std::string identifier_;
75 75
76 scoped_ptr<PluginMetadata> plugin_metadata_; 76 scoped_ptr<PluginMetadata> plugin_metadata_;
77 77
78 base::string16 message_; 78 base::string16 message_;
79 79
80 DISALLOW_COPY_AND_ASSIGN(OutdatedPluginInfoBarDelegate); 80 DISALLOW_COPY_AND_ASSIGN(OutdatedPluginInfoBarDelegate);
81 }; 81 };
82 #endif // defined(ENABLE_PLUGIN_INSTALLATION) 82 #endif // defined(ENABLE_PLUGIN_INSTALLATION)
83 83
84 #if defined(OS_WIN)
85 class PluginMetroModeInfoBarDelegate : public ConfirmInfoBarDelegate {
86 public:
87 // The infobar can be used for two purposes: to inform the user about a
88 // missing plugin or to note that a plugin only works in desktop mode. These
89 // purposes require different messages, buttons, etc.
90 enum Mode {
91 MISSING_PLUGIN,
92 DESKTOP_MODE_REQUIRED,
93 };
94
95 // Creates a metro mode infobar and delegate and adds the infobar to
96 // |infobar_service|.
97 static void Create(InfoBarService* infobar_service,
98 Mode mode,
99 const base::string16& name);
100
101 private:
102 PluginMetroModeInfoBarDelegate(Mode mode, const base::string16& name);
103 ~PluginMetroModeInfoBarDelegate() override;
104
105 // ConfirmInfoBarDelegate:
106 infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override;
107 int GetIconId() const override;
108 base::string16 GetMessageText() const override;
109 int GetButtons() const override;
110 base::string16 GetButtonLabel(InfoBarButton button) const override;
111 bool Accept() override;
112 base::string16 GetLinkText() const override;
113 GURL GetLinkURL() const override;
114
115 const Mode mode_;
116 const base::string16 name_;
117
118 DISALLOW_COPY_AND_ASSIGN(PluginMetroModeInfoBarDelegate);
119 };
120 #endif // defined(OS_WIN)
121
122 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_INFOBAR_DELEGATES_H_ 84 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_INFOBAR_DELEGATES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698