Chromium Code Reviews| 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="../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 1957 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1968 recordUmaAction('HistoryPage_InitClearBrowsingData'); | 1968 recordUmaAction('HistoryPage_InitClearBrowsingData'); |
| 1969 chrome.send('clearBrowsingData'); | 1969 chrome.send('clearBrowsingData'); |
| 1970 } | 1970 } |
| 1971 | 1971 |
| 1972 /** | 1972 /** |
| 1973 * Shows the dialog for the user to confirm removal of selected history entries. | 1973 * Shows the dialog for the user to confirm removal of selected history entries. |
| 1974 */ | 1974 */ |
| 1975 function showConfirmationOverlay() { | 1975 function showConfirmationOverlay() { |
| 1976 $('alertOverlay').classList.add('showing'); | 1976 $('alertOverlay').classList.add('showing'); |
| 1977 $('overlay').hidden = false; | 1977 $('overlay').hidden = false; |
| 1978 $('alertOverlayCancel').focus(); | |
|
Dan Beam
2014/09/23 05:17:37
btw, the buttons are reversed ("Remove" is the can
Evan Stade
2014/09/23 20:48:52
I don't think that this restores the previous beha
Dan Beam
2014/09/23 20:50:22
i think this is better than the previous behavior
Dan Beam
2014/09/23 20:59:38
we looked at this together and it's not quite the
| |
| 1978 uber.invokeMethodOnParent('beginInterceptingEvents'); | 1979 uber.invokeMethodOnParent('beginInterceptingEvents'); |
| 1979 } | 1980 } |
| 1980 | 1981 |
| 1981 /** | 1982 /** |
| 1982 * Hides the confirmation overlay used to confirm selected history entries. | 1983 * Hides the confirmation overlay used to confirm selected history entries. |
| 1983 */ | 1984 */ |
| 1984 function hideConfirmationOverlay() { | 1985 function hideConfirmationOverlay() { |
| 1985 $('alertOverlay').classList.remove('showing'); | 1986 $('alertOverlay').classList.remove('showing'); |
| 1986 $('overlay').hidden = true; | 1987 $('overlay').hidden = true; |
| 1987 uber.invokeMethodOnParent('stopInterceptingEvents'); | 1988 uber.invokeMethodOnParent('stopInterceptingEvents'); |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2266 historyView.reload(); | 2267 historyView.reload(); |
| 2267 } | 2268 } |
| 2268 | 2269 |
| 2269 // Add handlers to HTML elements. | 2270 // Add handlers to HTML elements. |
| 2270 document.addEventListener('DOMContentLoaded', load); | 2271 document.addEventListener('DOMContentLoaded', load); |
| 2271 | 2272 |
| 2272 // This event lets us enable and disable menu items before the menu is shown. | 2273 // This event lets us enable and disable menu items before the menu is shown. |
| 2273 document.addEventListener('canExecute', function(e) { | 2274 document.addEventListener('canExecute', function(e) { |
| 2274 e.canExecute = true; | 2275 e.canExecute = true; |
| 2275 }); | 2276 }); |
| OLD | NEW |