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

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

Issue 1361253002: Separate the URL of an infobar link with clicking on it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fit Created 5 years, 3 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 "components/infobars/core/confirm_infobar_delegate.h" 9 #include "components/infobars/core/confirm_infobar_delegate.h"
10 #include "url/gurl.h" 10 #include "url/gurl.h"
(...skipping 20 matching lines...) Expand all
31 bool LinkClicked(WindowOpenDisposition disposition) override; 31 bool LinkClicked(WindowOpenDisposition disposition) override;
32 32
33 virtual std::string GetLearnMoreURL() const = 0; 33 virtual std::string GetLearnMoreURL() const = 0;
34 34
35 void LoadBlockedPlugins(); 35 void LoadBlockedPlugins();
36 36
37 private: 37 private:
38 // ConfirmInfoBarDelegate: 38 // ConfirmInfoBarDelegate:
39 int GetIconId() const override; 39 int GetIconId() const override;
40 base::string16 GetLinkText() const override; 40 base::string16 GetLinkText() const override;
41 GURL GetLinkURL() const override;
41 42
42 std::string identifier_; 43 std::string identifier_;
43 44
44 DISALLOW_COPY_AND_ASSIGN(PluginInfoBarDelegate); 45 DISALLOW_COPY_AND_ASSIGN(PluginInfoBarDelegate);
45 }; 46 };
46 47
47 #if defined(ENABLE_PLUGIN_INSTALLATION) 48 #if defined(ENABLE_PLUGIN_INSTALLATION)
48 // Infobar that's shown when a plugin is out of date. 49 // Infobar that's shown when a plugin is out of date.
49 class OutdatedPluginInfoBarDelegate : public PluginInfoBarDelegate, 50 class OutdatedPluginInfoBarDelegate : public PluginInfoBarDelegate,
50 public WeakPluginInstallerObserver { 51 public WeakPluginInstallerObserver {
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 PluginMetroModeInfoBarDelegate(Mode mode, const base::string16& name); 120 PluginMetroModeInfoBarDelegate(Mode mode, const base::string16& name);
120 ~PluginMetroModeInfoBarDelegate() override; 121 ~PluginMetroModeInfoBarDelegate() override;
121 122
122 // ConfirmInfoBarDelegate: 123 // ConfirmInfoBarDelegate:
123 int GetIconId() const override; 124 int GetIconId() const override;
124 base::string16 GetMessageText() const override; 125 base::string16 GetMessageText() const override;
125 int GetButtons() const override; 126 int GetButtons() const override;
126 base::string16 GetButtonLabel(InfoBarButton button) const override; 127 base::string16 GetButtonLabel(InfoBarButton button) const override;
127 bool Accept() override; 128 bool Accept() override;
128 base::string16 GetLinkText() const override; 129 base::string16 GetLinkText() const override;
130 GURL GetLinkURL() const override;
129 bool LinkClicked(WindowOpenDisposition disposition) override; 131 bool LinkClicked(WindowOpenDisposition disposition) override;
130 132
131 const Mode mode_; 133 const Mode mode_;
132 const base::string16 name_; 134 const base::string16 name_;
133 135
134 DISALLOW_COPY_AND_ASSIGN(PluginMetroModeInfoBarDelegate); 136 DISALLOW_COPY_AND_ASSIGN(PluginMetroModeInfoBarDelegate);
135 }; 137 };
136 #endif // defined(OS_WIN) 138 #endif // defined(OS_WIN)
137 139
138 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_INFOBAR_DELEGATES_H_ 140 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_INFOBAR_DELEGATES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698