OLD | NEW |
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 ~OutdatedPluginInfoBarDelegate() override; | 46 ~OutdatedPluginInfoBarDelegate() override; |
47 | 47 |
48 // ConfirmInfoBarDelegate: | 48 // ConfirmInfoBarDelegate: |
49 void InfoBarDismissed() override; | 49 void InfoBarDismissed() override; |
50 int GetIconId() const override; | 50 int GetIconId() const override; |
51 base::string16 GetMessageText() const override; | 51 base::string16 GetMessageText() const override; |
52 base::string16 GetButtonLabel(InfoBarButton button) const override; | 52 base::string16 GetButtonLabel(InfoBarButton button) const override; |
53 bool Accept() override; | 53 bool Accept() override; |
54 bool Cancel() override; | 54 bool Cancel() override; |
55 base::string16 GetLinkText() const override; | 55 base::string16 GetLinkText() const override; |
56 bool LinkClicked(WindowOpenDisposition disposition) override; | 56 GURL GetLinkURL() const override; |
57 | 57 |
58 // PluginInstallerObserver: | 58 // PluginInstallerObserver: |
59 void DownloadStarted() override; | 59 void DownloadStarted() override; |
60 void DownloadError(const std::string& message) override; | 60 void DownloadError(const std::string& message) override; |
61 void DownloadCancelled() override; | 61 void DownloadCancelled() override; |
62 void DownloadFinished() override; | 62 void DownloadFinished() override; |
63 | 63 |
64 // WeakPluginInstallerObserver: | 64 // WeakPluginInstallerObserver: |
65 void OnlyWeakObserversLeft() override; | 65 void OnlyWeakObserversLeft() override; |
66 | 66 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 PluginMetroModeInfoBarDelegate(Mode mode, const base::string16& name); | 99 PluginMetroModeInfoBarDelegate(Mode mode, const base::string16& name); |
100 ~PluginMetroModeInfoBarDelegate() override; | 100 ~PluginMetroModeInfoBarDelegate() override; |
101 | 101 |
102 // ConfirmInfoBarDelegate: | 102 // ConfirmInfoBarDelegate: |
103 int GetIconId() const override; | 103 int GetIconId() const override; |
104 base::string16 GetMessageText() const override; | 104 base::string16 GetMessageText() const override; |
105 int GetButtons() const override; | 105 int GetButtons() const override; |
106 base::string16 GetButtonLabel(InfoBarButton button) const override; | 106 base::string16 GetButtonLabel(InfoBarButton button) const override; |
107 bool Accept() override; | 107 bool Accept() override; |
108 base::string16 GetLinkText() const override; | 108 base::string16 GetLinkText() const override; |
109 bool LinkClicked(WindowOpenDisposition disposition) override; | 109 GURL GetLinkURL() const override; |
110 | 110 |
111 const Mode mode_; | 111 const Mode mode_; |
112 const base::string16 name_; | 112 const base::string16 name_; |
113 | 113 |
114 DISALLOW_COPY_AND_ASSIGN(PluginMetroModeInfoBarDelegate); | 114 DISALLOW_COPY_AND_ASSIGN(PluginMetroModeInfoBarDelegate); |
115 }; | 115 }; |
116 #endif // defined(OS_WIN) | 116 #endif // defined(OS_WIN) |
117 | 117 |
118 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_INFOBAR_DELEGATES_H_ | 118 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_INFOBAR_DELEGATES_H_ |
OLD | NEW |