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