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

Side by Side Diff: experimental/flocking_geese/js/slider_event.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
« no previous file with comments | « experimental/flocking_geese/js/slider.js ('k') | experimental/flocking_geese/js/speedometer.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 * @file
7 * The event dispatched by a Slider.
8 */
9
10 goog.provide('SliderEvent');
11
12 goog.require('goog.events');
13 goog.require('goog.events.Event');
14
15 /**
16 * A slider event. Contains the slider value and stepValue.
17 * @param {!number} value The slider's value (measured in pixels).
18 * @param {!number} stepValue The corresponding step value of the slider.
19 * @param {?Element} opt_target Reference to the object that is the target of
20 * this event. It has to implement the {@code EventTarget} interface
21 * declared at {@link http://developer.mozilla.org/en/DOM/EventTarget}.
22 * @constructor
23 * @extends {goog.Event}
24 */
25 SliderEvent = function(value, stepValue, opt_target) {
26 goog.events.Event.call(this, SliderEvent.EventType.CHANGE, opt_target);
27
28 /**
29 * Cached properties.
30 * @type {number}
31 */
32 this.value = value;
33 this.stepValue = stepValue;
34 }
35 goog.inherits(SliderEvent, goog.events.Event);
36
37 /**
38 * The ids used for slider event types.
39 * @enum {string}
40 */
41 SliderEvent.EventType = {
42 CHANGE: 'sliderchanged' // The slider's value changed.
43 };
44
45 /**
46 * Override of disposeInternal() to dispose of retained objects and unhook all
47 * events.
48 * @override
49 */
50 SliderEvent.prototype.disposeInternal = function() {
51 SliderEvent.superClass_.disposeInternal.call(this);
52 }
53
OLDNEW
« no previous file with comments | « experimental/flocking_geese/js/slider.js ('k') | experimental/flocking_geese/js/speedometer.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698