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

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: yosin's nits 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 25bf79f4ef21b09d816c14b95109d26bd39ee8cb..b8bf0efad5cf23d3dfacf3f6fc60184db1c8d8ac 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
@@ -995,7 +995,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;
@@ -1013,7 +1014,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