| 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 17 matching lines...) Expand all  Loading... | 
| 28 | 28 | 
| 29 #include "HTMLNames.h" | 29 #include "HTMLNames.h" | 
| 30 #include "core/dom/DataTransferItem.h" | 30 #include "core/dom/DataTransferItem.h" | 
| 31 #include "core/dom/DataTransferItemList.h" | 31 #include "core/dom/DataTransferItemList.h" | 
| 32 #include "core/editing/markup.h" | 32 #include "core/editing/markup.h" | 
| 33 #include "core/fetch/ImageResource.h" | 33 #include "core/fetch/ImageResource.h" | 
| 34 #include "core/fileapi/FileList.h" | 34 #include "core/fileapi/FileList.h" | 
| 35 #include "core/html/HTMLImageElement.h" | 35 #include "core/html/HTMLImageElement.h" | 
| 36 #include "core/frame/Frame.h" | 36 #include "core/frame/Frame.h" | 
| 37 #include "core/platform/DragImage.h" | 37 #include "core/platform/DragImage.h" | 
| 38 #include "core/platform/MIMETypeRegistry.h" |  | 
| 39 #include "core/platform/chromium/ChromiumDataObject.h" | 38 #include "core/platform/chromium/ChromiumDataObject.h" | 
| 40 #include "core/rendering/RenderImage.h" | 39 #include "core/rendering/RenderImage.h" | 
| 41 #include "core/rendering/RenderObject.h" | 40 #include "core/rendering/RenderObject.h" | 
|  | 41 #include "platform/MIMETypeRegistry.h" | 
| 42 #include "platform/clipboard/ClipboardMimeTypes.h" | 42 #include "platform/clipboard/ClipboardMimeTypes.h" | 
| 43 #include "platform/clipboard/ClipboardUtilities.h" | 43 #include "platform/clipboard/ClipboardUtilities.h" | 
| 44 | 44 | 
| 45 namespace WebCore { | 45 namespace WebCore { | 
| 46 | 46 | 
| 47 // These "conversion" methods are called by both WebCore and WebKit, and never m
     ake sense to JS, so we don't | 47 // These "conversion" methods are called by both WebCore and WebKit, and never m
     ake sense to JS, so we don't | 
| 48 // worry about security for these. They don't allow access to the pasteboard any
     way. | 48 // worry about security for these. They don't allow access to the pasteboard any
     way. | 
| 49 static DragOperation dragOpFromIEOp(const String& op) | 49 static DragOperation dragOpFromIEOp(const String& op) | 
| 50 { | 50 { | 
| 51     // yep, it's really just this fixed set | 51     // yep, it's really just this fixed set | 
| (...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 516     case DragOperationMove: | 516     case DragOperationMove: | 
| 517         return String("move"); | 517         return String("move"); | 
| 518     case DragOperationLink: | 518     case DragOperationLink: | 
| 519         return String("link"); | 519         return String("link"); | 
| 520     default: | 520     default: | 
| 521         return String("copy"); | 521         return String("copy"); | 
| 522     } | 522     } | 
| 523 } | 523 } | 
| 524 | 524 | 
| 525 } // namespace WebCore | 525 } // namespace WebCore | 
| OLD | NEW | 
|---|