| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "content/browser/renderer_host/input/tap_suppression_controller.h" | 5 #include "content/browser/renderer_host/input/tap_suppression_controller.h" |
| 6 | 6 |
| 7 #include "base/debug/trace_event.h" | |
| 8 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/trace_event/trace_event.h" |
| 9 #include "content/browser/renderer_host/input/tap_suppression_controller_client.
h" | 9 #include "content/browser/renderer_host/input/tap_suppression_controller_client.
h" |
| 10 | 10 |
| 11 namespace content { | 11 namespace content { |
| 12 | 12 |
| 13 TapSuppressionController::Config::Config() | 13 TapSuppressionController::Config::Config() |
| 14 : enabled(false), | 14 : enabled(false), |
| 15 max_cancel_to_down_time(base::TimeDelta::FromMilliseconds(180)), | 15 max_cancel_to_down_time(base::TimeDelta::FromMilliseconds(180)), |
| 16 max_tap_gap_time(base::TimeDelta::FromMilliseconds(500)) { | 16 max_tap_gap_time(base::TimeDelta::FromMilliseconds(500)) { |
| 17 } | 17 } |
| 18 | 18 |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 case TAP_DOWN_STASHED: | 138 case TAP_DOWN_STASHED: |
| 139 TRACE_EVENT0("browser", | 139 TRACE_EVENT0("browser", |
| 140 "TapSuppressionController::TapDownTimerExpired"); | 140 "TapSuppressionController::TapDownTimerExpired"); |
| 141 client_->ForwardStashedTapDown(); | 141 client_->ForwardStashedTapDown(); |
| 142 state_ = NOTHING; | 142 state_ = NOTHING; |
| 143 break; | 143 break; |
| 144 } | 144 } |
| 145 } | 145 } |
| 146 | 146 |
| 147 } // namespace content | 147 } // namespace content |
| OLD | NEW |