Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2134)

Side by Side Diff: content/browser/renderer_host/input/tap_suppression_controller.h

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/input/gesture_event_queue.h ('k') | content/browser/renderer_host/input/timeout_monitor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698