| 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 }; | 110 }; |
| 111 | 111 |
| 112 // Creates a metro mode infobar and delegate and adds the infobar to | 112 // Creates a metro mode infobar and delegate and adds the infobar to |
| 113 // |infobar_service|. | 113 // |infobar_service|. |
| 114 static void Create(InfoBarService* infobar_service, | 114 static void Create(InfoBarService* infobar_service, |
| 115 Mode mode, | 115 Mode mode, |
| 116 const base::string16& name); | 116 const base::string16& name); |
| 117 | 117 |
| 118 private: | 118 private: |
| 119 PluginMetroModeInfoBarDelegate(Mode mode, const base::string16& name); | 119 PluginMetroModeInfoBarDelegate(Mode mode, const base::string16& name); |
| 120 virtual ~PluginMetroModeInfoBarDelegate(); | 120 ~PluginMetroModeInfoBarDelegate() override; |
| 121 | 121 |
| 122 // ConfirmInfoBarDelegate: | 122 // ConfirmInfoBarDelegate: |
| 123 virtual int GetIconID() const override; | 123 int GetIconID() const override; |
| 124 virtual base::string16 GetMessageText() const override; | 124 base::string16 GetMessageText() const override; |
| 125 virtual int GetButtons() const override; | 125 int GetButtons() const override; |
| 126 virtual base::string16 GetButtonLabel(InfoBarButton button) const override; | 126 base::string16 GetButtonLabel(InfoBarButton button) const override; |
| 127 virtual bool Accept() override; | 127 bool Accept() override; |
| 128 virtual base::string16 GetLinkText() const override; | 128 base::string16 GetLinkText() const override; |
| 129 virtual bool LinkClicked(WindowOpenDisposition disposition) override; | 129 bool LinkClicked(WindowOpenDisposition disposition) override; |
| 130 | 130 |
| 131 const Mode mode_; | 131 const Mode mode_; |
| 132 const base::string16 name_; | 132 const base::string16 name_; |
| 133 | 133 |
| 134 DISALLOW_COPY_AND_ASSIGN(PluginMetroModeInfoBarDelegate); | 134 DISALLOW_COPY_AND_ASSIGN(PluginMetroModeInfoBarDelegate); |
| 135 }; | 135 }; |
| 136 #endif // defined(OS_WIN) | 136 #endif // defined(OS_WIN) |
| 137 | 137 |
| 138 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_INFOBAR_DELEGATES_H_ | 138 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_INFOBAR_DELEGATES_H_ |
| OLD | NEW |