From 87ab798dafa1099623b8286c07a3bc24f112c392 Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Wed, 20 Jan 2016 15:55:47 -0800 Subject: [PATCH] Move ClampedSimulation into newton ClampedSimulation makes more sense at the newton layer because it's dealing entirely with newton concepts. --- packages/flutter/lib/animation.dart | 1 - packages/newton/lib/newton.dart | 3 ++- .../src/animation => newton/lib/src}/clamped_simulation.dart | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) rename packages/{flutter/lib/src/animation => newton/lib/src}/clamped_simulation.dart (88%) diff --git a/packages/flutter/lib/animation.dart b/packages/flutter/lib/animation.dart index fd1afc53a2..939eb3a11b 100644 --- a/packages/flutter/lib/animation.dart +++ b/packages/flutter/lib/animation.dart @@ -10,7 +10,6 @@ library animation; export 'src/animation/animation.dart'; export 'src/animation/animation_controller.dart'; export 'src/animation/animations.dart'; -export 'src/animation/clamped_simulation.dart'; export 'src/animation/curves.dart'; export 'src/animation/forces.dart'; export 'src/animation/listener_helpers.dart'; diff --git a/packages/newton/lib/newton.dart b/packages/newton/lib/newton.dart index cc32dc016e..855de8cc91 100644 --- a/packages/newton/lib/newton.dart +++ b/packages/newton/lib/newton.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2015 The Chromium Authors. All rights reserved. +// Copyright 2016 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. @@ -12,6 +12,7 @@ part 'src/simulation_group.dart'; part 'src/tolerance.dart'; part 'src/utils.dart'; +part 'src/clamped_simulation.dart'; part 'src/friction_simulation.dart'; part 'src/gravity_simulation.dart'; part 'src/scroll_simulation.dart'; diff --git a/packages/flutter/lib/src/animation/clamped_simulation.dart b/packages/newton/lib/src/clamped_simulation.dart similarity index 88% rename from packages/flutter/lib/src/animation/clamped_simulation.dart rename to packages/newton/lib/src/clamped_simulation.dart index d3d14c7dd2..b485287c28 100644 --- a/packages/flutter/lib/src/animation/clamped_simulation.dart +++ b/packages/newton/lib/src/clamped_simulation.dart @@ -1,8 +1,8 @@ -// Copyright 2015 The Chromium Authors. All rights reserved. +// Copyright 2016 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. -import 'package:newton/newton.dart'; +part of newton; class ClampedSimulation extends Simulation { ClampedSimulation(this.simulation, {