| OLD | NEW |
| 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> |
| OLD | NEW |