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

Unified Diff: samples-dev/swarm/swarm_ui_lib/touch/ScrollWatcher.dart

Issue 2828603002: Format samples and samples-dev directories. (Closed)
Patch Set: Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: samples-dev/swarm/swarm_ui_lib/touch/ScrollWatcher.dart
diff --git a/samples-dev/swarm/swarm_ui_lib/touch/ScrollWatcher.dart b/samples-dev/swarm/swarm_ui_lib/touch/ScrollWatcher.dart
index a6ade4eac99f6302e05b7704e9ebae6a33e68cae..2b0953982fe618f8f46078cc6e999b203b09e091 100644
--- a/samples-dev/swarm/swarm_ui_lib/touch/ScrollWatcher.dart
+++ b/samples-dev/swarm/swarm_ui_lib/touch/ScrollWatcher.dart
@@ -27,8 +27,8 @@ class ScrollWatcher {
Element _scrollerEl;
ScrollWatcher(Scroller scroller)
- : _scroller = scroller, _listeners = new List<ScrollListener>() {
- }
+ : _scroller = scroller,
+ _listeners = new List<ScrollListener>() {}
void addListener(ScrollListener listener) {
_listeners.add(listener);
@@ -38,8 +38,7 @@ class ScrollWatcher {
* Send the scroll event to all listeners.
* [decelerating] is true if the offset is changing because of deceleration.
*/
- void _dispatchScroll(num scrollX, num scrollY,
- [bool decelerating = false]) {
+ void _dispatchScroll(num scrollX, num scrollY, [bool decelerating = false]) {
for (final listener in _listeners) {
listener.onScrollerMoved(scrollX, scrollY, decelerating);
}
@@ -51,7 +50,9 @@ class ScrollWatcher {
*/
void initialize() {
_scrollerEl = _scroller.getElement();
- _scroller.onContentMoved.listen((e) { _onContentMoved(e); });
+ _scroller.onContentMoved.listen((e) {
+ _onContentMoved(e);
+ });
}
/**
« no previous file with comments | « samples-dev/swarm/swarm_ui_lib/touch/Momentum.dart ('k') | samples-dev/swarm/swarm_ui_lib/touch/Scrollbar.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698