| OLD | NEW |
| 1 <link rel="import" href="/mojo/public/sky/core.sky" as="core" /> | 1 <import src="/mojo/public/sky/core.sky" as="core" /> |
| 2 <link rel="import" href="/mojo/public/sky/unicode.sky" as="unicode" /> | 2 <import src="/mojo/public/sky/unicode.sky" as="unicode" /> |
| 3 <link rel="import" href="/mojo/services/public/interfaces/network/network_servic
e.mojom.sky" as="net" /> | 3 <import src="/mojo/services/public/interfaces/network/network_service.mojom.sky"
as="net" /> |
| 4 <link rel="import" href="/mojo/services/public/interfaces/network/url_loader.moj
om.sky" as="loader" /> | 4 <import src="/mojo/services/public/interfaces/network/url_loader.mojom.sky" as="
loader" /> |
| 5 <link rel="import" href="shell.sky" as="shell" /> | 5 <import src="shell.sky" as="shell" /> |
| 6 <script> | 6 <script> |
| 7 function XMLHttpRequest() { | 7 function XMLHttpRequest() { |
| 8 this.networkService_ = shell.connectToService( | 8 this.networkService_ = shell.connectToService( |
| 9 "mojo://network_service/", net.NetworkService); | 9 "mojo://network_service/", net.NetworkService); |
| 10 this.request_ = null; | 10 this.request_ = null; |
| 11 this.loader_ = null; | 11 this.loader_ = null; |
| 12 this.responseText = null; | 12 this.responseText = null; |
| 13 }; | 13 }; |
| 14 | 14 |
| 15 XMLHttpRequest.prototype.onload = function() { }; | 15 XMLHttpRequest.prototype.onload = function() { }; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 36 }).catch(function(error) { | 36 }).catch(function(error) { |
| 37 self.onerror(error); | 37 self.onerror(error); |
| 38 }); | 38 }); |
| 39 }).catch(function(error) { | 39 }).catch(function(error) { |
| 40 self.onerror(error); | 40 self.onerror(error); |
| 41 }); | 41 }); |
| 42 }; | 42 }; |
| 43 | 43 |
| 44 module.exports = XMLHttpRequest; | 44 module.exports = XMLHttpRequest; |
| 45 </script> | 45 </script> |
| OLD | NEW |