| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_drag_source.h" | 5 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_drag_source.h" |
| 6 | 6 |
| 7 #include "chrome/browser/bookmarks/bookmark_pasteboard_helper_mac.h" | 7 #include "chrome/browser/bookmarks/bookmark_pasteboard_helper_mac.h" |
| 8 #include "chrome/browser/profile.h" | 8 #include "chrome/browser/profiles/profile.h" |
| 9 #include "chrome/browser/tab_contents/tab_contents_view_mac.h" | 9 #include "chrome/browser/tab_contents/tab_contents_view_mac.h" |
| 10 | 10 |
| 11 @implementation BookmarkDragSource | 11 @implementation BookmarkDragSource |
| 12 | 12 |
| 13 - (id)initWithContentsView:(TabContentsViewCocoa*)contentsView | 13 - (id)initWithContentsView:(TabContentsViewCocoa*)contentsView |
| 14 dropData: | 14 dropData: |
| 15 (const std::vector<BookmarkNodeData::Element>&)dropData | 15 (const std::vector<BookmarkNodeData::Element>&)dropData |
| 16 profile:(Profile*)profile | 16 profile:(Profile*)profile |
| 17 pasteboard:(NSPasteboard*)pboard | 17 pasteboard:(NSPasteboard*)pboard |
| 18 dragOperationMask:(NSDragOperation)dragOperationMask { | 18 dragOperationMask:(NSDragOperation)dragOperationMask { |
| (...skipping 15 matching lines...) Expand all Loading... |
| 34 | 34 |
| 35 - (NSImage*)dragImage { | 35 - (NSImage*)dragImage { |
| 36 // TODO(feldstein): Do something better than this. Should have badging | 36 // TODO(feldstein): Do something better than this. Should have badging |
| 37 // and a single drag image. | 37 // and a single drag image. |
| 38 // http://crbug.com/37264 | 38 // http://crbug.com/37264 |
| 39 return [NSImage imageNamed:NSImageNameMultipleDocuments]; | 39 return [NSImage imageNamed:NSImageNameMultipleDocuments]; |
| 40 } | 40 } |
| 41 | 41 |
| 42 @end // @implementation BookmarkDragSource | 42 @end // @implementation BookmarkDragSource |
| 43 | 43 |
| OLD | NEW |