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

Unified Diff: content/browser/renderer_host/input/stylus_text_selector.cc

Issue 2785853002: Selection Action mode triggered like a context menu (Closed)
Patch Set: fix rebase 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/browser/renderer_host/input/stylus_text_selector.cc
diff --git a/content/browser/renderer_host/input/stylus_text_selector.cc b/content/browser/renderer_host/input/stylus_text_selector.cc
index 65f8afbfa405fd078ca91ce55312ca4e1fa6d4aa..18285e6406f94d752cf3d2102376983542546282 100644
--- a/content/browser/renderer_host/input/stylus_text_selector.cc
+++ b/content/browser/renderer_host/input/stylus_text_selector.cc
@@ -83,7 +83,7 @@ bool StylusTextSelector::OnTouchEvent(const MotionEvent& event) {
case MotionEvent::ACTION_CANCEL:
if (drag_state_ == DRAGGING_WITH_BUTTON_PRESSED ||
drag_state_ == DRAGGING_WITH_BUTTON_RELEASED)
- client_->OnStylusSelectEnd();
+ client_->OnStylusSelectEnd(event.GetX(), event.GetY());
drag_state_ = NO_DRAG;
break;

Powered by Google App Engine
This is Rietveld 408576698