summaryrefslogtreecommitdiffstats
path: root/content/renderer/render_view_impl_android.cc
diff options
context:
space:
mode:
authorjdduke@chromium.org <jdduke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-29 22:34:11 +0000
committerjdduke@chromium.org <jdduke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-29 22:34:11 +0000
commit3abba2674d55de917a2ac4d3d2534746845dd076 (patch)
tree69b8c74961b5045b23526b5e48ccf1d3698ba5b7 /content/renderer/render_view_impl_android.cc
parent3715acb1dee199cfce7a422b5d957419973bcc6c (diff)
downloadchromium_src-3abba2674d55de917a2ac4d3d2534746845dd076.zip
chromium_src-3abba2674d55de917a2ac4d3d2534746845dd076.tar.gz
chromium_src-3abba2674d55de917a2ac4d3d2534746845dd076.tar.bz2
Revert of Chromium plumbing to use the selection root bounds. (https://codereview.chromium.org/186753002/)
Reason for revert: The Android plumbing to use the root selection bounds has been removed, and the visibility calculation will soon be performed by the compositor (see crbug.com/135959). Original issue's description: > Chromium plumbing to use the selection root bounds. > > This is asking the selection root bounds to Blink and send it back to > the RenderWidgetHostView implementation in the browser process. > > BUG=236033 > > Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=257199 TBR=jochen@chromium.org Review URL: https://codereview.chromium.org/306803002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@273628 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/render_view_impl_android.cc')
-rw-r--r--content/renderer/render_view_impl_android.cc19
1 files changed, 0 insertions, 19 deletions
diff --git a/content/renderer/render_view_impl_android.cc b/content/renderer/render_view_impl_android.cc
index 6863c57..679da54 100644
--- a/content/renderer/render_view_impl_android.cc
+++ b/content/renderer/render_view_impl_android.cc
@@ -9,7 +9,6 @@
#include "cc/trees/layer_tree_host.h"
#include "content/common/view_messages.h"
#include "content/renderer/gpu/render_widget_compositor.h"
-#include "third_party/WebKit/public/platform/WebRect.h"
#include "third_party/WebKit/public/web/WebView.h"
namespace content {
@@ -70,22 +69,4 @@ void RenderViewImpl::OnExtractSmartClipData(const gfx::Rect& rect) {
routing_id_, webview()->getSmartClipData(rect)));
}
-void RenderViewImpl::GetSelectionRootBounds(gfx::Rect* bounds) const {
- blink::WebRect bounds_webrect;
- webview()->getSelectionRootBounds(bounds_webrect);
- *bounds = bounds_webrect;
-}
-
-void RenderViewImpl::UpdateSelectionRootBounds() {
- if (!webview() || handling_ime_event_)
- return;
-
- gfx::Rect bounds;
- GetSelectionRootBounds(&bounds);
- if (selection_root_rect_ != bounds) {
- selection_root_rect_ = bounds;
- Send(new ViewHostMsg_SelectionRootBoundsChanged(routing_id_, bounds));
- }
-}
-
} // namespace content