Commit 41b8ffd6 authored by Adam Barth's avatar Adam Barth

Create gestures.dart

This patch is part of a sequence of patches towards fewer top-level libraries.
In this patch, the gesture libraries are combined into one gestures.dart
library.
parent b50c015f
......@@ -7,8 +7,6 @@
/// This library includes and re-exports all Sky animation classes.
library animation;
export 'package:sky/src/rendering/auto_layout.dart';
export 'src/animation/animated_simulation.dart';
export 'src/animation/animated_value.dart';
export 'src/animation/animation_performance.dart';
......
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/// The Sky gesture recognizers
library gestures;
export 'src/gestures/arena.dart';
export 'src/gestures/constants.dart';
export 'src/gestures/drag.dart';
export 'src/gestures/long_press.dart';
export 'src/gestures/pointer_router.dart';
export 'src/gestures/recognizer.dart';
export 'src/gestures/scale.dart';
export 'src/gestures/show_press.dart';
export 'src/gestures/tap.dart';
Sky Gestures
============
Code for recognizing and representing user interface gestures.
Dependencies
------------
* [`package:sky/base`](../base)
......@@ -4,9 +4,9 @@
import 'dart:sky' as sky;
import 'package:sky/gestures/arena.dart';
import 'package:sky/gestures/recognizer.dart';
import 'package:sky/gestures/constants.dart';
import 'package:sky/src/gestures/arena.dart';
import 'package:sky/src/gestures/recognizer.dart';
import 'package:sky/src/gestures/constants.dart';
enum DragState {
ready,
......
......@@ -4,10 +4,10 @@
import 'dart:sky' as sky;
import 'package:sky/gestures/arena.dart';
import 'package:sky/gestures/constants.dart';
import 'package:sky/gestures/pointer_router.dart';
import 'package:sky/gestures/recognizer.dart';
import 'package:sky/src/gestures/arena.dart';
import 'package:sky/src/gestures/constants.dart';
import 'package:sky/src/gestures/pointer_router.dart';
import 'package:sky/src/gestures/recognizer.dart';
typedef void GestureLongPressListener();
......
......@@ -5,11 +5,11 @@
import 'dart:async';
import 'dart:sky' as sky;
import 'package:sky/gestures/arena.dart';
import 'package:sky/gestures/constants.dart';
import 'package:sky/gestures/pointer_router.dart';
import 'package:sky/src/gestures/arena.dart';
import 'package:sky/src/gestures/constants.dart';
import 'package:sky/src/gestures/pointer_router.dart';
export 'package:sky/gestures/pointer_router.dart' show PointerRouter;
export 'package:sky/src/gestures/pointer_router.dart' show PointerRouter;
abstract class GestureRecognizer extends GestureArenaMember {
GestureRecognizer({ PointerRouter router }) : _router = router;
......
......@@ -2,12 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:math' as math;
import 'dart:sky' as sky;
import 'package:sky/gestures/arena.dart';
import 'package:sky/gestures/recognizer.dart';
import 'package:sky/gestures/constants.dart';
import 'package:sky/src/gestures/arena.dart';
import 'package:sky/src/gestures/recognizer.dart';
import 'package:sky/src/gestures/constants.dart';
enum ScaleState {
ready,
......
......@@ -4,9 +4,9 @@
import 'dart:sky' as sky;
import 'package:sky/gestures/arena.dart';
import 'package:sky/gestures/constants.dart';
import 'package:sky/gestures/recognizer.dart';
import 'package:sky/src/gestures/arena.dart';
import 'package:sky/src/gestures/constants.dart';
import 'package:sky/src/gestures/recognizer.dart';
typedef void GestureShowPressListener();
......
......@@ -4,8 +4,8 @@
import 'dart:sky' as sky;
import 'package:sky/gestures/arena.dart';
import 'package:sky/gestures/recognizer.dart';
import 'package:sky/src/gestures/arena.dart';
import 'package:sky/src/gestures/recognizer.dart';
typedef void GestureTapListener();
......
......@@ -5,8 +5,7 @@
import 'dart:sky' as sky;
import 'package:sky/animation.dart';
import 'package:sky/gestures/arena.dart';
import 'package:sky/gestures/pointer_router.dart';
import 'package:sky/gestures.dart';
import 'package:sky/src/rendering/box.dart';
import 'package:sky/src/rendering/hit_test.dart';
import 'package:sky/src/rendering/object.dart';
......
......@@ -3,7 +3,6 @@
// found in the LICENSE file.
import 'dart:async';
import 'dart:sky' as sky;
import 'package:sky/animation.dart';
import 'package:sky/theme/colors.dart' as colors;
......
......@@ -4,12 +4,7 @@
import 'dart:sky' as sky;
import 'package:sky/gestures/drag.dart';
import 'package:sky/gestures/long_press.dart';
import 'package:sky/gestures/scale.dart';
import 'package:sky/gestures/recognizer.dart';
import 'package:sky/gestures/show_press.dart';
import 'package:sky/gestures/tap.dart';
import 'package:sky/gestures.dart';
import 'package:sky/src/rendering/sky_binding.dart';
import 'package:sky/src/widgets/framework.dart';
......
......@@ -8,8 +8,7 @@ import 'dart:sky' as sky;
import 'package:newton/newton.dart';
import 'package:sky/animation.dart';
import 'package:sky/gestures/constants.dart';
import 'package:sky/gestures/drag.dart';
import 'package:sky/gestures.dart';
import 'package:sky/src/rendering/box.dart';
import 'package:sky/src/rendering/viewport.dart';
import 'package:sky/src/widgets/basic.dart';
......
import 'package:sky/gestures/arena.dart';
import 'package:sky/gestures.dart';
import 'package:test/test.dart';
typedef void GestureArenaCallback(Object key);
......
import 'package:quiver/testing/async.dart';
import 'package:sky/gestures/arena.dart';
import 'package:sky/gestures/long_press.dart';
import 'package:sky/gestures/pointer_router.dart';
import 'package:sky/gestures/show_press.dart';
import 'package:sky/gestures.dart';
import 'package:test/test.dart';
import '../engine/mock_events.dart';
......
import 'dart:sky' as sky;
import 'package:sky/gestures/pointer_router.dart';
import 'package:sky/gestures.dart';
import 'package:test/test.dart';
import '../engine/mock_events.dart';
......
import 'dart:sky' as sky;
import 'package:sky/gestures/arena.dart';
import 'package:sky/gestures/drag.dart';
import 'package:sky/gestures/pointer_router.dart';
import 'package:sky/gestures/tap.dart';
import 'package:sky/gestures.dart';
import 'package:test/test.dart';
import '../engine/mock_events.dart';
......
import 'package:quiver/testing/async.dart';
import 'package:sky/gestures/arena.dart';
import 'package:sky/gestures/pointer_router.dart';
import 'package:sky/gestures/show_press.dart';
import 'package:sky/gestures.dart';
import 'package:test/test.dart';
import '../engine/mock_events.dart';
......
import 'package:sky/gestures/arena.dart';
import 'package:sky/gestures/pointer_router.dart';
import 'package:sky/gestures/tap.dart';
import 'package:sky/gestures.dart';
import 'package:test/test.dart';
import '../engine/mock_events.dart';
......
import 'package:sky/gestures/arena.dart';
import 'package:sky/gestures/pointer_router.dart';
import 'package:sky/gestures/tap.dart';
import 'package:sky/widgets.dart';
import 'package:test/test.dart';
......@@ -68,8 +65,8 @@ void main() {
tester.pumpFrameWithoutChange();
tester.dispatchEvent(pointer.up(), location);
tester.pumpFrameWithoutChange();
});
}
\ No newline at end of file
}
import 'package:sky/animation.dart';
import 'package:sky/widgets.dart';
import 'package:test/test.dart';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment