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( |
| 40 const NavigationDetails& details) const { |
| 41 return auto_expire_ && ConfirmInfoBarDelegate::ShouldExpireInternal(details); |
| 42 } |
| 43 |
39 base::string16 SimpleAlertInfoBarDelegate::GetMessageText() const { | 44 base::string16 SimpleAlertInfoBarDelegate::GetMessageText() const { |
40 return message_; | 45 return message_; |
41 } | 46 } |
42 | 47 |
43 int SimpleAlertInfoBarDelegate::GetButtons() const { | 48 int SimpleAlertInfoBarDelegate::GetButtons() const { |
44 return BUTTON_NONE; | 49 return BUTTON_NONE; |
45 } | 50 } |
46 | |
47 bool SimpleAlertInfoBarDelegate::ShouldExpireInternal( | |
48 const NavigationDetails& details) const { | |
49 return auto_expire_ && ConfirmInfoBarDelegate::ShouldExpireInternal(details); | |
50 } | |
OLD | NEW |