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

Unified Diff: chrome/browser/resources/downloads/manager.js

Issue 1281483008: Move downloads.FocusRow.shouldFocus to cr.ui.FocusRow.isFocusable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@focus-row2
Patch Set: whoops Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/downloads/focus_row.js ('k') | ui/webui/resources/js/cr/ui/focus_row.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/downloads/manager.js
diff --git a/chrome/browser/resources/downloads/manager.js b/chrome/browser/resources/downloads/manager.js
index e7c01e220d84cb7feffabfc35d63fd0475e20727..a11d8496ae57baf90710d21d954badc31fe7fd8c 100644
--- a/chrome/browser/resources/downloads/manager.js
+++ b/chrome/browser/resources/downloads/manager.js
@@ -133,7 +133,7 @@ cr.define('downloads', function() {
var focusRow = this.decorateItem_(item);
if (focusRow.contains(activeElement) &&
- !downloads.FocusRow.shouldFocus(activeElement)) {
+ !cr.ui.FocusRow.isFocusable(activeElement)) {
focusRow.getEquivalentElement(activeElement).focus();
}
},
@@ -154,7 +154,7 @@ cr.define('downloads', function() {
this.focusGrid_.addRow(focusRow);
if (focusRow.contains(activeElement) &&
- !downloads.FocusRow.shouldFocus(activeElement)) {
+ !cr.ui.FocusRow.isFocusable(activeElement)) {
focusRow.getEquivalentElement(activeElement).focus();
}
}, this);
« no previous file with comments | « chrome/browser/resources/downloads/focus_row.js ('k') | ui/webui/resources/js/cr/ui/focus_row.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698