| Index: ui/touch_selection/touch_selection_controller_android.cc
|
| diff --git a/ui/touch_selection/touch_selection_controller_android.cc b/ui/touch_selection/touch_selection_controller_android.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..50b9b95e45a0cda81659b1fb66979fe5c10690d2
|
| --- /dev/null
|
| +++ b/ui/touch_selection/touch_selection_controller_android.cc
|
| @@ -0,0 +1,40 @@
|
| +// 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.
|
| +
|
| +#include "ui/touch_selection/touch_selection_controller_android.h"
|
| +
|
| +namespace ui {
|
| +
|
| +TouchSelectionControllerAndroid::TouchSelectionControllerAndroid(
|
| + TouchSelectionControllerAndroidClient* client,
|
| + base::TimeDelta tap_timeout,
|
| + float tap_slop)
|
| + : TouchSelectionController(client, tap_timeout, tap_slop, false),
|
| + client_(client) {
|
| + DCHECK(client_);
|
| +}
|
| +
|
| +TouchSelectionControllerAndroid::~TouchSelectionControllerAndroid() {
|
| +}
|
| +
|
| +void TouchSelectionControllerAndroid::OnSelectionEvent(
|
| + SelectionEventType event,
|
| + const gfx::PointF& position) {
|
| + client_->OnSelectionEvent(event, position);
|
| +}
|
| +
|
| +bool TouchSelectionControllerAndroid::SupportsAnimation() const {
|
| + return client_->SupportsAnimation();
|
| +}
|
| +
|
| +void TouchSelectionControllerAndroid::SetNeedsAnimate() {
|
| + client_->SetNeedsAnimate();
|
| +}
|
| +
|
| +scoped_ptr<TouchHandleDrawable>
|
| +TouchSelectionControllerAndroid::CreateDrawable() {
|
| + return client_->CreateDrawable();
|
| +}
|
| +
|
| +} // namespace ui
|
|
|