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

Side by Side Diff: chrome/browser/resources/file_manager/js/directory_contents.js

Issue 12211123: [Cleanup] Files.app: Add missing semi-colons after function declaration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | Annotate | Revision Log
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 /** 5 /**
6 * @param {MetadataCache} metadataCache Metadata cache service. 6 * @param {MetadataCache} metadataCache Metadata cache service.
7 * @param {cr.ui.ArrayDataModel} fileList The file list. 7 * @param {cr.ui.ArrayDataModel} fileList The file list.
8 * @param {boolean} showHidden If files starting with '.' are shown. 8 * @param {boolean} showHidden If files starting with '.' are shown.
9 * @constructor 9 * @constructor
10 */ 10 */
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 375
376 /** 376 /**
377 * @param {string} name Directory name. 377 * @param {string} name Directory name.
378 * @param {function} successCallback Called on success. 378 * @param {function} successCallback Called on success.
379 * @param {function} errorCallback On error. 379 * @param {function} errorCallback On error.
380 */ 380 */
381 DirectoryContentsBasic.prototype.createDirectory = function( 381 DirectoryContentsBasic.prototype.createDirectory = function(
382 name, successCallback, errorCallback) { 382 name, successCallback, errorCallback) {
383 var onSuccess = function(newEntry) { 383 var onSuccess = function(newEntry) {
384 this.prefetchMetadata([newEntry], function() {successCallback(newEntry);}); 384 this.prefetchMetadata([newEntry], function() {successCallback(newEntry);});
385 } 385 };
386 386
387 this.entry_.getDirectory(name, {create: true, exclusive: true}, 387 this.entry_.getDirectory(name, {create: true, exclusive: true},
388 onSuccess.bind(this), errorCallback); 388 onSuccess.bind(this), errorCallback);
389 }; 389 };
390 390
391 /** 391 /**
392 * Delay to be used for drive search scan. 392 * Delay to be used for drive search scan.
393 * The goal is to reduce the number of server requests when user is typing the 393 * The goal is to reduce the number of server requests when user is typing the
394 * query. 394 * query.
395 */ 395 */
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
627 }.bind(this); 627 }.bind(this);
628 628
629 getNextChunk(); 629 getNextChunk();
630 }; 630 };
631 631
632 /** 632 /**
633 * We get results for each directory in one go in scanDirectory_. 633 * We get results for each directory in one go in scanDirectory_.
634 */ 634 */
635 DirectoryContentsLocalSearch.prototype.readNextChunk = function() { 635 DirectoryContentsLocalSearch.prototype.readNextChunk = function() {
636 }; 636 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698