Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Side by Side Diff: chrome/browser/resources/history/history.js

Issue 618833004: history: include search results in focus grid. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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="../uber/uber_utils.js"> 5 <include src="../uber/uber_utils.js">
6 <include src="history_focus_manager.js"> 6 <include src="history_focus_manager.js">
7 7
8 /////////////////////////////////////////////////////////////////////////////// 8 ///////////////////////////////////////////////////////////////////////////////
9 // Globals: 9 // Globals:
10 /** @const */ var RESULTS_PER_PAGE = 150; 10 /** @const */ var RESULTS_PER_PAGE = 150;
(...skipping 1578 matching lines...) Expand 10 before | Expand all | Expand 10 after
1589 1589
1590 // Add all the days and their visits to the page. 1590 // Add all the days and their visits to the page.
1591 this.resultDiv_.appendChild(resultsFragment); 1591 this.resultDiv_.appendChild(resultsFragment);
1592 } 1592 }
1593 // After the results have been added to the DOM, determine the size of the 1593 // After the results have been added to the DOM, determine the size of the
1594 // time column. 1594 // time column.
1595 this.setTimeColumnWidth_(); 1595 this.setTimeColumnWidth_();
1596 }; 1596 };
1597 1597
1598 var focusGridRowSelector = [ 1598 var focusGridRowSelector = [
1599 '.day-results > .entry:not(.fade-out)', 1599 ':-webkit-any(.day-results, .search-results) > .entry:not(.fade-out)',
1600 '.expand .grouped .entry:not(.fade-out)', 1600 '.expand .grouped .entry:not(.fade-out)',
1601 '.site-domain-wrapper' 1601 '.site-domain-wrapper'
1602 ].join(', '); 1602 ].join(', ');
1603 1603
1604 var focusGridColumnSelector = [ 1604 var focusGridColumnSelector = [
1605 '.entry-box input', 1605 '.entry-box input',
1606 '.bookmark-section.starred', 1606 '.bookmark-section.starred',
1607 '.title a', 1607 '.title a',
1608 '.drop-down', 1608 '.drop-down',
1609 '.domain-checkbox', 1609 '.domain-checkbox',
(...skipping 665 matching lines...) Expand 10 before | Expand all | Expand 10 after
2275 historyView.reload(); 2275 historyView.reload();
2276 } 2276 }
2277 2277
2278 // Add handlers to HTML elements. 2278 // Add handlers to HTML elements.
2279 document.addEventListener('DOMContentLoaded', load); 2279 document.addEventListener('DOMContentLoaded', load);
2280 2280
2281 // This event lets us enable and disable menu items before the menu is shown. 2281 // This event lets us enable and disable menu items before the menu is shown.
2282 document.addEventListener('canExecute', function(e) { 2282 document.addEventListener('canExecute', function(e) {
2283 e.canExecute = true; 2283 e.canExecute = true;
2284 }); 2284 });
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698