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

Side by Side Diff: ui/file_manager/file_manager/foreground/js/file_manager_commands.js

Issue 676633002: Remove file-level 'use strict' from file_manager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 unified diff | Download patch
OLDNEW
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 'use strict';
6
7 /** 5 /**
8 * TODO(dzvorygin): Here we use this hack, since 'hidden' is standard 6 * TODO(dzvorygin): Here we use this hack, since 'hidden' is standard
9 * attribute and we can't use it's setter as usual. 7 * attribute and we can't use it's setter as usual.
10 * @param {boolean} value New value of hidden property. 8 * @param {boolean} value New value of hidden property.
11 */ 9 */
12 cr.ui.Command.prototype.setHidden = function(value) { 10 cr.ui.Command.prototype.setHidden = function(value) {
13 this.__lookupSetter__('hidden').call(this, value); 11 this.__lookupSetter__('hidden').call(this, value);
14 }; 12 };
15 13
16 /** 14 /**
(...skipping 927 matching lines...) Expand 10 before | Expand all | Expand 10 after
944 /** 942 /**
945 * Open inspector for background page. 943 * Open inspector for background page.
946 * @type {Command} 944 * @type {Command}
947 */ 945 */
948 CommandHandler.COMMANDS_['inspect-background'] = /** @type {Command} */ ({ 946 CommandHandler.COMMANDS_['inspect-background'] = /** @type {Command} */ ({
949 execute: function(event, fileManager) { 947 execute: function(event, fileManager) {
950 chrome.fileManagerPrivate.openInspector('background'); 948 chrome.fileManagerPrivate.openInspector('background');
951 }, 949 },
952 canExecute: CommandUtil.canExecuteAlways 950 canExecute: CommandUtil.canExecuteAlways
953 }); 951 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698