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

Side by Side Diff: experimental/conways_life/events/dragger.js

Issue 10928195: First round of dead file removal (Closed) Base URL: https://github.com/samclegg/nativeclient-sdk.git@master
Patch Set: Created 8 years, 3 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2011 (c) The Native Client Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 /**
6 * @fileoverview Implement the mouse drag wrapper class, Dragger, that
7 * produces simple mouse-dragged events. These work like mouse-moved events,
8 * only they are sent while a mouse button is down (that is, when the mouse is
9 * being dragged).
10 */
11
12 goog.provide('uikit.events.Dragger');
13
14 goog.require('goog.fx.Dragger');
15
16 /**
17 * Constructor for the Dragger object. This is a subclass of goog.fx.Dragger
18 * that overrides defaultAction() to do nothing, so that the drag event is
19 * simply sent onto its target, instead of moving its target. Overriding the
20 * defaultAction() method to do nothing implements a simple mouse-drag event.
21 * @param {?Object} opt_element Generate mouse-drag events using this element.
22 * The default element is the document.
23 * @constructor
24 * @extends {goog.fx.Dragger}
25 */
26 uikit.events.Dragger = function(opt_element) {
27 goog.fx.Dragger.call(this, opt_element || document);
28 };
29 goog.inherits(uikit.events.Dragger, goog.fx.Dragger);
30
31 /**
32 * Override defaultAction() to do nothing. Instead, the target listens for
33 * DRAG events and reacts to them by rolling the trackball.
34 * @param {number} x X-coordinate for target element.
35 * @param {number} y Y-coordinate for target element.
36 * @override
37 */
38 uikit.events.Dragger.prototype.defaultAction = function(x, y) {
39 // Do nothing. This overrides the default implementation that changes the
40 // position style properties of the target.
41 };
OLDNEW
« no previous file with comments | « experimental/conways_life/cws/screenshot_small.jpg ('k') | experimental/conways_life/events/event.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698