| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 var localStrings; | 5 var localStrings; |
| 6 var browserBridge; | 6 var browserBridge; |
| 7 | 7 |
| 8 // Class that keeps track of current burn process state. | 8 // Class that keeps track of current burn process state. |
| 9 function State(strings) { | 9 function State(strings) { |
| 10 this.setStrings(strings); | 10 this.setStrings(strings); |
| (...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 document.addEventListener('DOMContentLoaded', function() { | 329 document.addEventListener('DOMContentLoaded', function() { |
| 330 localStrings = new LocalStrings(); | 330 localStrings = new LocalStrings(); |
| 331 browserBridge = new BrowserBridge(); | 331 browserBridge = new BrowserBridge(); |
| 332 | 332 |
| 333 jstProcess(new JsEvalContext(templateData), $("more-info-link")); | 333 jstProcess(new JsEvalContext(templateData), $("more-info-link")); |
| 334 | 334 |
| 335 $('cancel-button').onclick = | 335 $('cancel-button').onclick = |
| 336 browserBridge.sendCancelMessage.bind(browserBridge); | 336 browserBridge.sendCancelMessage.bind(browserBridge); |
| 337 browserBridge.sendGetDevicesMessage(); | 337 browserBridge.sendGetDevicesMessage(); |
| 338 }); | 338 }); |
| OLD | NEW |