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

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: Update the other test in ContextualSearchTapEventTest.java to know about the ACK. 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.ClipData; 10 import android.content.ClipData;
(...skipping 1046 matching lines...) Expand 10 before | Expand all | Expand 10 after
1057 assert !mPendingShowActionMode; 1057 assert !mPendingShowActionMode;
1058 assert !mHidden; 1058 assert !mHidden;
1059 } 1059 }
1060 1060
1061 void onShowUnhandledTapUIIfNeeded(int x, int y) { 1061 void onShowUnhandledTapUIIfNeeded(int x, int y) {
1062 if (mSelectionClient != null) { 1062 if (mSelectionClient != null) {
1063 mSelectionClient.showUnhandledTapUIIfNeeded(x, y); 1063 mSelectionClient.showUnhandledTapUIIfNeeded(x, y);
1064 } 1064 }
1065 } 1065 }
1066 1066
1067 void onSelectWordAroundCaretAck(boolean didSelect, int startAdjust, int endA djust) {
1068 if (mSelectionClient != null) {
1069 mSelectionClient.selectWordAroundCaretAck(didSelect, startAdjust, en dAdjust);
1070 }
1071 }
1072
1067 void destroyActionModeAndUnselect() { 1073 void destroyActionModeAndUnselect() {
1068 mUnselectAllOnDismiss = true; 1074 mUnselectAllOnDismiss = true;
1069 finishActionMode(); 1075 finishActionMode();
1070 } 1076 }
1071 1077
1072 void destroyActionModeAndKeepSelection() { 1078 void destroyActionModeAndKeepSelection() {
1073 mUnselectAllOnDismiss = false; 1079 mUnselectAllOnDismiss = false;
1074 finishActionMode(); 1080 finishActionMode();
1075 } 1081 }
1076 1082
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
1147 if (mPendingShowActionMode) return; 1153 if (mPendingShowActionMode) return;
1148 } 1154 }
1149 1155
1150 // Rely on this method to clear |mHidden| and unhide the action mode . 1156 // Rely on this method to clear |mHidden| and unhide the action mode .
1151 showActionModeOrClearOnFailure(); 1157 showActionModeOrClearOnFailure();
1152 } 1158 }
1153 }; 1159 };
1154 1160
1155 private native void nativeInit(WebContents webContents); 1161 private native void nativeInit(WebContents webContents);
1156 } 1162 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698