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 <include src="../synthetic_middleclick.js"> |
5 <include src="../uber/uber_utils.js"> | 6 <include src="../uber/uber_utils.js"> |
6 <include src="history_focus_manager.js"> | 7 <include src="history_focus_manager.js"> |
7 | 8 |
8 /////////////////////////////////////////////////////////////////////////////// | 9 /////////////////////////////////////////////////////////////////////////////// |
9 // Globals: | 10 // Globals: |
10 /** @const */ var RESULTS_PER_PAGE = 150; | 11 /** @const */ var RESULTS_PER_PAGE = 150; |
11 | 12 |
12 // Amount of time between pageviews that we consider a 'break' in browsing, | 13 // Amount of time between pageviews that we consider a 'break' in browsing, |
13 // measured in milliseconds. | 14 // measured in milliseconds. |
14 /** @const */ var BROWSING_GAP_TIME = 15 * 60 * 1000; | 15 /** @const */ var BROWSING_GAP_TIME = 15 * 60 * 1000; |
(...skipping 2387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2402 historyView.reload(); | 2403 historyView.reload(); |
2403 } | 2404 } |
2404 | 2405 |
2405 // Add handlers to HTML elements. | 2406 // Add handlers to HTML elements. |
2406 document.addEventListener('DOMContentLoaded', load); | 2407 document.addEventListener('DOMContentLoaded', load); |
2407 | 2408 |
2408 // This event lets us enable and disable menu items before the menu is shown. | 2409 // This event lets us enable and disable menu items before the menu is shown. |
2409 document.addEventListener('canExecute', function(e) { | 2410 document.addEventListener('canExecute', function(e) { |
2410 e.canExecute = true; | 2411 e.canExecute = true; |
2411 }); | 2412 }); |
OLD | NEW |