| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "ui/touch_selection/touch_selection_controller_android.h" |
| 6 |
| 7 namespace ui { |
| 8 |
| 9 TouchSelectionControllerAndroid::TouchSelectionControllerAndroid( |
| 10 TouchSelectionControllerAndroidClient* client, |
| 11 base::TimeDelta tap_timeout, |
| 12 float tap_slop) |
| 13 : TouchSelectionController(client, tap_timeout, tap_slop, false), |
| 14 client_(client) { |
| 15 DCHECK(client_); |
| 16 } |
| 17 |
| 18 TouchSelectionControllerAndroid::~TouchSelectionControllerAndroid() { |
| 19 } |
| 20 |
| 21 void TouchSelectionControllerAndroid::OnSelectionEvent( |
| 22 SelectionEventType event, |
| 23 const gfx::PointF& position) { |
| 24 client_->OnSelectionEvent(event, position); |
| 25 } |
| 26 |
| 27 bool TouchSelectionControllerAndroid::SupportsAnimation() const { |
| 28 return client_->SupportsAnimation(); |
| 29 } |
| 30 |
| 31 void TouchSelectionControllerAndroid::SetNeedsAnimate() { |
| 32 client_->SetNeedsAnimate(); |
| 33 } |
| 34 |
| 35 scoped_ptr<TouchHandleDrawable> |
| 36 TouchSelectionControllerAndroid::CreateDrawable() { |
| 37 return client_->CreateDrawable(); |
| 38 } |
| 39 |
| 40 } // namespace ui |
| OLD | NEW |