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

Side by Side Diff: ui/file_manager/gallery/js/image_editor/image_buffer.js

Issue 792733002: Add type annotations to gallery/js/image_editor/image_view.js. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 6 years 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 * A stack of overlays that display itself and handle mouse events. 6 * A stack of overlays that display itself and handle mouse events.
7 * TODO(kaznacheev) Consider disbanding this class and moving 7 * TODO(kaznacheev) Consider disbanding this class and moving
8 * the functionality to individual objects that display anything or handle 8 * the functionality to individual objects that display anything or handle
9 * mouse events. 9 * mouse events.
10 * @constructor 10 * @constructor
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 */ 116 */
117 ImageBuffer.DoubleTapAction = { 117 ImageBuffer.DoubleTapAction = {
118 NOTHING: 0, 118 NOTHING: 0,
119 COMMIT: 1, 119 COMMIT: 1,
120 CANCEL: 2 120 CANCEL: 2
121 }; 121 };
122 122
123 /** 123 /**
124 * ImageBuffer.Overlay is a pluggable extension that modifies the outlook 124 * ImageBuffer.Overlay is a pluggable extension that modifies the outlook
125 * and the behavior of the ImageBuffer instance. 125 * and the behavior of the ImageBuffer instance.
126 * @class 126 * @constructor
127 * @struct
127 */ 128 */
128 ImageBuffer.Overlay = function() {}; 129 ImageBuffer.Overlay = function() {};
129 130
130 /** 131 /**
131 * TODO(JSDOC). 132 * TODO(JSDOC).
132 * @return {number} // TODO(JSDOC). 133 * @return {number} // TODO(JSDOC).
133 */ 134 */
134 ImageBuffer.Overlay.prototype.getZIndex = function() { return 0; }; 135 ImageBuffer.Overlay.prototype.getZIndex = function() { return 0; };
135 136
136 /** 137 /**
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 174
174 /** 175 /**
175 * TODO(JSDOC). 176 * TODO(JSDOC).
176 * @param {number} x // TODO(JSDOC). 177 * @param {number} x // TODO(JSDOC).
177 * @param {number} y // TODO(JSDOC). 178 * @param {number} y // TODO(JSDOC).
178 * @return {ImageBuffer.DoubleTapAction} // TODO(JSDOC). 179 * @return {ImageBuffer.DoubleTapAction} // TODO(JSDOC).
179 */ 180 */
180 ImageBuffer.Overlay.prototype.getDoubleTapAction = function(x, y) { 181 ImageBuffer.Overlay.prototype.getDoubleTapAction = function(x, y) {
181 return ImageBuffer.DoubleTapAction.NOTHING; 182 return ImageBuffer.DoubleTapAction.NOTHING;
182 }; 183 };
OLDNEW
« no previous file with comments | « ui/file_manager/gallery/js/gallery_item.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