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

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

Issue 130093003: Accessibility: chrome://history keyboarding issues. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
« 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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 224
225 // Support clicking anywhere inside the entry box. 225 // Support clicking anywhere inside the entry box.
226 entryBox.addEventListener('click', function(e) { 226 entryBox.addEventListener('click', function(e) {
227 e.currentTarget.querySelector('a').click(); 227 e.currentTarget.querySelector('a').click();
228 }); 228 });
229 } else { 229 } else {
230 var dropDown = createElementWithClassName('button', 'drop-down'); 230 var dropDown = createElementWithClassName('button', 'drop-down');
231 dropDown.value = 'Open action menu'; 231 dropDown.value = 'Open action menu';
232 dropDown.title = loadTimeData.getString('actionMenuDescription'); 232 dropDown.title = loadTimeData.getString('actionMenuDescription');
233 dropDown.setAttribute('menu', '#action-menu'); 233 dropDown.setAttribute('menu', '#action-menu');
234 dropDown.setAttribute('aria-haspopup', 'true');
234 cr.ui.decorate(dropDown, MenuButton); 235 cr.ui.decorate(dropDown, MenuButton);
235 236
236 dropDown.addEventListener('mousedown', setActiveVisit); 237 dropDown.addEventListener('mousedown', setActiveVisit);
237 dropDown.addEventListener('focus', setActiveVisit); 238 dropDown.addEventListener('focus', setActiveVisit);
238 239
239 // Prevent clicks on the drop down from affecting the checkbox. 240 // Prevent clicks on the drop down from affecting the checkbox.
240 dropDown.addEventListener('click', function(e) { e.preventDefault(); }); 241 dropDown.addEventListener('click', function(e) { e.preventDefault(); });
241 entryBox.appendChild(dropDown); 242 entryBox.appendChild(dropDown);
242 } 243 }
243 244
(...skipping 1770 matching lines...) Expand 10 before | Expand all | Expand 10 after
2014 historyView.reload(); 2015 historyView.reload();
2015 } 2016 }
2016 2017
2017 // Add handlers to HTML elements. 2018 // Add handlers to HTML elements.
2018 document.addEventListener('DOMContentLoaded', load); 2019 document.addEventListener('DOMContentLoaded', load);
2019 2020
2020 // This event lets us enable and disable menu items before the menu is shown. 2021 // This event lets us enable and disable menu items before the menu is shown.
2021 document.addEventListener('canExecute', function(e) { 2022 document.addEventListener('canExecute', function(e) {
2022 e.canExecute = true; 2023 e.canExecute = true;
2023 }); 2024 });
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