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 "base/macros.h" | 9 #include "base/macros.h" |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
(...skipping 30 matching lines...) Expand all Loading... |
41 scoped_ptr<PluginMetadata> plugin_metadata, | 41 scoped_ptr<PluginMetadata> plugin_metadata, |
42 const base::string16& message); | 42 const base::string16& message); |
43 | 43 |
44 private: | 44 private: |
45 OutdatedPluginInfoBarDelegate(PluginInstaller* installer, | 45 OutdatedPluginInfoBarDelegate(PluginInstaller* installer, |
46 scoped_ptr<PluginMetadata> metadata, | 46 scoped_ptr<PluginMetadata> metadata, |
47 const base::string16& message); | 47 const base::string16& message); |
48 ~OutdatedPluginInfoBarDelegate() override; | 48 ~OutdatedPluginInfoBarDelegate() override; |
49 | 49 |
50 // ConfirmInfoBarDelegate: | 50 // ConfirmInfoBarDelegate: |
| 51 infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override; |
51 void InfoBarDismissed() override; | 52 void InfoBarDismissed() override; |
52 int GetIconId() const override; | 53 int GetIconId() const override; |
53 base::string16 GetMessageText() const override; | 54 base::string16 GetMessageText() const override; |
54 base::string16 GetButtonLabel(InfoBarButton button) const override; | 55 base::string16 GetButtonLabel(InfoBarButton button) const override; |
55 bool Accept() override; | 56 bool Accept() override; |
56 bool Cancel() override; | 57 bool Cancel() override; |
57 base::string16 GetLinkText() const override; | 58 base::string16 GetLinkText() const override; |
58 GURL GetLinkURL() const override; | 59 GURL GetLinkURL() const override; |
59 | 60 |
60 // PluginInstallerObserver: | 61 // PluginInstallerObserver: |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 // |infobar_service|. | 96 // |infobar_service|. |
96 static void Create(InfoBarService* infobar_service, | 97 static void Create(InfoBarService* infobar_service, |
97 Mode mode, | 98 Mode mode, |
98 const base::string16& name); | 99 const base::string16& name); |
99 | 100 |
100 private: | 101 private: |
101 PluginMetroModeInfoBarDelegate(Mode mode, const base::string16& name); | 102 PluginMetroModeInfoBarDelegate(Mode mode, const base::string16& name); |
102 ~PluginMetroModeInfoBarDelegate() override; | 103 ~PluginMetroModeInfoBarDelegate() override; |
103 | 104 |
104 // ConfirmInfoBarDelegate: | 105 // ConfirmInfoBarDelegate: |
| 106 infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override; |
105 int GetIconId() const override; | 107 int GetIconId() const override; |
106 base::string16 GetMessageText() const override; | 108 base::string16 GetMessageText() const override; |
107 int GetButtons() const override; | 109 int GetButtons() const override; |
108 base::string16 GetButtonLabel(InfoBarButton button) const override; | 110 base::string16 GetButtonLabel(InfoBarButton button) const override; |
109 bool Accept() override; | 111 bool Accept() override; |
110 base::string16 GetLinkText() const override; | 112 base::string16 GetLinkText() const override; |
111 GURL GetLinkURL() const override; | 113 GURL GetLinkURL() const override; |
112 | 114 |
113 const Mode mode_; | 115 const Mode mode_; |
114 const base::string16 name_; | 116 const base::string16 name_; |
115 | 117 |
116 DISALLOW_COPY_AND_ASSIGN(PluginMetroModeInfoBarDelegate); | 118 DISALLOW_COPY_AND_ASSIGN(PluginMetroModeInfoBarDelegate); |
117 }; | 119 }; |
118 #endif // defined(OS_WIN) | 120 #endif // defined(OS_WIN) |
119 | 121 |
120 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_INFOBAR_DELEGATES_H_ | 122 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_INFOBAR_DELEGATES_H_ |
OLD | NEW |