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

Unified Diff: sky/framework/inspector/inspector.sky

Issue 674823003: Add basic console support to Sky's inspector. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: No need to change abarth.sky now Created 6 years, 2 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/framework/inspector/inspector.sky
diff --git a/sky/framework/inspector/inspector.sky b/sky/framework/inspector/inspector.sky
index 80b285f093c83101c036b9290327a5f22bc631e1..ed21e6eec0b890b64e5c79d161b059e4f8e37897 100644
--- a/sky/framework/inspector/inspector.sky
+++ b/sky/framework/inspector/inspector.sky
@@ -6,6 +6,8 @@
<link rel="import" href="dom-agent.sky" as="DOMAgent" />
<link rel="import" href="page-agent.sky" as="PageAgent" />
<link rel="import" href="worker-agent.sky" as="WorkerAgent" />
+<link rel="import" href="runtime-agent.sky" as="RuntimeAgent" />
+<link rel="import" href="indexeddb-agent.sky" as="IndexedDBAgent" />
<script>
function InspectorBackend(frontend) {
this.frontend = frontend;
@@ -14,6 +16,8 @@ function InspectorBackend(frontend) {
DOM: new DOMAgent(this),
Page: new PageAgent(),
Worker: new WorkerAgent(),
+ Runtime: new RuntimeAgent(this),
+ IndexedDB: new IndexedDBAgent(),
};
}
@@ -33,15 +37,14 @@ InspectorBackend.prototype.dispatch_ = function(descriptor, params) {
var methodName = parsed[1];
if (!(agentName in this.agents)) {
- console.log("InspectorBackend cannot find agent " + agentName);
+ console.log("InspectorBackend missing " + agentName);
return {};
}
var agent = this.agents[agentName];
if (!(methodName in agent)) {
- console.log("InspectorBackend cannot find method " +
- methodName + " on agent " + agentName);
+ console.log("InspectorBackend missing " + agentName + "." + methodName);
return {};
}

Powered by Google App Engine
This is Rietveld 408576698