OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2001 Peter Kelly (pmk@post.com) | 2 * Copyright (C) 2001 Peter Kelly (pmk@post.com) |
3 * Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de) | 3 * Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de) |
4 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) | 4 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) |
5 * Copyright (C) 2003, 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. | 5 * Copyright (C) 2003, 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 class Element; | 43 class Element; |
44 class ExceptionState; | 44 class ExceptionState; |
45 class FileList; | 45 class FileList; |
46 class Frame; | 46 class Frame; |
47 class ImageResource; | 47 class ImageResource; |
48 class Node; | 48 class Node; |
49 class Range; | 49 class Range; |
50 | 50 |
51 // State available during IE's events for drag and drop and copy/paste | 51 // State available during IE's events for drag and drop and copy/paste |
52 class Clipboard : public RefCountedWillBeGarbageCollectedFinalized<Clipboard>, p
ublic ScriptWrappable { | 52 class Clipboard : public RefCountedWillBeGarbageCollectedFinalized<Clipboard>, p
ublic ScriptWrappable { |
53 DECLARE_GC_INFO; | |
54 public: | 53 public: |
55 // Whether this clipboard is serving a drag-drop or copy-paste request. | 54 // Whether this clipboard is serving a drag-drop or copy-paste request. |
56 enum ClipboardType { | 55 enum ClipboardType { |
57 CopyAndPaste, | 56 CopyAndPaste, |
58 DragAndDrop, | 57 DragAndDrop, |
59 }; | 58 }; |
60 | 59 |
61 static PassRefPtrWillBeRawPtr<Clipboard> create(ClipboardType, ClipboardAcce
ssPolicy, PassRefPtrWillBeRawPtr<DataObject>); | 60 static PassRefPtrWillBeRawPtr<Clipboard> create(ClipboardType, ClipboardAcce
ssPolicy, PassRefPtrWillBeRawPtr<DataObject>); |
62 ~Clipboard(); | 61 ~Clipboard(); |
63 | 62 |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 ResourcePtr<ImageResource> m_dragImage; | 134 ResourcePtr<ImageResource> m_dragImage; |
136 RefPtr<Node> m_dragImageElement; | 135 RefPtr<Node> m_dragImageElement; |
137 }; | 136 }; |
138 | 137 |
139 DragOperation convertDropZoneOperationToDragOperation(const String& dragOperatio
n); | 138 DragOperation convertDropZoneOperationToDragOperation(const String& dragOperatio
n); |
140 String convertDragOperationToDropZoneOperation(DragOperation); | 139 String convertDragOperationToDropZoneOperation(DragOperation); |
141 | 140 |
142 } // namespace WebCore | 141 } // namespace WebCore |
143 | 142 |
144 #endif // Clipboard_h | 143 #endif // Clipboard_h |
OLD | NEW |