| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 /** | 5 /** |
| 6 * Javascript for ValueControl, served from chrome://bluetooth-internals/. | 6 * Javascript for ValueControl, served from chrome://bluetooth-internals/. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 cr.define('value_control', function() { | 9 cr.define('value_control', function() { |
| 10 /** @const */ var Snackbar = snackbar.Snackbar; | 10 /** @const */ var Snackbar = snackbar.Snackbar; |
| (...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 393 this.deviceAddress_ + ': Write succeeded', SnackbarType.SUCCESS); | 393 this.deviceAddress_ + ': Write succeeded', SnackbarType.SUCCESS); |
| 394 return; | 394 return; |
| 395 } | 395 } |
| 396 | 396 |
| 397 var errorString = this.getErrorString_(response.result); | 397 var errorString = this.getErrorString_(response.result); |
| 398 Snackbar.show( | 398 Snackbar.show( |
| 399 this.deviceAddress_ + ': ' + errorString, SnackbarType.ERROR, | 399 this.deviceAddress_ + ': ' + errorString, SnackbarType.ERROR, |
| 400 'Retry', this.writeValue_.bind(this)); | 400 'Retry', this.writeValue_.bind(this)); |
| 401 }.bind(this)); | 401 }.bind(this)); |
| 402 }, | 402 }, |
| 403 } | 403 }; |
| 404 | 404 |
| 405 return { | 405 return { |
| 406 ValueControl: ValueControl, | 406 ValueControl: ValueControl, |
| 407 ValueDataType: ValueDataType, | 407 ValueDataType: ValueDataType, |
| 408 }; | 408 }; |
| 409 }); | 409 }); |
| OLD | NEW |