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

Side by Side Diff: ui/file_manager/gallery/js/slide_mode.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, 1 month 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
« no previous file with comments | « ui/file_manager/gallery/js/ribbon.js ('k') | ui/file_manager/image_loader/background.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 'use strict';
6
7 /** 5 /**
8 * 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
9 * between the images and to edit an image. 7 * between the images and to edit an image.
10 * 8 *
11 * @param {Element} container Main container element. 9 * @param {Element} container Main container element.
12 * @param {Element} content Content container element. 10 * @param {Element} content Content container element.
13 * @param {Element} toolbar Toolbar element. 11 * @param {Element} toolbar Toolbar element.
14 * @param {ImageEditor.Prompt} prompt Prompt. 12 * @param {ImageEditor.Prompt} prompt Prompt.
15 * @param {ErrorBanner} errorBanner Error banner. 13 * @param {ErrorBanner} errorBanner Error banner.
16 * @param {cr.ui.ArrayDataModel} dataModel Data model. 14 * @param {cr.ui.ArrayDataModel} dataModel Data model.
(...skipping 1545 matching lines...) Expand 10 before | Expand all | Expand 10 after
1562 TouchHandler.prototype.onMouseWheel_ = function(event) { 1560 TouchHandler.prototype.onMouseWheel_ = function(event) {
1563 var viewport = this.slideMode_.getViewport(); 1561 var viewport = this.slideMode_.getViewport();
1564 if (!this.enabled_ || !viewport.isZoomed()) 1562 if (!this.enabled_ || !viewport.isZoomed())
1565 return; 1563 return;
1566 this.stopOperation(); 1564 this.stopOperation();
1567 viewport.setOffset( 1565 viewport.setOffset(
1568 viewport.getOffsetX() + event.wheelDeltaX, 1566 viewport.getOffsetX() + event.wheelDeltaX,
1569 viewport.getOffsetY() + event.wheelDeltaY); 1567 viewport.getOffsetY() + event.wheelDeltaY);
1570 this.slideMode_.applyViewportChange(); 1568 this.slideMode_.applyViewportChange();
1571 }; 1569 };
OLDNEW
« no previous file with comments | « ui/file_manager/gallery/js/ribbon.js ('k') | ui/file_manager/image_loader/background.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698