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

Side by Side Diff: chrome/browser/ui/startup/default_browser_infobar_delegate.h

Issue 2537453004: Restore default browser infobar icon to full-color Chrome icon. (Closed)
Patch Set: Fix header. Created 4 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
« no previous file with comments | « no previous file | chrome/browser/ui/startup/default_browser_infobar_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_UI_STARTUP_DEFAULT_BROWSER_INFOBAR_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_STARTUP_DEFAULT_BROWSER_INFOBAR_DELEGATE_H_
6 #define CHROME_BROWSER_UI_STARTUP_DEFAULT_BROWSER_INFOBAR_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_STARTUP_DEFAULT_BROWSER_INFOBAR_DELEGATE_H_
7 7
8 #include "base/feature_list.h" 8 #include "base/feature_list.h"
9 #include "chrome/browser/infobars/infobar_service.h" 9 #include "chrome/browser/infobars/infobar_service.h"
10 #include "chrome/browser/shell_integration.h" 10 #include "chrome/browser/shell_integration.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 // The user explicitly closed the infobar. 49 // The user explicitly closed the infobar.
50 DISMISS_INFO_BAR = 3, 50 DISMISS_INFO_BAR = 3,
51 NUM_INFO_BAR_USER_INTERACTION_TYPES 51 NUM_INFO_BAR_USER_INTERACTION_TYPES
52 }; 52 };
53 53
54 void AllowExpiry(); 54 void AllowExpiry();
55 55
56 // ConfirmInfoBarDelegate: 56 // ConfirmInfoBarDelegate:
57 Type GetInfoBarType() const override; 57 Type GetInfoBarType() const override;
58 infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override; 58 infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override;
59 gfx::VectorIconId GetVectorIconId() const override; 59 int GetIconId() const override;
60 #if defined(OS_WIN) 60 #if defined(OS_WIN)
61 gfx::Image GetIcon() const override; 61 gfx::Image GetIcon() const override;
62 #endif // defined(OS_WIN) 62 #endif // defined(OS_WIN)
63 bool ShouldExpire(const NavigationDetails& details) const override; 63 bool ShouldExpire(const NavigationDetails& details) const override;
64 void InfoBarDismissed() override; 64 void InfoBarDismissed() override;
65 base::string16 GetMessageText() const override; 65 base::string16 GetMessageText() const override;
66 int GetButtons() const override; 66 int GetButtons() const override;
67 base::string16 GetButtonLabel(InfoBarButton button) const override; 67 base::string16 GetButtonLabel(InfoBarButton button) const override;
68 bool OKButtonTriggersUACPrompt() const override; 68 bool OKButtonTriggersUACPrompt() const override;
69 bool Accept() override; 69 bool Accept() override;
(...skipping 21 matching lines...) Expand all
91 91
92 // Used to delay the expiration of the info-bar. 92 // Used to delay the expiration of the info-bar.
93 base::WeakPtrFactory<DefaultBrowserInfoBarDelegate> weak_factory_; 93 base::WeakPtrFactory<DefaultBrowserInfoBarDelegate> weak_factory_;
94 94
95 DISALLOW_COPY_AND_ASSIGN(DefaultBrowserInfoBarDelegate); 95 DISALLOW_COPY_AND_ASSIGN(DefaultBrowserInfoBarDelegate);
96 }; 96 };
97 97
98 } // namespace chrome 98 } // namespace chrome
99 99
100 #endif // CHROME_BROWSER_UI_STARTUP_DEFAULT_BROWSER_INFOBAR_DELEGATE_H_ 100 #endif // CHROME_BROWSER_UI_STARTUP_DEFAULT_BROWSER_INFOBAR_DELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/startup/default_browser_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698