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

Side by Side Diff: sky/framework/inspector/page-agent.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, 1 month 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 unified diff | Download patch
OLDNEW
1 <script> 1 <script>
2 function PageAgent() { 2 function Page() {
3 } 3 }
4 4
5 PageAgent.prototype.enable = function() { 5 Page.prototype.enable = function() {
6 }; 6 };
7 7
8 PageAgent.prototype.canScreencast = function() { 8 Page.prototype.canScreencast = function() {
9 return { 9 return {
10 result: false 10 result: false
11 }; 11 };
12 }; 12 };
13 13
14 PageAgent.prototype.canEmulate = function() { 14 Page.prototype.canEmulate = function() {
15 return { 15 return {
16 result: false 16 result: false
17 }; 17 };
18 }; 18 };
19 19
20 this.exports = PageAgent; 20 Page.prototype.getResourceTree = function() {
21 // Unclear if this is all needed, but if we don't return something here
22 // the inspector hits an exception in WebInspector.ResourceTreeModel.
23 return {
24 "frameTree": {
25 "frame": {
26 "id": 1,
27 "loaderId": 1,
28 "url": document.URL,
29 "mimeType": "text/html",
30 "securityOrigin": document.URL,
31 },
32 "resources": [], // FIXME
33 }
34 };
35 };
36
37 this.exports = Page;
21 </script> 38 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698