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

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

Issue 1608143002: support animated GIF (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add assert to pass closure compiler Created 4 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 side-by-side diff with in-line comments
Download patch
Index: ui/file_manager/gallery/js/image_editor/image_editor.js
diff --git a/ui/file_manager/gallery/js/image_editor/image_editor.js b/ui/file_manager/gallery/js/image_editor/image_editor.js
index ae2987a83d52662a269c570f86811e7969d39f4b..9f8679adbeda01cd9f69e747cad3cf1aeeb6708c 100644
--- a/ui/file_manager/gallery/js/image_editor/image_editor.js
+++ b/ui/file_manager/gallery/js/image_editor/image_editor.js
@@ -225,7 +225,7 @@ ImageEditor.prototype.openSession = function(
item.setAsOriginal();
self.commandQueue_ = new CommandQueue(
- self.container_.ownerDocument, assert(self.imageView_.getCanvas()),
+ self.container_.ownerDocument, assert(self.imageView_.getImage()),
saveFunction);
self.commandQueue_.attachUI(
self.getImageView(), self.getPrompt(), self.filesToast_,
@@ -327,10 +327,10 @@ ImageEditor.prototype.updateUndoRedo = function() {
};
/**
- * @return {HTMLCanvasElement} The current image canvas.
+ * @return {HTMLCanvasElement|HTMLImageElement} The current image.
*/
-ImageEditor.prototype.getCanvas = function() {
- return this.getImageView().getCanvas();
+ImageEditor.prototype.getImage = function() {
+ return this.getImageView().getImage();
};
/**
« no previous file with comments | « ui/file_manager/gallery/js/image_editor/image_adjust.js ('k') | ui/file_manager/gallery/js/image_editor/image_util.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698