| Index: sky/engine/bindings-dart/core/dart/custom/DartErrorEventCustom.cpp
|
| diff --git a/LICENSE b/sky/engine/bindings-dart/core/dart/custom/DartErrorEventCustom.cpp
|
| similarity index 62%
|
| copy from LICENSE
|
| copy to sky/engine/bindings-dart/core/dart/custom/DartErrorEventCustom.cpp
|
| index 972bb2edb099e58b6a1939fa57f8e74391159c0c..1ab240a2b4d9262bc5ae0f2c815890a9301c1e98 100644
|
| --- a/LICENSE
|
| +++ b/sky/engine/bindings-dart/core/dart/custom/DartErrorEventCustom.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,39 @@
|
| // 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/DartErrorEvent.h"
|
| +
|
| +#include "bindings/core/dart/DartBlob.h"
|
| +#include "bindings/core/dart/DartWindow.h"
|
| +#include "bindings/core/dart/V8Converter.h"
|
| +#include "bindings/core/v8/ScriptController.h"
|
| +
|
| +namespace blink {
|
| +
|
| +namespace DartErrorEventInternal {
|
| +
|
| +void errorGetter(Dart_NativeArguments args)
|
| +{
|
| + // Tricky to implement because V8 appears to implement by setting a V8HiddenValue
|
| + /*
|
| + {
|
| + v8::Handle<v8::Value> error = info.Holder()->GetHiddenValue(V8HiddenPropertyName::error());
|
| +
|
| + if (!error.IsEmpty()) {
|
| + v8SetReturnValue(info, error);
|
| + return;
|
| + }
|
| + ErrorEvent* receiver = DartDOMWrapper::receiver< ErrorEvent >(args);
|
| +
|
| + DartUtilities::setDartStringReturnValue(args, receiver->error());
|
| + return;
|
| + }
|
| + */
|
| + DART_UNIMPLEMENTED();
|
| +}
|
| +
|
| +}
|
| +
|
| +}
|
|
|