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 // Globals: | 6 // Globals: |
7 var RESULTS_PER_PAGE = 150; | 7 var RESULTS_PER_PAGE = 150; |
8 var MAX_SEARCH_DEPTH_MONTHS = 18; | 8 var MAX_SEARCH_DEPTH_MONTHS = 18; |
9 | 9 |
10 // Amount of time between pageviews that we consider a 'break' in browsing, | 10 // Amount of time between pageviews that we consider a 'break' in browsing, |
(...skipping 1108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1119 historyView.reload(); | 1119 historyView.reload(); |
1120 } | 1120 } |
1121 | 1121 |
1122 // Add handlers to HTML elements. | 1122 // Add handlers to HTML elements. |
1123 document.addEventListener('DOMContentLoaded', load); | 1123 document.addEventListener('DOMContentLoaded', load); |
1124 | 1124 |
1125 // This event lets us enable and disable menu items before the menu is shown. | 1125 // This event lets us enable and disable menu items before the menu is shown. |
1126 document.addEventListener('canExecute', function(e) { | 1126 document.addEventListener('canExecute', function(e) { |
1127 e.canExecute = true; | 1127 e.canExecute = true; |
1128 }); | 1128 }); |
OLD | NEW |