OLD | NEW |
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 "components/infobars/core/simple_alert_infobar_delegate.h" | 5 #include "components/infobars/core/simple_alert_infobar_delegate.h" |
6 | 6 |
7 #include "components/infobars/core/infobar.h" | 7 #include "components/infobars/core/infobar.h" |
8 #include "components/infobars/core/infobar_manager.h" | 8 #include "components/infobars/core/infobar_manager.h" |
9 #include "third_party/skia/include/core/SkBitmap.h" | 9 #include "third_party/skia/include/core/SkBitmap.h" |
10 | 10 |
(...skipping 18 matching lines...) Expand all Loading... |
29 auto_expire_(auto_expire) { | 29 auto_expire_(auto_expire) { |
30 } | 30 } |
31 | 31 |
32 SimpleAlertInfoBarDelegate::~SimpleAlertInfoBarDelegate() { | 32 SimpleAlertInfoBarDelegate::~SimpleAlertInfoBarDelegate() { |
33 } | 33 } |
34 | 34 |
35 int SimpleAlertInfoBarDelegate::GetIconID() const { | 35 int SimpleAlertInfoBarDelegate::GetIconID() const { |
36 return icon_id_; | 36 return icon_id_; |
37 } | 37 } |
38 | 38 |
39 bool SimpleAlertInfoBarDelegate::ShouldExpireInternal( | 39 bool SimpleAlertInfoBarDelegate::ShouldExpire( |
40 const NavigationDetails& details) const { | 40 const NavigationDetails& details) const { |
41 return auto_expire_ && ConfirmInfoBarDelegate::ShouldExpireInternal(details); | 41 return auto_expire_ && ConfirmInfoBarDelegate::ShouldExpire(details); |
42 } | 42 } |
43 | 43 |
44 base::string16 SimpleAlertInfoBarDelegate::GetMessageText() const { | 44 base::string16 SimpleAlertInfoBarDelegate::GetMessageText() const { |
45 return message_; | 45 return message_; |
46 } | 46 } |
47 | 47 |
48 int SimpleAlertInfoBarDelegate::GetButtons() const { | 48 int SimpleAlertInfoBarDelegate::GetButtons() const { |
49 return BUTTON_NONE; | 49 return BUTTON_NONE; |
50 } | 50 } |
OLD | NEW |