Lines Matching refs:Command

8  * Command queue is the only way to modify images.
10 * Command execution is asynchronous (callback-based).
127 * @param {Command} command The command to execute.
156 * @param {Command} command Command to execute.
264 * Command object encapsulates an operation on an image and a way to visualize
267 * @param {string} name Command name.
270 function Command(name) {
277 Command.prototype.toString = function() {
278 return 'Command ' + this.name_;
293 Command.prototype.execute = function(document, srcCanvas, callback, uiContext) {
294 console.error('Command.prototype.execute not implemented');
304 Command.prototype.revertView = function(canvas, imageView) {
319 Command.prototype.createCanvas_ = function(
332 * @extends {Command}
334 Command.Rotate = function(rotate90) {
335 Command.call(this, 'rotate(' + rotate90 * 90 + 'deg)');
339 Command.Rotate.prototype = { __proto__: Command.prototype };
342 Command.Rotate.prototype.execute = function(
359 Command.Rotate.prototype.revertView = function(canvas, imageView) {
369 * @extends {Command}
371 Command.Crop = function(imageRect) {
372 Command.call(this, 'crop' + imageRect.toString());
376 Command.Crop.prototype = { __proto__: Command.prototype };
379 Command.Crop.prototype.execute = function(
392 Command.Crop.prototype.revertView = function(canvas, imageView) {
400 * @param {string} name Command name.
404 * @extends {Command}
406 Command.Filter = function(name, filter, message) {
407 Command.call(this, name);
412 Command.Filter.prototype = { __proto__: Command.prototype };
415 Command.Filter.prototype.execute = function(