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

Unified Diff: content/browser/android/selection_popup_controller.cc

Issue 2855353002: Make Paste Popup use selection rect for positioning (Closed)
Patch Set: fix typo 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/android/selection_popup_controller.cc
diff --git a/content/browser/android/selection_popup_controller.cc b/content/browser/android/selection_popup_controller.cc
index 70c142c870040f62831fc5ebe0f1bf8b1ac0903f..5f56370cce9459750efb07ade4fe4bf002d49f0d 100644
--- a/content/browser/android/selection_popup_controller.cc
+++ b/content/browser/android/selection_popup_controller.cc
@@ -51,7 +51,6 @@ void SelectionPopupController::UpdateRenderProcessConnection(
void SelectionPopupController::OnSelectionEvent(
ui::SelectionEventType event,
- const gfx::PointF& selection_anchor,
const gfx::RectF& selection_rect) {
JNIEnv* env = AttachCurrentThread();
ScopedJavaLocalRef<jobject> obj = java_obj_.get(env);
@@ -59,9 +58,8 @@ void SelectionPopupController::OnSelectionEvent(
return;
Java_SelectionPopupController_onSelectionEvent(
- env, obj, event, selection_anchor.x(), selection_anchor.y(),
- selection_rect.x(), selection_rect.y(), selection_rect.right(),
- selection_rect.bottom());
+ env, obj, event, selection_rect.x(), selection_rect.y(),
+ selection_rect.right(), selection_rect.bottom());
}
void SelectionPopupController::OnSelectionChanged(const std::string& text) {
« no previous file with comments | « content/browser/android/selection_popup_controller.h ('k') | content/browser/renderer_host/render_widget_host_view_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698