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

Side by Side Diff: client/touch/Scroller.dart

Issue 8680038: Revert initializing formals change in client code (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 9 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « client/touch/Geometry.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /** 5 /**
6 * Implementation of a custom scrolling behavior. 6 * Implementation of a custom scrolling behavior.
7 * This behavior overrides native scrolling for an area. This area can be a 7 * This behavior overrides native scrolling for an area. This area can be a
8 * single defined part of a page, the entire page, or several different parts 8 * single defined part of a page, the entire page, or several different parts
9 * of a page. 9 * of a page.
10 * 10 *
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 127
128 Size _scrollSize; 128 Size _scrollSize;
129 Size _contentSize; 129 Size _contentSize;
130 Coordinate _minPoint; 130 Coordinate _minPoint;
131 bool _isStopping = false; 131 bool _isStopping = false;
132 Coordinate _contentStartOffset; 132 Coordinate _contentStartOffset;
133 bool _started = false; 133 bool _started = false;
134 bool _activeGesture = false; 134 bool _activeGesture = false;
135 ScrollWatcher _scrollWatcher; 135 ScrollWatcher _scrollWatcher;
136 136
137 Scroller(Element scrollableElem, [verticalEnabled = false, 137 Scroller(Element scrollableElem, [this.verticalEnabled = false,
138 horizontalEnabled = false, 138 this.horizontalEnabled = false,
139 momentumEnabled = true, 139 momentumEnabled = true,
140 lookupContentSizeDelegate = null, 140 lookupContentSizeDelegate = null,
141 num defaultDecelerationFactor = 1, 141 num defaultDecelerationFactor = 1,
142 int scrollTechnique = null, bool capture = false]) 142 int scrollTechnique = null, bool capture = false])
143 : this.verticalEnabled = verticalEnabled, 143 : _momentumEnabled = momentumEnabled,
144 this.horizontalEnabled = horizontalEnabled, 144 _lookupContentSizeDelegate = lookupContentSizeDelegate,
145 this._momentumEnabled = momentumEnabled,
146 this._lookupContentSizeDelegate = lookupContentSizeDelegate,
147 _element = scrollableElem, 145 _element = scrollableElem,
148 _frame = scrollableElem.parent, 146 _frame = scrollableElem.parent,
149 _scrollTechnique = scrollTechnique !== null 147 _scrollTechnique = scrollTechnique !== null
150 ? scrollTechnique : ScrollerScrollTechnique.TRANSFORM_3D, 148 ? scrollTechnique : ScrollerScrollTechnique.TRANSFORM_3D,
151 _minPoint = new Coordinate(0, 0), 149 _minPoint = new Coordinate(0, 0),
152 _maxPoint = new Coordinate(0, 0), 150 _maxPoint = new Coordinate(0, 0),
153 _maxOffset = new Coordinate(0, 0), 151 _maxOffset = new Coordinate(0, 0),
154 _minOffset = new Coordinate(0, 0), 152 _minOffset = new Coordinate(0, 0),
155 _contentOffset = new Coordinate(0, 0) { 153 _contentOffset = new Coordinate(0, 0) {
156 _touchHandler = new TouchHandler(this, scrollableElem.parent); 154 _touchHandler = new TouchHandler(this, scrollableElem.parent);
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after
724 for (EventListener listener in _listeners) { 722 for (EventListener listener in _listeners) {
725 listener(evt); 723 listener(evt);
726 } 724 }
727 } 725 }
728 } 726 }
729 727
730 class ScrollerScrollTechnique { 728 class ScrollerScrollTechnique {
731 static final TRANSFORM_3D = 1; 729 static final TRANSFORM_3D = 1;
732 static final RELATIVE_POSITIONING = 2; 730 static final RELATIVE_POSITIONING = 2;
733 } 731 }
OLDNEW
« no previous file with comments | « client/touch/Geometry.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698