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

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

Issue 190063006: Infobar Componentization Proof of Concept (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: minor fixes Created 6 years, 9 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
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/infobars/simple_alert_infobar_delegate.h" 5 #include "chrome/browser/infobars/simple_alert_infobar_delegate.h"
6 6
7 #include "chrome/browser/infobars/infobar.h" 7 #include "chrome/browser/infobars/infobar.h"
8 #include "chrome/browser/infobars/infobar_service.h" 8 #include "chrome/browser/infobars/infobar_service.h"
9 #include "third_party/skia/include/core/SkBitmap.h" 9 #include "third_party/skia/include/core/SkBitmap.h"
10 10
(...skipping 26 matching lines...) Expand all
37 37
38 base::string16 SimpleAlertInfoBarDelegate::GetMessageText() const { 38 base::string16 SimpleAlertInfoBarDelegate::GetMessageText() const {
39 return message_; 39 return message_;
40 } 40 }
41 41
42 int SimpleAlertInfoBarDelegate::GetButtons() const { 42 int SimpleAlertInfoBarDelegate::GetButtons() const {
43 return BUTTON_NONE; 43 return BUTTON_NONE;
44 } 44 }
45 45
46 bool SimpleAlertInfoBarDelegate::ShouldExpireInternal( 46 bool SimpleAlertInfoBarDelegate::ShouldExpireInternal(
47 const content::LoadCommittedDetails& details) const { 47 const NavigationDetails& details) const {
48 return auto_expire_ && ConfirmInfoBarDelegate::ShouldExpireInternal(details); 48 return auto_expire_ && ConfirmInfoBarDelegate::ShouldExpireInternal(details);
49 } 49 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698