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

Unified Diff: content/renderer/render_view_impl_android.cc

Issue 306803002: Revert of Chromium plumbing to use the selection root bounds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 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
« no previous file with comments | « content/renderer/render_view_impl.h ('k') | content/renderer/render_widget.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_impl_android.cc
diff --git a/content/renderer/render_view_impl_android.cc b/content/renderer/render_view_impl_android.cc
index 6863c5775b45fc19933dbf2da85180b3f73493ca..679da548f91dc2f487931c0658d3e1cddf60c8ed 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
« no previous file with comments | « content/renderer/render_view_impl.h ('k') | content/renderer/render_widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698