Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(160)

Side by Side Diff: Source/core/clipboard/DataTransferItemList.cpp

Issue 540283003: bindings: Retires ScriptWrappable::init, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed a review comment. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/clipboard/DataTransferItem.cpp ('k') | Source/core/css/CSSMatrix.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « Source/core/clipboard/DataTransferItem.cpp ('k') | Source/core/css/CSSMatrix.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698