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

Side by Side Diff: ui/file_manager/gallery/js/slide_mode.js

Issue 2640673002: (WIP) Use generator to generate externs for chrome.fileManagerPrivate API.
Patch Set: Compile passes Created 3 years, 11 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 * Slide mode displays a single image and has a set of controls to navigate 6 * Slide mode displays a single image and has a set of controls to navigate
7 * between the images and to edit an image. 7 * between the images and to edit an image.
8 * 8 *
9 * @param {!HTMLElement} container Main container element. 9 * @param {!HTMLElement} container Main container element.
10 * @param {!HTMLElement} content Content container element. 10 * @param {!HTMLElement} content Content container element.
(...skipping 1731 matching lines...) Expand 10 before | Expand all | Expand 10 after
1742 this.progressBarTimer_ = 0; 1742 this.progressBarTimer_ = 0;
1743 } 1743 }
1744 1744
1745 this.loadingItemUrl_ = undefined; 1745 this.loadingItemUrl_ = undefined;
1746 1746
1747 this.progressBar_.hidden = true; 1747 this.progressBar_.hidden = true;
1748 }; 1748 };
1749 1749
1750 /** 1750 /**
1751 * Updates progress bar. 1751 * Updates progress bar.
1752 * @param {!FileTransferStatus} status 1752 * @param {!chrome.fileManagerPrivate.FileTransferStatus} status
1753 * @private 1753 * @private
1754 */ 1754 */
1755 SlideMode.prototype.updateProgressBar_ = function(status) { 1755 SlideMode.prototype.updateProgressBar_ = function(status) {
1756 if (status.fileUrl !== this.loadingItemUrl_ || 1756 if (status.fileUrl !== this.loadingItemUrl_ ||
1757 status.num_total_jobs !== 1) { 1757 status.num_total_jobs !== 1) {
1758 // If user starts to download another image (or file), we cannot show 1758 // If user starts to download another image (or file), we cannot show
1759 // determinate progress bar anymore since total and processed are for all 1759 // determinate progress bar anymore since total and processed are for all
1760 // current downloads. 1760 // current downloads.
1761 this.progressBar_.setAttribute('indeterminate', true); 1761 this.progressBar_.setAttribute('indeterminate', true);
1762 return; 1762 return;
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
2144 /** 2144 /**
2145 * Handles mouse up events. 2145 * Handles mouse up events.
2146 * @param {!Event} event Wheel event. 2146 * @param {!Event} event Wheel event.
2147 * @private 2147 * @private
2148 */ 2148 */
2149 TouchHandler.prototype.onMouseUp_ = function(event) { 2149 TouchHandler.prototype.onMouseUp_ = function(event) {
2150 if (event.button !== 0) 2150 if (event.button !== 0)
2151 return; 2151 return;
2152 this.clickStarted_ = false; 2152 this.clickStarted_ = false;
2153 }; 2153 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698