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

Side by Side Diff: chrome/browser/ui/cocoa/infobars/mock_link_infobar_delegate.cc

Issue 10453101: Convert most of the rest of chrome to ImageSkia (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/infobars/mock_confirm_infobar_delegate.cc ('k') | chrome/browser/ui/cocoa/table_row_nsimage_cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698