| OLD | NEW |
| 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 * @constructor | 6 * @constructor |
| 7 * @param {MetadataCache} metadataCache Metadata cache service. | 7 * @param {MetadataCache} metadataCache Metadata cache service. |
| 8 * @param {cr.ui.ArrayDataModel} fileList The file list. | 8 * @param {cr.ui.ArrayDataModel} fileList The file list. |
| 9 * @param {boolean} showHidden If files starting with '.' are shown. | 9 * @param {boolean} showHidden If files starting with '.' are shown. |
| 10 */ | 10 */ |
| (...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 506 } | 506 } |
| 507 this.nextFeed_ = nextFeed; | 507 this.nextFeed_ = nextFeed; |
| 508 this.fetchedResultsNum_ += entries.length; | 508 this.fetchedResultsNum_ += entries.length; |
| 509 if (this.fetchedResultsNum_ >= DirectoryContentsGDataSearch.MAX_RESULTS) | 509 if (this.fetchedResultsNum_ >= DirectoryContentsGDataSearch.MAX_RESULTS) |
| 510 this.nextFeed_ = ''; | 510 this.nextFeed_ = ''; |
| 511 | 511 |
| 512 this.done_ = (this.nextFeed_ == ''); | 512 this.done_ = (this.nextFeed_ == ''); |
| 513 this.onNewEntries(entries); | 513 this.onNewEntries(entries); |
| 514 }).bind(this); | 514 }).bind(this); |
| 515 | 515 |
| 516 chrome.fileBrowserPrivate.searchGData(this.query_, | 516 chrome.fileBrowserPrivate.searchDrive(this.query_, |
| 517 this.nextFeed_, | 517 this.nextFeed_, |
| 518 searchCallback); | 518 searchCallback); |
| 519 }; | 519 }; |
| 520 | 520 |
| 521 | 521 |
| 522 /** | 522 /** |
| 523 * @constructor | 523 * @constructor |
| 524 * @extends {DirectoryContents} | 524 * @extends {DirectoryContents} |
| 525 * @param {FileListContext} context File list context. | 525 * @param {FileListContext} context File list context. |
| 526 * @param {DirectoryEntry} dirEntry Current directory. | 526 * @param {DirectoryEntry} dirEntry Current directory. |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 634 }.bind(this); | 634 }.bind(this); |
| 635 | 635 |
| 636 getNextChunk(); | 636 getNextChunk(); |
| 637 }; | 637 }; |
| 638 | 638 |
| 639 /** | 639 /** |
| 640 * We get results for each directory in one go in scanDirectory_. | 640 * We get results for each directory in one go in scanDirectory_. |
| 641 */ | 641 */ |
| 642 DirectoryContentsLocalSearch.prototype.readNextChunk = function() { | 642 DirectoryContentsLocalSearch.prototype.readNextChunk = function() { |
| 643 }; | 643 }; |
| OLD | NEW |