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

Unified Diff: ui/file_manager/file_manager/foreground/js/file_manager_commands.js

Issue 299443009: Add keyboard shortcuts in Files.app to open inspector. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add comments. Created 6 years, 7 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 | « tools/metrics/histograms/histograms.xml ('k') | ui/file_manager/file_manager/main.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/file_manager/foreground/js/file_manager_commands.js
diff --git a/ui/file_manager/file_manager/foreground/js/file_manager_commands.js b/ui/file_manager/file_manager/foreground/js/file_manager_commands.js
index 6040974762f9181b74f2edbbc1c1597eaf022ecc..bdf54951c3720035552f9e20f23febf116aa8c14 100644
--- a/ui/file_manager/file_manager/foreground/js/file_manager_commands.js
+++ b/ui/file_manager/file_manager/foreground/js/file_manager_commands.js
@@ -905,3 +905,48 @@ CommandHandler.COMMANDS_['zoom-reset'] = {
},
canExecute: CommandUtil.canExecuteAlways
};
+
+/**
+ * Open inspector for foreground page.
+ * @type {Command}
+ */
+CommandHandler.COMMANDS_['inspect-normal'] = {
+ execute: function(event, fileManager) {
+ chrome.fileBrowserPrivate.openInspector('normal');
+ },
+ canExecute: CommandUtil.canExecuteAlways
+};
+
+/**
+ * Open inspector for foreground page and bring focus to the console.
+ * @type {Command}
+ */
+CommandHandler.COMMANDS_['inspect-console'] = {
+ execute: function(event, fileManager) {
+ chrome.fileBrowserPrivate.openInspector('console');
+ },
+ canExecute: CommandUtil.canExecuteAlways
+};
+
+/**
+ * Open inspector for foreground page in inspect element mode.
+ * @type {Command}
+ */
+CommandHandler.COMMANDS_['inspect-element'] = {
+ execute: function(event, fileManager) {
+ chrome.fileBrowserPrivate.openInspector('element');
+ },
+ canExecute: CommandUtil.canExecuteAlways
+};
+
+/**
+ * Open inspector for background page.
+ * @type {Command}
+ */
+CommandHandler.COMMANDS_['inspect-background'] = {
+ execute: function(event, fileManager) {
+ chrome.fileBrowserPrivate.openInspector('background');
+ },
+ canExecute: CommandUtil.canExecuteAlways
+};
+
« no previous file with comments | « tools/metrics/histograms/histograms.xml ('k') | ui/file_manager/file_manager/main.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698