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

Side by Side Diff: chrome/browser/api/infobars/simple_alert_infobar_delegate.cc

Issue 10830353: Introduce InfoBarTabService API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments, merge to LKGR Created 8 years, 4 months 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "chrome/browser/api/infobars/simple_alert_infobar_delegate.h" 5 #include "chrome/browser/api/infobars/simple_alert_infobar_delegate.h"
6 6
7 #include "third_party/skia/include/core/SkBitmap.h" 7 #include "third_party/skia/include/core/SkBitmap.h"
8 8
9 SimpleAlertInfoBarDelegate::SimpleAlertInfoBarDelegate( 9 SimpleAlertInfoBarDelegate::SimpleAlertInfoBarDelegate(
10 InfoBarTabHelper* infobar_helper, 10 InfoBarTabService* infobar_service,
11 gfx::Image* icon, 11 gfx::Image* icon,
12 const string16& message, 12 const string16& message,
13 bool auto_expire) 13 bool auto_expire)
14 : ConfirmInfoBarDelegate(infobar_helper), 14 : ConfirmInfoBarDelegate(infobar_service),
15 icon_(icon), 15 icon_(icon),
16 message_(message), 16 message_(message),
17 auto_expire_(auto_expire) { 17 auto_expire_(auto_expire) {
18 } 18 }
19 19
20 SimpleAlertInfoBarDelegate::~SimpleAlertInfoBarDelegate() { 20 SimpleAlertInfoBarDelegate::~SimpleAlertInfoBarDelegate() {
21 } 21 }
22 22
23 gfx::Image* SimpleAlertInfoBarDelegate::GetIcon() const { 23 gfx::Image* SimpleAlertInfoBarDelegate::GetIcon() const {
24 return icon_; 24 return icon_;
25 } 25 }
26 26
27 string16 SimpleAlertInfoBarDelegate::GetMessageText() const { 27 string16 SimpleAlertInfoBarDelegate::GetMessageText() const {
28 return message_; 28 return message_;
29 } 29 }
30 30
31 int SimpleAlertInfoBarDelegate::GetButtons() const { 31 int SimpleAlertInfoBarDelegate::GetButtons() const {
32 return BUTTON_NONE; 32 return BUTTON_NONE;
33 } 33 }
34 34
35 bool SimpleAlertInfoBarDelegate::ShouldExpireInternal( 35 bool SimpleAlertInfoBarDelegate::ShouldExpireInternal(
36 const content::LoadCommittedDetails& details) const { 36 const content::LoadCommittedDetails& details) const {
37 return auto_expire_ && ConfirmInfoBarDelegate::ShouldExpireInternal(details); 37 return auto_expire_ && ConfirmInfoBarDelegate::ShouldExpireInternal(details);
38 } 38 }
OLDNEW
« no previous file with comments | « chrome/browser/api/infobars/simple_alert_infobar_delegate.h ('k') | chrome/browser/autofill/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698