Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Side by Side Diff: chrome/browser/banners/app_banner_infobar_delegate_desktop.h

Issue 1520543004: Add method for identifying different InfoBars (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "components/infobars/core/confirm_infobar_delegate.h" 10 #include "components/infobars/core/confirm_infobar_delegate.h"
(...skipping 29 matching lines...) Expand all
40 int event_request_id); 40 int event_request_id);
41 41
42 // ConfirmInfoBarDelegate overrides. 42 // ConfirmInfoBarDelegate overrides.
43 base::string16 GetMessageText() const override; 43 base::string16 GetMessageText() const override;
44 int GetButtons() const override; 44 int GetButtons() const override;
45 base::string16 GetButtonLabel(InfoBarButton button) const override; 45 base::string16 GetButtonLabel(InfoBarButton button) const override;
46 46
47 bool Accept() override; 47 bool Accept() override;
48 48
49 // InfoBarDelegate override. 49 // InfoBarDelegate override.
50 std::string GetIdentifier() const override;
50 void InfoBarDismissed() override; 51 void InfoBarDismissed() override;
51 52
52 protected: 53 protected:
53 AppBannerInfoBarDelegateDesktop( 54 AppBannerInfoBarDelegateDesktop(
54 scoped_refptr<AppBannerDataFetcherDesktop> fetcher, 55 scoped_refptr<AppBannerDataFetcherDesktop> fetcher,
55 const content::Manifest& web_manifest, 56 const content::Manifest& web_manifest,
56 extensions::BookmarkAppHelper* bookmark_app_helper, 57 extensions::BookmarkAppHelper* bookmark_app_helper,
57 int event_request_id); 58 int event_request_id);
58 59
59 private: 60 private:
60 scoped_refptr<AppBannerDataFetcherDesktop> fetcher_; 61 scoped_refptr<AppBannerDataFetcherDesktop> fetcher_;
61 content::Manifest web_manifest_; 62 content::Manifest web_manifest_;
62 extensions::BookmarkAppHelper* bookmark_app_helper_; 63 extensions::BookmarkAppHelper* bookmark_app_helper_;
63 int event_request_id_; 64 int event_request_id_;
64 bool has_user_interaction_; 65 bool has_user_interaction_;
65 66
66 Type GetInfoBarType() const override; 67 Type GetInfoBarType() const override;
67 int GetIconId() const override; 68 int GetIconId() const override;
68 gfx::VectorIconId GetVectorIconId() const override; 69 gfx::VectorIconId GetVectorIconId() const override;
69 70
70 DISALLOW_COPY_AND_ASSIGN(AppBannerInfoBarDelegateDesktop); 71 DISALLOW_COPY_AND_ASSIGN(AppBannerInfoBarDelegateDesktop);
71 }; 72 };
72 73
73 } // namespace banners 74 } // namespace banners
74 75
75 #endif // CHROME_BROWSER_BANNERS_APP_BANNER_INFOBAR_DELEGATE_DESKTOP_H_ 76 #endif // CHROME_BROWSER_BANNERS_APP_BANNER_INFOBAR_DELEGATE_DESKTOP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698