| 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_link_infobar_delegate.h" | 5 #include "chrome/browser/ui/cocoa/infobars/mock_link_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 MockLinkInfoBarDelegate::kMessage[] = "MockLinkInfoBarMessage "; | 9 const char MockLinkInfoBarDelegate::kMessage[] = "MockLinkInfoBarMessage "; |
| 11 const char MockLinkInfoBarDelegate::kLink[] = "http://dev.chromium.org"; | 10 const char MockLinkInfoBarDelegate::kLink[] = "http://dev.chromium.org"; |
| 12 | 11 |
| 13 MockLinkInfoBarDelegate::MockLinkInfoBarDelegate(Owner* owner) | 12 MockLinkInfoBarDelegate::MockLinkInfoBarDelegate(Owner* owner) |
| 14 : LinkInfoBarDelegate(NULL), | 13 : LinkInfoBarDelegate(NULL), |
| 15 owner_(owner), | 14 owner_(owner), |
| 16 closes_on_action_(true), | 15 closes_on_action_(true), |
| 17 icon_accessed_(false), | 16 icon_accessed_(false), |
| 18 message_text_accessed_(false), | 17 message_text_accessed_(false), |
| (...skipping 20 matching lines...) Expand all Loading... |
| 39 | 38 |
| 40 string16 MockLinkInfoBarDelegate::GetLinkText() const { | 39 string16 MockLinkInfoBarDelegate::GetLinkText() const { |
| 41 link_text_accessed_ = true; | 40 link_text_accessed_ = true; |
| 42 return ASCIIToUTF16(kLink); | 41 return ASCIIToUTF16(kLink); |
| 43 } | 42 } |
| 44 | 43 |
| 45 bool MockLinkInfoBarDelegate::LinkClicked(WindowOpenDisposition disposition) { | 44 bool MockLinkInfoBarDelegate::LinkClicked(WindowOpenDisposition disposition) { |
| 46 link_clicked_ = true; | 45 link_clicked_ = true; |
| 47 return closes_on_action_; | 46 return closes_on_action_; |
| 48 } | 47 } |
| OLD | NEW |