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

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

Issue 15720007: Move InputEventAckState from port to public (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 7 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 (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 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;
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 static final int GESTURE_SCROLL_BY = 7; 139 static final int GESTURE_SCROLL_BY = 7;
140 static final int GESTURE_SCROLL_END = 8; 140 static final int GESTURE_SCROLL_END = 8;
141 static final int GESTURE_FLING_START = 9; 141 static final int GESTURE_FLING_START = 9;
142 static final int GESTURE_FLING_CANCEL = 10; 142 static final int GESTURE_FLING_CANCEL = 10;
143 static final int GESTURE_PINCH_BEGIN = 11; 143 static final int GESTURE_PINCH_BEGIN = 11;
144 static final int GESTURE_PINCH_BY = 12; 144 static final int GESTURE_PINCH_BY = 12;
145 static final int GESTURE_PINCH_END = 13; 145 static final int GESTURE_PINCH_END = 13;
146 static final int GESTURE_SHOW_PRESS_CANCEL = 14; 146 static final int GESTURE_SHOW_PRESS_CANCEL = 14;
147 static final int GESTURE_LONG_TAP = 15; 147 static final int GESTURE_LONG_TAP = 15;
148 148
149 // These have to be kept in sync with content/port/common/input_event_ack_st ate.h 149 // These have to be kept in sync with content/public/common/input_event_ack_ state.h
150 static final int INPUT_EVENT_ACK_STATE_UNKNOWN = 0; 150 static final int INPUT_EVENT_ACK_STATE_UNKNOWN = 0;
151 static final int INPUT_EVENT_ACK_STATE_CONSUMED = 1; 151 static final int INPUT_EVENT_ACK_STATE_CONSUMED = 1;
152 static final int INPUT_EVENT_ACK_STATE_NOT_CONSUMED = 2; 152 static final int INPUT_EVENT_ACK_STATE_NOT_CONSUMED = 2;
153 static final int INPUT_EVENT_ACK_STATE_NO_CONSUMER_EXISTS = 3; 153 static final int INPUT_EVENT_ACK_STATE_NO_CONSUMER_EXISTS = 3;
154 154
155 // Return values of sendTouchEventToNative(); 155 // Return values of sendTouchEventToNative();
156 static final int EVENT_FORWARDED_TO_NATIVE = 0; 156 static final int EVENT_FORWARDED_TO_NATIVE = 0;
157 static final int EVENT_CONVERTED_TO_CANCEL = 1; 157 static final int EVENT_CONVERTED_TO_CANCEL = 1;
158 static final int EVENT_NOT_FORWARDED = 2; 158 static final int EVENT_NOT_FORWARDED = 2;
159 159
(...skipping 765 matching lines...) Expand 10 before | Expand all | Expand 10 after
925 /** 925 /**
926 * This is for testing only. 926 * This is for testing only.
927 * Sends a show pressed state gesture through mListener. This should always be called after 927 * Sends a show pressed state gesture through mListener. This should always be called after
928 * a down event; 928 * a down event;
929 */ 929 */
930 void sendShowPressedStateGestureForTesting() { 930 void sendShowPressedStateGestureForTesting() {
931 if (mCurrentDownEvent == null) return; 931 if (mCurrentDownEvent == null) return;
932 mListener.onShowPress(mCurrentDownEvent); 932 mListener.onShowPress(mCurrentDownEvent);
933 } 933 }
934 } 934 }
OLDNEW
« no previous file with comments | « content/port/common/input_event_ack_state.h ('k') | content/public/common/input_event_ack_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698