| Index: sky/engine/bindings-dart/core/dart/custom/DartHTMLCollectionCustom.cpp
|
| diff --git a/LICENSE b/sky/engine/bindings-dart/core/dart/custom/DartHTMLCollectionCustom.cpp
|
| similarity index 66%
|
| copy from LICENSE
|
| copy to sky/engine/bindings-dart/core/dart/custom/DartHTMLCollectionCustom.cpp
|
| index 972bb2edb099e58b6a1939fa57f8e74391159c0c..1bd8248cb81f36afe1e63470a915a35b8bf41f53 100644
|
| --- a/LICENSE
|
| +++ b/sky/engine/bindings-dart/core/dart/custom/DartHTMLCollectionCustom.cpp
|
| @@ -1,4 +1,5 @@
|
| -// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Copyright 2011, Google Inc.
|
| +// All rights reserved.
|
| //
|
| // Redistribution and use in source and binary forms, with or without
|
| // modification, are permitted provided that the following conditions are
|
| @@ -25,3 +26,27 @@
|
| // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| +
|
| +#include "config.h"
|
| +#include "bindings/core/dart/DartHTMLCollection.h"
|
| +
|
| +#include "bindings/core/dart/DartDOMWrapper.h"
|
| +#include "bindings/core/dart/DartHTMLAllCollection.h"
|
| +#include "bindings/core/dart/DartNode.h"
|
| +#include "core/html/HTMLAllCollection.h"
|
| +#include "core/html/HTMLCollection.h"
|
| +
|
| +namespace blink {
|
| +
|
| +Dart_Handle DartHTMLCollection::createWrapper(
|
| + DartDOMData* domData, HTMLCollection* collection)
|
| +{
|
| + if (!collection)
|
| + return Dart_Null();
|
| +
|
| + if (collection->type() == DocAll)
|
| + return DartHTMLAllCollection::createWrapper(domData, static_cast<HTMLAllCollection*>(collection));
|
| + return DartDOMWrapper::createWrapper<DartHTMLCollection>(domData, collection);
|
| +}
|
| +
|
| +}
|
|
|