OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ui/events/blink/input_scroll_elasticity_controller.h" | 5 #include "ui/events/blink/input_scroll_elasticity_controller.h" |
6 | 6 |
7 #include <math.h> | 7 #include <math.h> |
8 | 8 |
| 9 #include <algorithm> |
| 10 |
9 #include "base/bind.h" | 11 #include "base/bind.h" |
10 #include "cc/input/input_handler.h" | 12 #include "cc/input/input_handler.h" |
11 #include "ui/gfx/geometry/vector2d_conversions.h" | 13 #include "ui/gfx/geometry/vector2d_conversions.h" |
12 | 14 |
13 // InputScrollElasticityController is based on | 15 // InputScrollElasticityController is based on |
14 // WebKit/Source/platform/mac/InputScrollElasticityController.mm | 16 // WebKit/Source/platform/mac/InputScrollElasticityController.mm |
15 /* | 17 /* |
16 * Copyright (C) 2011 Apple Inc. All rights reserved. | 18 * Copyright (C) 2011 Apple Inc. All rights reserved. |
17 * | 19 * |
18 * Redistribution and use in source and binary forms, with or without | 20 * Redistribution and use in source and binary forms, with or without |
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
407 break; | 409 break; |
408 default: | 410 default: |
409 // These cases should not be hit because the stretch must be zero in the | 411 // These cases should not be hit because the stretch must be zero in the |
410 // Inactive and MomentumScroll states. | 412 // Inactive and MomentumScroll states. |
411 NOTREACHED(); | 413 NOTREACHED(); |
412 break; | 414 break; |
413 } | 415 } |
414 } | 416 } |
415 | 417 |
416 } // namespace ui | 418 } // namespace ui |
OLD | NEW |