| Index: sky/engine/bindings2/exception_state.cc
|
| diff --git a/sky/engine/bindings2/exception_state.cc b/sky/engine/bindings2/exception_state.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..3c71fcda242dc13fc6dd1b0d80018971e3b11026
|
| --- /dev/null
|
| +++ b/sky/engine/bindings2/exception_state.cc
|
| @@ -0,0 +1,48 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "sky/engine/config.h"
|
| +#include "sky/engine/bindings2/exception_state.h"
|
| +
|
| +namespace blink {
|
| +
|
| +ExceptionState::ExceptionState() : code_(0), had_exception_(false) {
|
| +}
|
| +
|
| +ExceptionState::ExceptionState(Context context,
|
| + const char* propertyName,
|
| + const char* interfaceName) {
|
| +}
|
| +
|
| +ExceptionState::ExceptionState(Context context, const char* interfaceName) {
|
| +}
|
| +
|
| +ExceptionState::~ExceptionState() {
|
| +}
|
| +
|
| +void ExceptionState::ThrowDOMException(const ExceptionCode&,
|
| + const String& message) {
|
| +}
|
| +
|
| +void ExceptionState::ThrowTypeError(const String& message) {
|
| +}
|
| +
|
| +void ExceptionState::ThrowRangeError(const String& message) {
|
| +}
|
| +
|
| +bool ExceptionState::ThrowIfNeeded() {
|
| + return had_exception_;
|
| +}
|
| +
|
| +void ExceptionState::ClearException() {
|
| +}
|
| +
|
| +Dart_Handle ExceptionState::GetDartException(Dart_NativeArguments args,
|
| + bool auto_scope) {
|
| + // TODO(abarth): Still don't understand autoscope.
|
| + DCHECK(auto_scope);
|
| + return exception_.Release();
|
| +}
|
| +
|
| +} // namespace blink
|
|
|