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

Side by Side Diff: content/public/android/java/src/org/chromium/content/browser/SelectionPopupController.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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.TargetApi; 7 import android.annotation.TargetApi;
8 import android.app.Activity; 8 import android.app.Activity;
9 import android.app.SearchManager; 9 import android.app.SearchManager;
10 import android.content.ClipboardManager; 10 import android.content.ClipboardManager;
(...skipping 971 matching lines...) Expand 10 before | Expand all | Expand 10 after
982 assert !mPendingShowActionMode; 982 assert !mPendingShowActionMode;
983 assert !mHidden; 983 assert !mHidden;
984 } 984 }
985 985
986 void onShowUnhandledTapUIIfNeeded(int x, int y) { 986 void onShowUnhandledTapUIIfNeeded(int x, int y) {
987 if (mSelectionClient != null) { 987 if (mSelectionClient != null) {
988 mSelectionClient.showUnhandledTapUIIfNeeded(x, y); 988 mSelectionClient.showUnhandledTapUIIfNeeded(x, y);
989 } 989 }
990 } 990 }
991 991
992 void onSelectWordAroundCaretAck(boolean didSelect, int startAdjust, int endA djust) {
993 if (mSelectionClient != null) {
994 mSelectionClient.selectWordAroundCaretAck(didSelect, startAdjust, en dAdjust);
995 }
996 }
997
992 void destroyActionModeAndUnselect() { 998 void destroyActionModeAndUnselect() {
993 mUnselectAllOnDismiss = true; 999 mUnselectAllOnDismiss = true;
994 finishActionMode(); 1000 finishActionMode();
995 } 1001 }
996 1002
997 void destroyActionModeAndKeepSelection() { 1003 void destroyActionModeAndKeepSelection() {
998 mUnselectAllOnDismiss = false; 1004 mUnselectAllOnDismiss = false;
999 finishActionMode(); 1005 finishActionMode();
1000 } 1006 }
1001 1007
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
1060 if (mPendingShowActionMode) return; 1066 if (mPendingShowActionMode) return;
1061 } 1067 }
1062 1068
1063 // Rely on this method to clear |mHidden| and unhide the action mode . 1069 // Rely on this method to clear |mHidden| and unhide the action mode .
1064 showActionModeOrClearOnFailure(); 1070 showActionModeOrClearOnFailure();
1065 } 1071 }
1066 }; 1072 };
1067 1073
1068 private native void nativeInit(WebContents webContents); 1074 private native void nativeInit(WebContents webContents);
1069 } 1075 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698