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 2387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2403 historyView.reload(); | 2402 historyView.reload(); |
2404 } | 2403 } |
2405 | 2404 |
2406 // Add handlers to HTML elements. | 2405 // Add handlers to HTML elements. |
2407 document.addEventListener('DOMContentLoaded', load); | 2406 document.addEventListener('DOMContentLoaded', load); |
2408 | 2407 |
2409 // This event lets us enable and disable menu items before the menu is shown. | 2408 // This event lets us enable and disable menu items before the menu is shown. |
2410 document.addEventListener('canExecute', function(e) { | 2409 document.addEventListener('canExecute', function(e) { |
2411 e.canExecute = true; | 2410 e.canExecute = true; |
2412 }); | 2411 }); |
OLD | NEW |