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

Side by Side Diff: ui/base/dragdrop/drag_utils.cc

Issue 10701063: Cleanup gfx::Canvas now that 10562027 has landed (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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) 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 "ui/base/dragdrop/drag_utils.h" 5 #include "ui/base/dragdrop/drag_utils.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "googleurl/src/gurl.h" 10 #include "googleurl/src/gurl.h"
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 93
94 SetDragImageOnDataObject(gfx::ImageSkia(source, size), size, 94 SetDragImageOnDataObject(gfx::ImageSkia(source, size), size,
95 gfx::Point(size.width() / 2, kLinkDragImageVPadding), 95 gfx::Point(size.width() / 2, kLinkDragImageVPadding),
96 data_object); 96 data_object);
97 } 97 }
98 98
99 void SetDragImageOnDataObject(const gfx::Canvas& canvas, 99 void SetDragImageOnDataObject(const gfx::Canvas& canvas,
100 const gfx::Size& size, 100 const gfx::Size& size,
101 const gfx::Point& cursor_offset, 101 const gfx::Point& cursor_offset,
102 ui::OSExchangeData* data_object) { 102 ui::OSExchangeData* data_object) {
103 SetDragImageOnDataObject(canvas.ExtractImageSkiaRep(), size, cursor_offset, 103 SetDragImageOnDataObject(canvas.ExtractImageRep(), size, cursor_offset,
104 data_object); 104 data_object);
105 } 105 }
106 106
107 } // namespace drag_utils 107 } // namespace drag_utils
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698