OLD | NEW |
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.annotation.SuppressLint; | 7 import android.annotation.SuppressLint; |
8 import android.annotation.TargetApi; | 8 import android.annotation.TargetApi; |
9 import android.app.assist.AssistStructure.ViewNode; | 9 import android.app.assist.AssistStructure.ViewNode; |
10 import android.content.ClipData; | 10 import android.content.ClipData; |
(...skipping 1136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1147 } | 1147 } |
1148 hidePastePopup(); | 1148 hidePastePopup(); |
1149 } | 1149 } |
1150 | 1150 |
1151 @SuppressWarnings("unused") | 1151 @SuppressWarnings("unused") |
1152 @CalledByNative | 1152 @CalledByNative |
1153 private void onShowUnhandledTapUIIfNeeded(int x, int y) { | 1153 private void onShowUnhandledTapUIIfNeeded(int x, int y) { |
1154 mSelectionPopupController.onShowUnhandledTapUIIfNeeded(x, y); | 1154 mSelectionPopupController.onShowUnhandledTapUIIfNeeded(x, y); |
1155 } | 1155 } |
1156 | 1156 |
| 1157 @SuppressWarnings("unused") |
| 1158 @CalledByNative |
| 1159 private void onSelectWordAroundCaretAck(boolean didSelect, int startAdjust,
int endAdjust) { |
| 1160 mSelectionPopupController.onSelectWordAroundCaretAck(didSelect, startAdj
ust, endAdjust); |
| 1161 } |
| 1162 |
1157 /** | 1163 /** |
1158 * Called just prior to a tap or press gesture being forwarded to the render
er. | 1164 * Called just prior to a tap or press gesture being forwarded to the render
er. |
1159 */ | 1165 */ |
1160 @SuppressWarnings("unused") | 1166 @SuppressWarnings("unused") |
1161 @CalledByNative | 1167 @CalledByNative |
1162 private boolean filterTapOrPressEvent(int type, int x, int y) { | 1168 private boolean filterTapOrPressEvent(int type, int x, int y) { |
1163 if (type == GestureEventType.LONG_PRESS && offerLongPressToEmbedder()) { | 1169 if (type == GestureEventType.LONG_PRESS && offerLongPressToEmbedder()) { |
1164 return true; | 1170 return true; |
1165 } | 1171 } |
1166 updateForTapOrPress(type, x, y); | 1172 updateForTapOrPress(type, x, y); |
(...skipping 1667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2834 private native void nativeSetTextTrackSettings(long nativeContentViewCoreImp
l, | 2840 private native void nativeSetTextTrackSettings(long nativeContentViewCoreImp
l, |
2835 boolean textTracksEnabled, String textTrackBackgroundColor, String t
extTrackFontFamily, | 2841 boolean textTracksEnabled, String textTrackBackgroundColor, String t
extTrackFontFamily, |
2836 String textTrackFontStyle, String textTrackFontVariant, String textT
rackTextColor, | 2842 String textTrackFontStyle, String textTrackFontVariant, String textT
rackTextColor, |
2837 String textTrackTextShadow, String textTrackTextSize); | 2843 String textTrackTextShadow, String textTrackTextSize); |
2838 | 2844 |
2839 private native void nativeSetBackgroundOpaque(long nativeContentViewCoreImpl
, boolean opaque); | 2845 private native void nativeSetBackgroundOpaque(long nativeContentViewCoreImpl
, boolean opaque); |
2840 private native boolean nativeIsTouchDragDropEnabled(long nativeContentViewCo
reImpl); | 2846 private native boolean nativeIsTouchDragDropEnabled(long nativeContentViewCo
reImpl); |
2841 private native void nativeOnDragEvent(long nativeContentViewCoreImpl, int ac
tion, int x, int y, | 2847 private native void nativeOnDragEvent(long nativeContentViewCoreImpl, int ac
tion, int x, int y, |
2842 int screenX, int screenY, String[] mimeTypes, String content); | 2848 int screenX, int screenY, String[] mimeTypes, String content); |
2843 } | 2849 } |
OLD | NEW |