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

Unified Diff: ui/file_manager/gallery/js/image_editor/image_view.js

Issue 395083002: Gallery: Add animation when zooming pictures. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/file_manager/gallery/js/image_editor/viewport.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/gallery/js/image_editor/image_view.js
diff --git a/ui/file_manager/gallery/js/image_editor/image_view.js b/ui/file_manager/gallery/js/image_editor/image_view.js
index 23b32704c3f9d623041e8f76ee57e15dabab5a00..52fe9d4c3065543d4e0e665d655bb6692930bac1 100644
--- a/ui/file_manager/gallery/js/image_editor/image_view.js
+++ b/ui/file_manager/gallery/js/image_editor/image_view.js
@@ -126,6 +126,17 @@ ImageView.prototype.draw = function() {
};
/**
+ * Applies the viewport change that does not affect the screen cache size (zoom
+ * change or offset change) with animation.
+ */
+ImageView.prototype.applyViewportChange = function() {
+ this.setTransform(
+ this.screenImage_,
+ new ImageView.Effect.None(),
+ ImageView.Effect.DEFAULT_DURATION);
+};
+
+/**
* @return {number} The cache generation.
*/
ImageView.prototype.getCacheGeneration = function() {
« no previous file with comments | « no previous file | ui/file_manager/gallery/js/image_editor/viewport.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698