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 "core/clipboard/DataTransferItemList.h" | 28 #include "core/clipboard/DataTransferItemList.h" |
29 | 29 |
30 #include "bindings/v8/ExceptionState.h" | 30 #include "bindings/v8/ExceptionState.h" |
31 #include "core/clipboard/Clipboard.h" | 31 #include "core/clipboard/Clipboard.h" |
32 #include "core/clipboard/DataObject.h" | 32 #include "core/clipboard/DataObject.h" |
33 #include "core/clipboard/DataTransferItem.h" | 33 #include "core/clipboard/DataTransferItem.h" |
34 #include "core/dom/ExceptionCode.h" | 34 #include "core/dom/ExceptionCode.h" |
35 | 35 |
36 namespace WebCore { | 36 namespace WebCore { |
37 | 37 |
38 DEFINE_GC_INFO(DataTransferItemList); | |
39 | |
40 PassRefPtrWillBeRawPtr<DataTransferItemList> DataTransferItemList::create(PassRe
fPtrWillBeRawPtr<Clipboard> clipboard, PassRefPtrWillBeRawPtr<DataObject> list) | 38 PassRefPtrWillBeRawPtr<DataTransferItemList> DataTransferItemList::create(PassRe
fPtrWillBeRawPtr<Clipboard> clipboard, PassRefPtrWillBeRawPtr<DataObject> list) |
41 { | 39 { |
42 return adoptRefWillBeNoop(new DataTransferItemList(clipboard, list)); | 40 return adoptRefWillBeNoop(new DataTransferItemList(clipboard, list)); |
43 } | 41 } |
44 | 42 |
45 DataTransferItemList::~DataTransferItemList() | 43 DataTransferItemList::~DataTransferItemList() |
46 { | 44 { |
47 } | 45 } |
48 | 46 |
49 size_t DataTransferItemList::length() const | 47 size_t DataTransferItemList::length() const |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 ScriptWrappable::init(this); | 107 ScriptWrappable::init(this); |
110 } | 108 } |
111 | 109 |
112 void DataTransferItemList::trace(Visitor* visitor) | 110 void DataTransferItemList::trace(Visitor* visitor) |
113 { | 111 { |
114 visitor->trace(m_clipboard); | 112 visitor->trace(m_clipboard); |
115 visitor->trace(m_dataObject); | 113 visitor->trace(m_dataObject); |
116 } | 114 } |
117 | 115 |
118 } // namespace WebCore | 116 } // namespace WebCore |
OLD | NEW |