| Index: sky/engine/bindings-dart/core/dart/DartScriptDebugListener.h
|
| diff --git a/sky/engine/v8_inspector/ScriptDebugListener.h b/sky/engine/bindings-dart/core/dart/DartScriptDebugListener.h
|
| similarity index 71%
|
| copy from sky/engine/v8_inspector/ScriptDebugListener.h
|
| copy to sky/engine/bindings-dart/core/dart/DartScriptDebugListener.h
|
| index 603b16570a7070b9c999878c3a0d536ffa4a7d10..32a8a63aa43f381817198a0613f4afac8b5bbfb0 100644
|
| --- a/sky/engine/v8_inspector/ScriptDebugListener.h
|
| +++ b/sky/engine/bindings-dart/core/dart/DartScriptDebugListener.h
|
| @@ -1,6 +1,6 @@
|
| /*
|
| * Copyright (C) 2008 Apple Inc. All rights reserved.
|
| - * Copyright (C) 2010 Google Inc. All rights reserved.
|
| + * Copyright (C) 2014 Google Inc. All rights reserved.
|
| *
|
| * Redistribution and use in source and binary forms, with or without
|
| * modification, are permitted provided that the following conditions
|
| @@ -27,23 +27,24 @@
|
| * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#ifndef SKY_ENGINE_V8_INSPECTOR_SCRIPTDEBUGLISTENER_H_
|
| -#define SKY_ENGINE_V8_INSPECTOR_SCRIPTDEBUGLISTENER_H_
|
| +#ifndef DartScriptDebugListener_h
|
| +#define DartScriptDebugListener_h
|
|
|
|
|
| -#include "sky/engine/bindings/core/v8/ScriptState.h"
|
| -#include "sky/engine/wtf/Forward.h"
|
| -#include "sky/engine/wtf/Vector.h"
|
| -#include "sky/engine/wtf/text/WTFString.h"
|
| +#include "bindings/common/ScriptState.h"
|
| +#include "core/inspector/ScriptDebugListener.h"
|
| +
|
| +#include "wtf/Forward.h"
|
| +#include "wtf/Vector.h"
|
| +#include "wtf/text/WTFString.h"
|
| +#include <dart_debugger_api.h>
|
|
|
| namespace blink {
|
|
|
| class ExecutionContext;
|
| class ScriptValue;
|
|
|
| -enum CompileResult { CompileSuccess, CompileError };
|
| -
|
| -class ScriptDebugListener {
|
| +class DartScriptDebugListener {
|
| public:
|
| class Script {
|
| public:
|
| @@ -53,6 +54,7 @@ public:
|
| , endLine(0)
|
| , endColumn(0)
|
| , isContentScript(false)
|
| + , libraryId(-1)
|
| {
|
| }
|
|
|
| @@ -65,6 +67,8 @@ public:
|
| int endLine;
|
| int endColumn;
|
| bool isContentScript;
|
| + String language;
|
| + int libraryId;
|
| };
|
|
|
| enum SkipPauseRequest {
|
| @@ -74,16 +78,14 @@ public:
|
| StepOut
|
| };
|
|
|
| - virtual ~ScriptDebugListener() { }
|
| + virtual ~DartScriptDebugListener() { }
|
|
|
| virtual void didParseSource(const String& scriptId, const Script&, CompileResult) = 0;
|
| - virtual SkipPauseRequest didPause(ScriptState*, const ScriptValue& callFrames, const ScriptValue& exception, const Vector<String>& hitBreakpoints) = 0;
|
| + virtual SkipPauseRequest didPause(ScriptState*, Dart_StackTrace callFrames, const ScriptValue& exception, const Vector<String>& hitBreakpoints) = 0;
|
| virtual void didContinue() = 0;
|
| - virtual void didReceiveV8AsyncTaskEvent(ExecutionContext*, const String& eventType, const String& eventName, int id) = 0;
|
| - virtual void didReceiveV8PromiseEvent(ScriptState*, v8::Handle<v8::Object> promise, v8::Handle<v8::Value> parentPromise, int status) = 0;
|
| };
|
|
|
| } // namespace blink
|
|
|
|
|
| -#endif // SKY_ENGINE_V8_INSPECTOR_SCRIPTDEBUGLISTENER_H_
|
| +#endif // DartScriptDebugListener_h
|
|
|