OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef CONTENT_BROWSER_RENDERER_HOST_TAP_SUPPRESSION_CONTROLLER_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_TAP_SUPPRESSION_CONTROLLER_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_TAP_SUPPRESSION_CONTROLLER_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_TAP_SUPPRESSION_CONTROLLER_H_ |
7 | 7 |
8 #include "base/time.h" | 8 #include "base/time/time.h" |
9 #include "base/timer.h" | 9 #include "base/timer/timer.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
11 | 11 |
12 namespace content { | 12 namespace content { |
13 | 13 |
14 class TapSuppressionControllerClient; | 14 class TapSuppressionControllerClient; |
15 | 15 |
16 // The core controller for suppression of taps (touchpad or touchscreen) | 16 // The core controller for suppression of taps (touchpad or touchscreen) |
17 // immediately following a GestureFlingCancel event (caused by the same tap). | 17 // immediately following a GestureFlingCancel event (caused by the same tap). |
18 // Only taps of sufficient speed and within a specified time window after a | 18 // Only taps of sufficient speed and within a specified time window after a |
19 // GestureFlingCancel are suppressed. | 19 // GestureFlingCancel are suppressed. |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 // Replace the use of base::TimeTicks with an accurate event time when they | 68 // Replace the use of base::TimeTicks with an accurate event time when they |
69 // become available post http://crbug.com/119556. | 69 // become available post http://crbug.com/119556. |
70 base::TimeTicks fling_cancel_time_; | 70 base::TimeTicks fling_cancel_time_; |
71 | 71 |
72 DISALLOW_COPY_AND_ASSIGN(TapSuppressionController); | 72 DISALLOW_COPY_AND_ASSIGN(TapSuppressionController); |
73 }; | 73 }; |
74 | 74 |
75 } // namespace content | 75 } // namespace content |
76 | 76 |
77 #endif // CONTENT_BROWSER_RENDERER_HOST_TAP_SUPPRESSION_CONTROLLER_H_ | 77 #endif // CONTENT_BROWSER_RENDERER_HOST_TAP_SUPPRESSION_CONTROLLER_H_ |
OLD | NEW |