| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 Polymer('log-buffer', { | 5 Polymer('log-buffer', { |
| 6 publish: { | 6 publish: { |
| 7 /** | 7 /** |
| 8 * List of displayed logs. | 8 * List of displayed logs. |
| 9 * @type {?Array.<{{ | 9 * @type {?Array<{{ |
| 10 * text: string, | 10 * text: string, |
| 11 * time: string, | 11 * time: string, |
| 12 * file: string, | 12 * file: string, |
| 13 * line: number, | 13 * line: number, |
| 14 * severity: number, | 14 * severity: number, |
| 15 * }}>} LogMessage | 15 * }}>} LogMessage |
| 16 */ | 16 */ |
| 17 logs: null, | 17 logs: null, |
| 18 }, | 18 }, |
| 19 | 19 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 | 61 |
| 62 /** | 62 /** |
| 63 * Called when the log buffer is cleared. | 63 * Called when the log buffer is cleared. |
| 64 * @type {function()} | 64 * @type {function()} |
| 65 */ | 65 */ |
| 66 onLogBufferCleared: function() {}, | 66 onLogBufferCleared: function() {}, |
| 67 | 67 |
| 68 /** | 68 /** |
| 69 * Called in response to chrome.send('getLogMessages') with the log messages | 69 * Called in response to chrome.send('getLogMessages') with the log messages |
| 70 * currently in the buffer. | 70 * currently in the buffer. |
| 71 * @type {function(Array.<LogMessage>)} | 71 * @type {function(Array<LogMessage>)} |
| 72 */ | 72 */ |
| 73 onGotLogMessages: function(messages) {}, | 73 onGotLogMessages: function(messages) {}, |
| 74 }; | 74 }; |
| OLD | NEW |