| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 define('mojo/edk/js/tests/js_to_cpp_tests', [ | 5 define('mojo/edk/js/tests/js_to_cpp_tests', [ |
| 6 'console', | 6 'console', |
| 7 'mojo/edk/js/tests/js_to_cpp.mojom', | 7 'mojo/edk/js/tests/js_to_cpp.mojom', |
| 8 'mojo/public/js/bindings', | 8 'mojo/public/js/bindings', |
| 9 'mojo/public/js/connection', | 9 'mojo/public/js/connection', |
| 10 'mojo/public/js/connector', | 10 'mojo/public/js/connector', |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 sampleMessage = new Uint8Array(DATA_PIPE_PARAMS.capacityNumBytes); | 219 sampleMessage = new Uint8Array(DATA_PIPE_PARAMS.capacityNumBytes); |
| 220 for (i = 0; i < sampleMessage.length; ++i) { | 220 for (i = 0; i < sampleMessage.length; ++i) { |
| 221 sampleMessage[i] = 255 - i; | 221 sampleMessage[i] = 255 - i; |
| 222 } | 222 } |
| 223 retainedJsSideStub = | 223 retainedJsSideStub = |
| 224 connection.bindHandleToStub(jsSideRequestHandle, jsToCpp.JsSide); | 224 connection.bindHandleToStub(jsSideRequestHandle, jsToCpp.JsSide); |
| 225 retainedJsSide = new JsSideConnection; | 225 retainedJsSide = new JsSideConnection; |
| 226 bindings.StubBindings(retainedJsSideStub).delegate = retainedJsSide; | 226 bindings.StubBindings(retainedJsSideStub).delegate = retainedJsSide; |
| 227 }; | 227 }; |
| 228 }); | 228 }); |
| OLD | NEW |