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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 RefPtrWillBeRawPtr<DataObjectItem> item = m_dataObject->add(file); | 95 RefPtrWillBeRawPtr<DataObjectItem> item = m_dataObject->add(file); |
96 if (!item) | 96 if (!item) |
97 return nullptr; | 97 return nullptr; |
98 return DataTransferItem::create(m_dataTransfer, item); | 98 return DataTransferItem::create(m_dataTransfer, item); |
99 } | 99 } |
100 | 100 |
101 DataTransferItemList::DataTransferItemList(PassRefPtrWillBeRawPtr<DataTransfer>
dataTransfer, PassRefPtrWillBeRawPtr<DataObject> dataObject) | 101 DataTransferItemList::DataTransferItemList(PassRefPtrWillBeRawPtr<DataTransfer>
dataTransfer, PassRefPtrWillBeRawPtr<DataObject> dataObject) |
102 : m_dataTransfer(dataTransfer) | 102 : m_dataTransfer(dataTransfer) |
103 , m_dataObject(dataObject) | 103 , m_dataObject(dataObject) |
104 { | 104 { |
105 ScriptWrappable::init(this); | |
106 } | 105 } |
107 | 106 |
108 void DataTransferItemList::trace(Visitor* visitor) | 107 void DataTransferItemList::trace(Visitor* visitor) |
109 { | 108 { |
110 visitor->trace(m_dataTransfer); | 109 visitor->trace(m_dataTransfer); |
111 visitor->trace(m_dataObject); | 110 visitor->trace(m_dataObject); |
112 } | 111 } |
113 | 112 |
114 } // namespace blink | 113 } // namespace blink |
OLD | NEW |