| Index: content/browser/renderer_host/input/touch_selection_controller.cc
|
| diff --git a/content/browser/renderer_host/input/touch_selection_controller.cc b/content/browser/renderer_host/input/touch_selection_controller.cc
|
| index f27d6908bc96a6aec6e6dc0ee20ed40a93120e28..e904e283ee0716401cea8556353b8eba048032d1 100644
|
| --- a/content/browser/renderer_host/input/touch_selection_controller.cc
|
| +++ b/content/browser/renderer_host/input/touch_selection_controller.cc
|
| @@ -29,8 +29,12 @@ TouchHandleOrientation ToTouchHandleOrientation(cc::SelectionBoundType type) {
|
| } // namespace
|
|
|
| TouchSelectionController::TouchSelectionController(
|
| - TouchSelectionControllerClient* client)
|
| + TouchSelectionControllerClient* client,
|
| + base::TimeDelta tap_timeout,
|
| + float tap_slop)
|
| : client_(client),
|
| + tap_timeout_(tap_timeout),
|
| + tap_slop_(tap_slop),
|
| response_pending_input_event_(INPUT_EVENT_TYPE_NONE),
|
| start_orientation_(TOUCH_HANDLE_ORIENTATION_UNDEFINED),
|
| end_orientation_(TOUCH_HANDLE_ORIENTATION_UNDEFINED),
|
| @@ -248,6 +252,14 @@ scoped_ptr<TouchHandleDrawable> TouchSelectionController::CreateDrawable() {
|
| return client_->CreateDrawable();
|
| }
|
|
|
| +base::TimeDelta TouchSelectionController::GetTapTimeout() const {
|
| + return tap_timeout_;
|
| +}
|
| +
|
| +float TouchSelectionController::GetTapSlop() const {
|
| + return tap_slop_;
|
| +}
|
| +
|
| void TouchSelectionController::ShowInsertionHandleAutomatically() {
|
| if (activate_insertion_automatically_)
|
| return;
|
|
|