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

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

Issue 2703643004: [TTS] Add an ACK message to SelectWordAroundCaret. (Closed)
Patch Set: Just removed an isOverlayVideoMode check. Created 3 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 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 880 matching lines...) Expand 10 before | Expand all | Expand 10 after
891 } 891 }
892 destroyPastePopup(); 892 destroyPastePopup();
893 } 893 }
894 894
895 @SuppressWarnings("unused") 895 @SuppressWarnings("unused")
896 @CalledByNative 896 @CalledByNative
897 private void onShowUnhandledTapUIIfNeeded(int x, int y) { 897 private void onShowUnhandledTapUIIfNeeded(int x, int y) {
898 mSelectionPopupController.onShowUnhandledTapUIIfNeeded(x, y); 898 mSelectionPopupController.onShowUnhandledTapUIIfNeeded(x, y);
899 } 899 }
900 900
901 @SuppressWarnings("unused")
902 @CalledByNative
903 private void onSelectWordAroundCaretAck(boolean didSelect, int startAdjust, int endAdjust) {
904 mSelectionPopupController.onSelectWordAroundCaretAck(didSelect, startAdj ust, endAdjust);
905 }
906
901 /** 907 /**
902 * Called just prior to a tap or press gesture being forwarded to the render er. 908 * Called just prior to a tap or press gesture being forwarded to the render er.
903 */ 909 */
904 @SuppressWarnings("unused") 910 @SuppressWarnings("unused")
905 @CalledByNative 911 @CalledByNative
906 private boolean filterTapOrPressEvent(int type, int x, int y) { 912 private boolean filterTapOrPressEvent(int type, int x, int y) {
907 if (type == GestureEventType.LONG_PRESS && offerLongPressToEmbedder()) { 913 if (type == GestureEventType.LONG_PRESS && offerLongPressToEmbedder()) {
908 return true; 914 return true;
909 } 915 }
910 updateForTapOrPress(type, x, y); 916 updateForTapOrPress(type, x, y);
(...skipping 1565 matching lines...) Expand 10 before | Expand all | Expand 10 after
2476 private native void nativeSetTextTrackSettings(long nativeContentViewCoreImp l, 2482 private native void nativeSetTextTrackSettings(long nativeContentViewCoreImp l,
2477 boolean textTracksEnabled, String textTrackBackgroundColor, String t extTrackFontFamily, 2483 boolean textTracksEnabled, String textTrackBackgroundColor, String t extTrackFontFamily,
2478 String textTrackFontStyle, String textTrackFontVariant, String textT rackTextColor, 2484 String textTrackFontStyle, String textTrackFontVariant, String textT rackTextColor,
2479 String textTrackTextShadow, String textTrackTextSize); 2485 String textTrackTextShadow, String textTrackTextSize);
2480 2486
2481 private native void nativeSetBackgroundOpaque(long nativeContentViewCoreImpl , boolean opaque); 2487 private native void nativeSetBackgroundOpaque(long nativeContentViewCoreImpl , boolean opaque);
2482 private native boolean nativeIsTouchDragDropEnabled(long nativeContentViewCo reImpl); 2488 private native boolean nativeIsTouchDragDropEnabled(long nativeContentViewCo reImpl);
2483 private native void nativeOnDragEvent(long nativeContentViewCoreImpl, int ac tion, int x, int y, 2489 private native void nativeOnDragEvent(long nativeContentViewCoreImpl, int ac tion, int x, int y,
2484 int screenX, int screenY, String[] mimeTypes, String content); 2490 int screenX, int screenY, String[] mimeTypes, String content);
2485 } 2491 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698