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 chrome.send('requestAutocompleteActionPredictorDb'); | 9 chrome.send('requestAutocompleteActionPredictorDb'); |
10 } | 10 } |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 entry.hit_count; | 65 entry.hit_count; |
66 row.appendChild(document.createElement('td')).textContent = | 66 row.appendChild(document.createElement('td')).textContent = |
67 entry.miss_count; | 67 entry.miss_count; |
68 row.appendChild(document.createElement('td')).textContent = | 68 row.appendChild(document.createElement('td')).textContent = |
69 entry.confidence; | 69 entry.confidence; |
70 | 70 |
71 databaseSection.appendChild(row); | 71 databaseSection.appendChild(row); |
72 } | 72 } |
73 } | 73 } |
74 $('countBanner').textContent = 'Entries: ' + databaseSection.children.length; | 74 $('countBanner').textContent = 'Entries: ' + databaseSection.children.length; |
75 $('countBanner').textContent += ' Hit Weight: ' + database.hit_weight; | |
76 } | 75 } |
77 | 76 |
78 document.addEventListener('DOMContentLoaded', | 77 document.addEventListener('DOMContentLoaded', |
79 requestAutocompleteActionPredictorDb); | 78 requestAutocompleteActionPredictorDb); |
OLD | NEW |