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

Unified Diff: content/browser/renderer_host/render_widget_host_view_android.cc

Issue 2468043002: Removed OnShowingPastePopup (Closed)
Patch Set: Created 4 years, 1 month 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/render_widget_host_view_android.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_android.cc b/content/browser/renderer_host/render_widget_host_view_android.cc
index af70aaea40d0bd1d9c89728440fc0ac732d618aa..2fc1b6aa1491c03c5d0c99a177c623d89800fcbb 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.cc
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc
@@ -1700,27 +1700,6 @@ void RenderWidgetHostViewAndroid::SetTextHandlesTemporarilyHidden(bool hidden) {
selection_controller_->SetTemporarilyHidden(hidden);
}
-void RenderWidgetHostViewAndroid::OnShowingPastePopup(
- const gfx::PointF& point) {
- if (!selection_controller_)
- return;
-
- // As the paste popup may be triggered *before* the bounds and editability
- // of the region have been updated, explicitly set the properties now.
- // TODO(jdduke): Remove this workaround when auxiliary paste popup
- // notifications are no longer required, crbug.com/398170.
- gfx::SelectionBound insertion_bound;
- insertion_bound.set_type(gfx::SelectionBound::CENTER);
- insertion_bound.set_visible(true);
- insertion_bound.SetEdge(point, point);
- selection_controller_->HideAndDisallowShowingAutomatically();
- selection_controller_->OnSelectionEditable(true);
- selection_controller_->OnSelectionEmpty(true);
- selection_controller_->OnSelectionBoundsChanged(insertion_bound,
- insertion_bound);
- selection_controller_->AllowShowingFromCurrentSelection();
-}
-
SkColor RenderWidgetHostViewAndroid::GetCachedBackgroundColor() const {
return cached_background_color_;
}

Powered by Google App Engine
This is Rietveld 408576698