| 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/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 AppBannerInfoBarDelegateDesktop( | 41 AppBannerInfoBarDelegateDesktop( |
| 42 base::WeakPtr<AppBannerManager> weak_manager, | 42 base::WeakPtr<AppBannerManager> weak_manager, |
| 43 extensions::BookmarkAppHelper* bookmark_app_helper, | 43 extensions::BookmarkAppHelper* bookmark_app_helper, |
| 44 const content::Manifest& manifest, | 44 const content::Manifest& manifest, |
| 45 int event_request_id); | 45 int event_request_id); |
| 46 ~AppBannerInfoBarDelegateDesktop() override; | 46 ~AppBannerInfoBarDelegateDesktop() override; |
| 47 | 47 |
| 48 // ConfirmInfoBarDelegate: | 48 // ConfirmInfoBarDelegate: |
| 49 Type GetInfoBarType() const override; | 49 Type GetInfoBarType() const override; |
| 50 infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override; | 50 infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override; |
| 51 gfx::VectorIconId GetVectorIconId() const override; | 51 const gfx::VectorIcon& GetVectorIcon() const override; |
| 52 void InfoBarDismissed() override; | 52 void InfoBarDismissed() override; |
| 53 base::string16 GetMessageText() const override; | 53 base::string16 GetMessageText() const override; |
| 54 int GetButtons() const override; | 54 int GetButtons() const override; |
| 55 base::string16 GetButtonLabel(InfoBarButton button) const override; | 55 base::string16 GetButtonLabel(InfoBarButton button) const override; |
| 56 bool Accept() override; | 56 bool Accept() override; |
| 57 | 57 |
| 58 base::WeakPtr<AppBannerManager> weak_manager_; | 58 base::WeakPtr<AppBannerManager> weak_manager_; |
| 59 extensions::BookmarkAppHelper* bookmark_app_helper_; | 59 extensions::BookmarkAppHelper* bookmark_app_helper_; |
| 60 content::Manifest manifest_; | 60 content::Manifest manifest_; |
| 61 int event_request_id_; | 61 int event_request_id_; |
| 62 bool has_user_interaction_; | 62 bool has_user_interaction_; |
| 63 | 63 |
| 64 DISALLOW_COPY_AND_ASSIGN(AppBannerInfoBarDelegateDesktop); | 64 DISALLOW_COPY_AND_ASSIGN(AppBannerInfoBarDelegateDesktop); |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 } // namespace banners | 67 } // namespace banners |
| 68 | 68 |
| 69 #endif // CHROME_BROWSER_BANNERS_APP_BANNER_INFOBAR_DELEGATE_DESKTOP_H_ | 69 #endif // CHROME_BROWSER_BANNERS_APP_BANNER_INFOBAR_DELEGATE_DESKTOP_H_ |
| OLD | NEW |