OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 22 matching lines...) Expand all Loading... |
33 #include "core/editing/FrameSelection.h" | 33 #include "core/editing/FrameSelection.h" |
34 #include "core/editing/serializers/Serialization.h" | 34 #include "core/editing/serializers/Serialization.h" |
35 #include "core/fetch/ImageResource.h" | 35 #include "core/fetch/ImageResource.h" |
36 #include "core/fileapi/FileList.h" | 36 #include "core/fileapi/FileList.h" |
37 #include "core/frame/LocalFrame.h" | 37 #include "core/frame/LocalFrame.h" |
38 #include "core/html/HTMLImageElement.h" | 38 #include "core/html/HTMLImageElement.h" |
39 #include "core/html/TextControlElement.h" | 39 #include "core/html/TextControlElement.h" |
40 #include "core/layout/LayoutImage.h" | 40 #include "core/layout/LayoutImage.h" |
41 #include "core/layout/LayoutObject.h" | 41 #include "core/layout/LayoutObject.h" |
42 #include "platform/DragImage.h" | 42 #include "platform/DragImage.h" |
43 #include "platform/MIMETypeRegistry.h" | |
44 #include "platform/clipboard/ClipboardMimeTypes.h" | 43 #include "platform/clipboard/ClipboardMimeTypes.h" |
45 #include "platform/clipboard/ClipboardUtilities.h" | 44 #include "platform/clipboard/ClipboardUtilities.h" |
| 45 #include "platform/network/mime/MIMETypeRegistry.h" |
46 #include <memory> | 46 #include <memory> |
47 | 47 |
48 namespace blink { | 48 namespace blink { |
49 | 49 |
50 static DragOperation convertEffectAllowedToDragOperation(const String& op) { | 50 static DragOperation convertEffectAllowedToDragOperation(const String& op) { |
51 // Values specified in | 51 // Values specified in |
52 // http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#dom-da
tatransfer-effectallowed | 52 // http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#dom-da
tatransfer-effectallowed |
53 if (op == "uninitialized") | 53 if (op == "uninitialized") |
54 return DragOperationEvery; | 54 return DragOperationEvery; |
55 if (op == "none") | 55 if (op == "none") |
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
506 } | 506 } |
507 } | 507 } |
508 | 508 |
509 DEFINE_TRACE(DataTransfer) { | 509 DEFINE_TRACE(DataTransfer) { |
510 visitor->trace(m_dataObject); | 510 visitor->trace(m_dataObject); |
511 visitor->trace(m_dragImage); | 511 visitor->trace(m_dragImage); |
512 visitor->trace(m_dragImageElement); | 512 visitor->trace(m_dragImageElement); |
513 } | 513 } |
514 | 514 |
515 } // namespace blink | 515 } // namespace blink |
OLD | NEW |