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

Side by Side Diff: content/public/android/java/src/org/chromium/content/browser/ContentViewGestureHandler.java

Issue 131553003: Move Android TraceEvent interface to base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 11 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 package org.chromium.content.browser; 5 package org.chromium.content.browser;
6 6
7 import android.content.Context; 7 import android.content.Context;
8 import android.os.Bundle; 8 import android.os.Bundle;
9 import android.os.SystemClock; 9 import android.os.SystemClock;
10 import android.util.Log; 10 import android.util.Log;
11 import android.view.InputDevice; 11 import android.view.InputDevice;
12 import android.view.MotionEvent; 12 import android.view.MotionEvent;
13 import android.view.ViewConfiguration; 13 import android.view.ViewConfiguration;
14 14
15 import org.chromium.base.CommandLine; 15 import org.chromium.base.CommandLine;
16 import org.chromium.base.TraceEvent;
16 import org.chromium.content.browser.LongPressDetector.LongPressDelegate; 17 import org.chromium.content.browser.LongPressDetector.LongPressDelegate;
17 import org.chromium.content.browser.third_party.GestureDetector; 18 import org.chromium.content.browser.third_party.GestureDetector;
18 import org.chromium.content.browser.third_party.GestureDetector.OnDoubleTapListe ner; 19 import org.chromium.content.browser.third_party.GestureDetector.OnDoubleTapListe ner;
19 import org.chromium.content.browser.third_party.GestureDetector.OnGestureListene r; 20 import org.chromium.content.browser.third_party.GestureDetector.OnGestureListene r;
20 import org.chromium.content.common.ContentSwitches; 21 import org.chromium.content.common.ContentSwitches;
21 import org.chromium.content.common.TraceEvent;
22 22
23 import java.util.ArrayDeque; 23 import java.util.ArrayDeque;
24 import java.util.Deque; 24 import java.util.Deque;
25 25
26 /** 26 /**
27 * This class handles all MotionEvent handling done in ContentViewCore including the gesture 27 * This class handles all MotionEvent handling done in ContentViewCore including the gesture
28 * recognition. It sends all related native calls through the interface MotionEv entDelegate. 28 * recognition. It sends all related native calls through the interface MotionEv entDelegate.
29 */ 29 */
30 class ContentViewGestureHandler implements LongPressDelegate { 30 class ContentViewGestureHandler implements LongPressDelegate {
31 31
(...skipping 1236 matching lines...) Expand 10 before | Expand all | Expand 10 after
1268 1268
1269 long nowMs = SystemClock.uptimeMillis(); 1269 long nowMs = SystemClock.uptimeMillis();
1270 if ((nowMs - mLastDoubleTapTimeMs) >= ACTION_AFTER_DOUBLE_TAP_WINDOW_MS) { 1270 if ((nowMs - mLastDoubleTapTimeMs) >= ACTION_AFTER_DOUBLE_TAP_WINDOW_MS) {
1271 // Time expired, user took no action (that we care about). 1271 // Time expired, user took no action (that we care about).
1272 mMotionEventDelegate.sendActionAfterDoubleTapUMA( 1272 mMotionEventDelegate.sendActionAfterDoubleTapUMA(
1273 ContentViewCore.UMAActionAfterDoubleTap.NO_ACTION, !mDisable ClickDelay); 1273 ContentViewCore.UMAActionAfterDoubleTap.NO_ACTION, !mDisable ClickDelay);
1274 mLastDoubleTapTimeMs = 0; 1274 mLastDoubleTapTimeMs = 0;
1275 } 1275 }
1276 } 1276 }
1277 } 1277 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698