Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1250)

Unified Diff: sky/engine/bindings-dart/core/dart/DartScriptDebugListener.h

Issue 875013003: Import Dart bindings as of Blink r188698. This merely copies the files over and does not attach any… (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
« no previous file with comments | « sky/engine/bindings-dart/core/dart/DartScheduledAction.cpp ('k') | sky/engine/bindings-dart/core/dart/DartScriptDebugServer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698