OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_PREVIEWS_PREVIEWS_INFOBAR_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_PREVIEWS_PREVIEWS_INFOBAR_DELEGATE_H_ |
6 #define CHROME_BROWSER_PREVIEWS_PREVIEWS_INFOBAR_DELEGATE_H_ | 6 #define CHROME_BROWSER_PREVIEWS_PREVIEWS_INFOBAR_DELEGATE_H_ |
7 | 7 |
8 #include "components/infobars/core/confirm_infobar_delegate.h" | 8 #include "components/infobars/core/confirm_infobar_delegate.h" |
9 | 9 |
10 namespace content { | 10 namespace content { |
(...skipping 22 matching lines...) Expand all Loading... |
33 PreviewsInfoBarType infobar_type); | 33 PreviewsInfoBarType infobar_type); |
34 | 34 |
35 private: | 35 private: |
36 PreviewsInfoBarDelegate(content::WebContents* web_contents, | 36 PreviewsInfoBarDelegate(content::WebContents* web_contents, |
37 PreviewsInfoBarType infobar_type); | 37 PreviewsInfoBarType infobar_type); |
38 | 38 |
39 // ConfirmInfoBarDelegate overrides: | 39 // ConfirmInfoBarDelegate overrides: |
40 infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override; | 40 infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override; |
41 int GetIconId() const override; | 41 int GetIconId() const override; |
42 bool ShouldExpire(const NavigationDetails& details) const override; | 42 bool ShouldExpire(const NavigationDetails& details) const override; |
| 43 void InfoBarDismissed() override; |
43 base::string16 GetMessageText() const override; | 44 base::string16 GetMessageText() const override; |
44 int GetButtons() const override; | 45 int GetButtons() const override; |
45 base::string16 GetLinkText() const override; | 46 base::string16 GetLinkText() const override; |
46 bool LinkClicked(WindowOpenDisposition disposition) override; | 47 bool LinkClicked(WindowOpenDisposition disposition) override; |
47 | 48 |
48 PreviewsInfoBarType infobar_type_; | 49 PreviewsInfoBarType infobar_type_; |
49 | 50 |
50 DISALLOW_COPY_AND_ASSIGN(PreviewsInfoBarDelegate); | 51 DISALLOW_COPY_AND_ASSIGN(PreviewsInfoBarDelegate); |
51 }; | 52 }; |
52 | 53 |
53 #endif // CHROME_BROWSER_PREVIEWS_PREVIEWS_INFOBAR_DELEGATE_H_ | 54 #endif // CHROME_BROWSER_PREVIEWS_PREVIEWS_INFOBAR_DELEGATE_H_ |
OLD | NEW |