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

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

Issue 1613233003: MD Downloads: make Ctrl+f invoke in-page search (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dl-vulcanize
Patch Set: rework, revulc Created 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/md_downloads/manager.js
diff --git a/chrome/browser/resources/md_downloads/manager.js b/chrome/browser/resources/md_downloads/manager.js
index 489663d94239268b8241a63bba5a79fc21de6d1f..e0bb5f94e66eb03e757a124d9bfbb03d8e310f7a 100644
--- a/chrome/browser/resources/md_downloads/manager.js
+++ b/chrome/browser/resources/md_downloads/manager.js
@@ -79,6 +79,9 @@ cr.define('downloads', function() {
case 'clear-all-command':
e.canExecute = this.$.toolbar.canClearAll();
break;
+ case 'find-command':
+ e.canExecute = true;
+ break;
}
},
@@ -91,6 +94,8 @@ cr.define('downloads', function() {
downloads.ActionService.getInstance().clearAll();
else if (e.command.id == 'undo-command')
downloads.ActionService.getInstance().undo();
+ else if (e.command.id == 'find-command')
+ this.$.toolbar.onFindCommand();
},
/** @private */

Powered by Google App Engine
This is Rietveld 408576698