OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. |
3 * Copyright (C) 2008, 2009 Google Inc. | 3 * Copyright (C) 2008, 2009 Google Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 17 matching lines...) Expand all Loading... |
28 #include "ClipboardChromium.h" | 28 #include "ClipboardChromium.h" |
29 | 29 |
30 #include "CachedImage.h" | 30 #include "CachedImage.h" |
31 #include "ChromiumDataObject.h" | 31 #include "ChromiumDataObject.h" |
32 #include "ChromiumDataObjectItem.h" | 32 #include "ChromiumDataObjectItem.h" |
33 #include "ClipboardMimeTypes.h" | 33 #include "ClipboardMimeTypes.h" |
34 #include "ClipboardUtilitiesChromium.h" | 34 #include "ClipboardUtilitiesChromium.h" |
35 #include "DataTransferItemList.h" | 35 #include "DataTransferItemList.h" |
36 #include "Document.h" | 36 #include "Document.h" |
37 #include "DragData.h" | 37 #include "DragData.h" |
| 38 #include "Editor.h" |
38 #include "Element.h" | 39 #include "Element.h" |
39 #include "ExceptionCode.h" | 40 #include "ExceptionCode.h" |
40 #include "File.h" | 41 #include "File.h" |
41 #include "FileList.h" | 42 #include "FileList.h" |
42 #include "Frame.h" | 43 #include "Frame.h" |
43 #include "HTMLNames.h" | 44 #include "HTMLNames.h" |
44 #include "HTMLParserIdioms.h" | 45 #include "HTMLParserIdioms.h" |
45 #include "Image.h" | 46 #include "Image.h" |
46 #include "MIMETypeRegistry.h" | 47 #include "MIMETypeRegistry.h" |
47 #include "NamedNodeMap.h" | 48 #include "NamedNodeMap.h" |
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
463 | 464 |
464 PassRefPtr<DataTransferItemList> ClipboardChromium::items() | 465 PassRefPtr<DataTransferItemList> ClipboardChromium::items() |
465 { | 466 { |
466 // FIXME: According to the spec, we are supposed to return the same collecti
on of items each | 467 // FIXME: According to the spec, we are supposed to return the same collecti
on of items each |
467 // time. We now return a wrapper that always wraps the *same* set of items,
so JS shouldn't be | 468 // time. We now return a wrapper that always wraps the *same* set of items,
so JS shouldn't be |
468 // able to tell, but we probably still want to fix this. | 469 // able to tell, but we probably still want to fix this. |
469 return DataTransferItemListPolicyWrapper::create(this, m_dataObject); | 470 return DataTransferItemListPolicyWrapper::create(this, m_dataObject); |
470 } | 471 } |
471 | 472 |
472 } // namespace WebCore | 473 } // namespace WebCore |
OLD | NEW |