| 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..6b6bea9b342f3096de53adecabe998bd8103a1ca 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 focus to console tab.
|
| + * @type {Command}
|
| + */
|
| +CommandHandler.COMMANDS_['inspect-console'] = {
|
| + execute: function(event, fileManager) {
|
| + chrome.fileBrowserPrivate.openInspector('console');
|
| + },
|
| + canExecute: CommandUtil.canExecuteAlways
|
| +};
|
| +
|
| +/**
|
| + * Open inspector for foreground page and start element inspection.
|
| + * @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
|
| +};
|
| +
|
|
|