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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/SelectionPopupController.java

Issue 2864833002: Tapping handle shouldn't select misspelled word (Closed)
Patch Set: Fixed naming 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 side-by-side diff with in-line comments
Download patch
Index: content/public/android/java/src/org/chromium/content/browser/SelectionPopupController.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/SelectionPopupController.java b/content/public/android/java/src/org/chromium/content/browser/SelectionPopupController.java
index 23bd15a8aea305ae7cfd523b9e917372fc3f4445..e87d092fcdb1995d556924ca9a1dc796896d37b9 100644
--- a/content/public/android/java/src/org/chromium/content/browser/SelectionPopupController.java
+++ b/content/public/android/java/src/org/chromium/content/browser/SelectionPopupController.java
@@ -996,7 +996,8 @@ public class SelectionPopupController extends ActionModeCallbackHelper {
if (mWasPastePopupShowingOnInsertionDragStart) {
destroyPastePopup();
} else {
- mWebContents.showContextMenuAtPoint(mSelectionRect.left, mSelectionRect.bottom);
+ mWebContents.showContextMenuAtTouchHandle(
+ mSelectionRect.left, mSelectionRect.bottom);
}
mWasPastePopupShowingOnInsertionDragStart = false;
break;
@@ -1014,7 +1015,8 @@ public class SelectionPopupController extends ActionModeCallbackHelper {
case SelectionEventType.INSERTION_HANDLE_DRAG_STOPPED:
if (mWasPastePopupShowingOnInsertionDragStart) {
- mWebContents.showContextMenuAtPoint(mSelectionRect.left, mSelectionRect.bottom);
+ mWebContents.showContextMenuAtTouchHandle(
+ mSelectionRect.left, mSelectionRect.bottom);
}
mWasPastePopupShowingOnInsertionDragStart = false;
break;

Powered by Google App Engine
This is Rietveld 408576698