OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_BANNERS_APP_BANNER_INFOBAR_DELEGATE_DESKTOP_H_ | 5 #ifndef CHROME_BROWSER_BANNERS_APP_BANNER_INFOBAR_DELEGATE_DESKTOP_H_ |
6 #define CHROME_BROWSER_BANNERS_APP_BANNER_INFOBAR_DELEGATE_DESKTOP_H_ | 6 #define CHROME_BROWSER_BANNERS_APP_BANNER_INFOBAR_DELEGATE_DESKTOP_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
(...skipping 30 matching lines...) Expand all Loading... |
41 int event_request_id); | 41 int event_request_id); |
42 | 42 |
43 // ConfirmInfoBarDelegate overrides. | 43 // ConfirmInfoBarDelegate overrides. |
44 base::string16 GetMessageText() const override; | 44 base::string16 GetMessageText() const override; |
45 int GetButtons() const override; | 45 int GetButtons() const override; |
46 base::string16 GetButtonLabel(InfoBarButton button) const override; | 46 base::string16 GetButtonLabel(InfoBarButton button) const override; |
47 | 47 |
48 bool Accept() override; | 48 bool Accept() override; |
49 | 49 |
50 // InfoBarDelegate override. | 50 // InfoBarDelegate override. |
| 51 infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override; |
51 void InfoBarDismissed() override; | 52 void InfoBarDismissed() override; |
52 | 53 |
53 protected: | 54 protected: |
54 AppBannerInfoBarDelegateDesktop( | 55 AppBannerInfoBarDelegateDesktop( |
55 scoped_refptr<AppBannerDataFetcherDesktop> fetcher, | 56 scoped_refptr<AppBannerDataFetcherDesktop> fetcher, |
56 const content::Manifest& web_manifest, | 57 const content::Manifest& web_manifest, |
57 extensions::BookmarkAppHelper* bookmark_app_helper, | 58 extensions::BookmarkAppHelper* bookmark_app_helper, |
58 int event_request_id); | 59 int event_request_id); |
59 | 60 |
60 private: | 61 private: |
61 scoped_refptr<AppBannerDataFetcherDesktop> fetcher_; | 62 scoped_refptr<AppBannerDataFetcherDesktop> fetcher_; |
62 content::Manifest web_manifest_; | 63 content::Manifest web_manifest_; |
63 extensions::BookmarkAppHelper* bookmark_app_helper_; | 64 extensions::BookmarkAppHelper* bookmark_app_helper_; |
64 int event_request_id_; | 65 int event_request_id_; |
65 bool has_user_interaction_; | 66 bool has_user_interaction_; |
66 | 67 |
67 Type GetInfoBarType() const override; | 68 Type GetInfoBarType() const override; |
68 int GetIconId() const override; | 69 int GetIconId() const override; |
69 gfx::VectorIconId GetVectorIconId() const override; | 70 gfx::VectorIconId GetVectorIconId() const override; |
70 | 71 |
71 DISALLOW_COPY_AND_ASSIGN(AppBannerInfoBarDelegateDesktop); | 72 DISALLOW_COPY_AND_ASSIGN(AppBannerInfoBarDelegateDesktop); |
72 }; | 73 }; |
73 | 74 |
74 } // namespace banners | 75 } // namespace banners |
75 | 76 |
76 #endif // CHROME_BROWSER_BANNERS_APP_BANNER_INFOBAR_DELEGATE_DESKTOP_H_ | 77 #endif // CHROME_BROWSER_BANNERS_APP_BANNER_INFOBAR_DELEGATE_DESKTOP_H_ |
OLD | NEW |