| 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 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |