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 849 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
860 } | 860 } |
861 destroyPastePopup(); | 861 destroyPastePopup(); |
862 } | 862 } |
863 | 863 |
864 @SuppressWarnings("unused") | 864 @SuppressWarnings("unused") |
865 @CalledByNative | 865 @CalledByNative |
866 private void onShowUnhandledTapUIIfNeeded(int x, int y) { | 866 private void onShowUnhandledTapUIIfNeeded(int x, int y) { |
867 mSelectionPopupController.onShowUnhandledTapUIIfNeeded(x, y); | 867 mSelectionPopupController.onShowUnhandledTapUIIfNeeded(x, y); |
868 } | 868 } |
869 | 869 |
| 870 @SuppressWarnings("unused") |
| 871 @CalledByNative |
| 872 private void onSelectWordAroundCaretAck(boolean didSelect, int startAdjust,
int endAdjust) { |
| 873 mSelectionPopupController.onSelectWordAroundCaretAck(didSelect, startAdj
ust, endAdjust); |
| 874 } |
| 875 |
870 /** | 876 /** |
871 * Called just prior to a tap or press gesture being forwarded to the render
er. | 877 * Called just prior to a tap or press gesture being forwarded to the render
er. |
872 */ | 878 */ |
873 @SuppressWarnings("unused") | 879 @SuppressWarnings("unused") |
874 @CalledByNative | 880 @CalledByNative |
875 private boolean filterTapOrPressEvent(int type, int x, int y) { | 881 private boolean filterTapOrPressEvent(int type, int x, int y) { |
876 if (type == GestureEventType.LONG_PRESS && offerLongPressToEmbedder()) { | 882 if (type == GestureEventType.LONG_PRESS && offerLongPressToEmbedder()) { |
877 return true; | 883 return true; |
878 } | 884 } |
879 updateForTapOrPress(type, x, y); | 885 updateForTapOrPress(type, x, y); |
(...skipping 1542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2422 private native void nativeSetTextTrackSettings(long nativeContentViewCoreImp
l, | 2428 private native void nativeSetTextTrackSettings(long nativeContentViewCoreImp
l, |
2423 boolean textTracksEnabled, String textTrackBackgroundColor, String t
extTrackFontFamily, | 2429 boolean textTracksEnabled, String textTrackBackgroundColor, String t
extTrackFontFamily, |
2424 String textTrackFontStyle, String textTrackFontVariant, String textT
rackTextColor, | 2430 String textTrackFontStyle, String textTrackFontVariant, String textT
rackTextColor, |
2425 String textTrackTextShadow, String textTrackTextSize); | 2431 String textTrackTextShadow, String textTrackTextSize); |
2426 | 2432 |
2427 private native void nativeSetBackgroundOpaque(long nativeContentViewCoreImpl
, boolean opaque); | 2433 private native void nativeSetBackgroundOpaque(long nativeContentViewCoreImpl
, boolean opaque); |
2428 private native boolean nativeIsTouchDragDropEnabled(long nativeContentViewCo
reImpl); | 2434 private native boolean nativeIsTouchDragDropEnabled(long nativeContentViewCo
reImpl); |
2429 private native void nativeOnDragEvent(long nativeContentViewCoreImpl, int ac
tion, int x, int y, | 2435 private native void nativeOnDragEvent(long nativeContentViewCoreImpl, int ac
tion, int x, int y, |
2430 int screenX, int screenY, String[] mimeTypes, String content); | 2436 int screenX, int screenY, String[] mimeTypes, String content); |
2431 } | 2437 } |
OLD | NEW |