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 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_TAP_SUPPRESSION_CONTROLLER_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_TAP_SUPPRESSION_CONTROLLER_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_TAP_SUPPRESSION_CONTROLLER_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_TAP_SUPPRESSION_CONTROLLER_H_ |
7 | 7 |
8 #include "base/time/time.h" | 8 #include "base/time/time.h" |
9 #include "base/timer/timer.h" | 9 #include "base/timer/timer.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 | 65 |
66 enum State { | 66 enum State { |
67 DISABLED, | 67 DISABLED, |
68 NOTHING, | 68 NOTHING, |
69 GFC_IN_PROGRESS, | 69 GFC_IN_PROGRESS, |
70 TAP_DOWN_STASHED, | 70 TAP_DOWN_STASHED, |
71 LAST_CANCEL_STOPPED_FLING, | 71 LAST_CANCEL_STOPPED_FLING, |
72 }; | 72 }; |
73 | 73 |
74 TapSuppressionControllerClient* client_; | 74 TapSuppressionControllerClient* client_; |
75 base::OneShotTimer<TapSuppressionController> tap_down_timer_; | 75 base::OneShotTimer tap_down_timer_; |
76 State state_; | 76 State state_; |
77 | 77 |
78 base::TimeDelta max_cancel_to_down_time_; | 78 base::TimeDelta max_cancel_to_down_time_; |
79 base::TimeDelta max_tap_gap_time_; | 79 base::TimeDelta max_tap_gap_time_; |
80 | 80 |
81 // TODO(rjkroege): During debugging, the event times did not prove reliable. | 81 // TODO(rjkroege): During debugging, the event times did not prove reliable. |
82 // Replace the use of base::TimeTicks with an accurate event time when they | 82 // Replace the use of base::TimeTicks with an accurate event time when they |
83 // become available post http://crbug.com/119556. | 83 // become available post http://crbug.com/119556. |
84 base::TimeTicks fling_cancel_time_; | 84 base::TimeTicks fling_cancel_time_; |
85 | 85 |
86 DISALLOW_COPY_AND_ASSIGN(TapSuppressionController); | 86 DISALLOW_COPY_AND_ASSIGN(TapSuppressionController); |
87 }; | 87 }; |
88 | 88 |
89 } // namespace content | 89 } // namespace content |
90 | 90 |
91 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TAP_SUPPRESSION_CONTROLLER_H_ | 91 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TAP_SUPPRESSION_CONTROLLER_H_ |
OLD | NEW |