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 26 matching lines...) Expand all Loading... |
37 #include "core/html/HTMLImageElement.h" | 37 #include "core/html/HTMLImageElement.h" |
38 #include "core/rendering/RenderImage.h" | 38 #include "core/rendering/RenderImage.h" |
39 #include "core/rendering/RenderObject.h" | 39 #include "core/rendering/RenderObject.h" |
40 #include "platform/DragImage.h" | 40 #include "platform/DragImage.h" |
41 #include "platform/MIMETypeRegistry.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 DEFINE_GC_INFO(Clipboard); | |
48 | |
49 // 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 |
50 // 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. |
51 static DragOperation dragOpFromIEOp(const String& op) | 49 static DragOperation dragOpFromIEOp(const String& op) |
52 { | 50 { |
53 // yep, it's really just this fixed set | 51 // yep, it's really just this fixed set |
54 if (op == "uninitialized") | 52 if (op == "uninitialized") |
55 return DragOperationEvery; | 53 return DragOperationEvery; |
56 if (op == "none") | 54 if (op == "none") |
57 return DragOperationNone; | 55 return DragOperationNone; |
58 if (op == "copy") | 56 if (op == "copy") |
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
523 return String("copy"); | 521 return String("copy"); |
524 } | 522 } |
525 } | 523 } |
526 | 524 |
527 void Clipboard::trace(Visitor* visitor) | 525 void Clipboard::trace(Visitor* visitor) |
528 { | 526 { |
529 visitor->trace(m_dataObject); | 527 visitor->trace(m_dataObject); |
530 } | 528 } |
531 | 529 |
532 } // namespace WebCore | 530 } // namespace WebCore |
OLD | NEW |