| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 * Requests the database from the backend. | 6 * Requests the database from the backend. |
| 7 */ | 7 */ |
| 8 function requestAutocompleteActionPredictorDb() { | 8 function requestAutocompleteActionPredictorDb() { |
| 9 console.debug('Requesting NAP DB'); | 9 console.debug('Requesting NAP DB'); |
| 10 chrome.send('requestAutocompleteActionPredictorDb'); | 10 chrome.send('requestAutocompleteActionPredictorDb'); |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 entry.hit_count; | 67 entry.hit_count; |
| 68 row.appendChild(document.createElement('td')).textContent = | 68 row.appendChild(document.createElement('td')).textContent = |
| 69 entry.miss_count; | 69 entry.miss_count; |
| 70 row.appendChild(document.createElement('td')).textContent = | 70 row.appendChild(document.createElement('td')).textContent = |
| 71 entry.confidence; | 71 entry.confidence; |
| 72 | 72 |
| 73 databaseSection.appendChild(row); | 73 databaseSection.appendChild(row); |
| 74 } | 74 } |
| 75 } | 75 } |
| 76 $('countBanner').textContent = 'Entries: ' + databaseSection.children.length; | 76 $('countBanner').textContent = 'Entries: ' + databaseSection.children.length; |
| 77 $('countBanner').textContent += ' Hit Weight: ' + database.hit_weight; | |
| 78 } | 77 } |
| 79 | 78 |
| 80 document.addEventListener('DOMContentLoaded', | 79 document.addEventListener('DOMContentLoaded', |
| 81 requestAutocompleteActionPredictorDb); | 80 requestAutocompleteActionPredictorDb); |
| OLD | NEW |