| OLD | NEW |
| 1 // Copyright (c) 2011 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/ui/cocoa/infobars/mock_confirm_infobar_delegate.h" | 5 #include "chrome/browser/ui/cocoa/infobars/mock_confirm_infobar_delegate.h" |
| 6 | 6 |
| 7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
| 8 #include "third_party/skia/include/core/SkBitmap.h" | |
| 9 | 8 |
| 10 const char MockConfirmInfoBarDelegate::kMessage[] = "MockConfirmInfoBarMessage"; | 9 const char MockConfirmInfoBarDelegate::kMessage[] = "MockConfirmInfoBarMessage"; |
| 11 | 10 |
| 12 MockConfirmInfoBarDelegate::MockConfirmInfoBarDelegate(Owner* owner) | 11 MockConfirmInfoBarDelegate::MockConfirmInfoBarDelegate(Owner* owner) |
| 13 : ConfirmInfoBarDelegate(NULL), | 12 : ConfirmInfoBarDelegate(NULL), |
| 14 owner_(owner), | 13 owner_(owner), |
| 15 closes_on_action_(true), | 14 closes_on_action_(true), |
| 16 icon_accessed_(false), | 15 icon_accessed_(false), |
| 17 message_text_accessed_(false), | 16 message_text_accessed_(false), |
| 18 link_text_accessed_(false), | 17 link_text_accessed_(false), |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 string16 MockConfirmInfoBarDelegate::GetLinkText() const { | 53 string16 MockConfirmInfoBarDelegate::GetLinkText() const { |
| 55 link_text_accessed_ = true; | 54 link_text_accessed_ = true; |
| 56 return string16(); | 55 return string16(); |
| 57 } | 56 } |
| 58 | 57 |
| 59 bool MockConfirmInfoBarDelegate::LinkClicked( | 58 bool MockConfirmInfoBarDelegate::LinkClicked( |
| 60 WindowOpenDisposition disposition) { | 59 WindowOpenDisposition disposition) { |
| 61 link_clicked_ = true; | 60 link_clicked_ = true; |
| 62 return closes_on_action_; | 61 return closes_on_action_; |
| 63 } | 62 } |
| OLD | NEW |