blob: fde2086a9157a8e8b96fb0381200c2bf42a834b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import <Cocoa/Cocoa.h>
#include "chrome/browser/bookmarks/bookmark_drag_data.h"
#include "chrome/browser/cocoa/web_contents_drag_source.h"
// A class that handles tracking and event processing for a drag and drop
// originating from the content area.
@interface BookmarkDragSource : WebContentsDragSource {
@private
// Our drop data. Should only be initialized once.
std::vector<BookmarkDragData::Element> dropData_;
Profile* profile_;
}
// Initialize a DragDataSource object for a drag (originating on the given
// contentsView and with the given dropData and pboard). Fill the pasteboard
// with data types appropriate for dropData.
- (id)initWithContentsView:(TabContentsViewCocoa*)contentsView
dropData:
(const std::vector<BookmarkDragData::Element>&)dropData
profile:(Profile*)profile
pasteboard:(NSPasteboard*)pboard
dragOperationMask:(NSDragOperation)dragOperationMask;
@end
|