| Index: sky/engine/bindings-dart/core/dart/custom/DartHTMLMediaElementCustom.cpp
|
| diff --git a/LICENSE b/sky/engine/bindings-dart/core/dart/custom/DartHTMLMediaElementCustom.cpp
|
| similarity index 65%
|
| copy from LICENSE
|
| copy to sky/engine/bindings-dart/core/dart/custom/DartHTMLMediaElementCustom.cpp
|
| index 972bb2edb099e58b6a1939fa57f8e74391159c0c..dae5f951f5cd2e95a57a2b3d1d94e50f1ea2cb47 100644
|
| --- a/LICENSE
|
| +++ b/sky/engine/bindings-dart/core/dart/custom/DartHTMLMediaElementCustom.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,36 @@
|
| // 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/DartHTMLMediaElement.h"
|
| +
|
| +#include "bindings/core/dart/DartMediaController.h"
|
| +
|
| +namespace blink {
|
| +
|
| +namespace DartHTMLMediaElementInternal {
|
| +
|
| +void controllerSetter(Dart_NativeArguments args)
|
| +{
|
| + Dart_Handle exception = 0;
|
| + {
|
| + HTMLMediaElement* receiver = DartDOMWrapper::receiver<HTMLMediaElement>(args);
|
| + MediaController* controller = DartDOMWrapper::unwrapDartWrapper<DartMediaController>(args, 1, exception);
|
| + if (exception)
|
| + goto fail;
|
| +
|
| + // and then set the current media controller to the given value.
|
| + receiver->setController(controller);
|
| + return;
|
| + }
|
| +
|
| +fail:
|
| + Dart_ThrowException(exception);
|
| + ASSERT_NOT_REACHED();
|
| +}
|
| +
|
| +}
|
| +
|
| +}
|
|
|