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

Unified Diff: content/renderer/render_view_impl_android.cc

Issue 260623004: Fix to remove customised String over IPC for SmartClip (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes done according to review comments Created 6 years, 8 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/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..96f8c2fe8d5181788e926d3f91847fcee4565cf0 100644
--- a/content/renderer/render_view_impl_android.cc
+++ b/content/renderer/render_view_impl_android.cc
@@ -66,8 +66,11 @@ void RenderViewImpl::didScrollWithKeyboard(const blink::WebSize& delta) {
}
void RenderViewImpl::OnExtractSmartClipData(const gfx::Rect& rect) {
+ blink::WebString clip_text;
+ blink::WebRect clip_rect;
+ webview()->getSmartClipData(rect, &clip_text, &clip_rect);
Send(new ViewHostMsg_SmartClipDataExtracted(
- routing_id_, webview()->getSmartClipData(rect)));
+ routing_id_, clip_text, clip_rect));
}
void RenderViewImpl::GetSelectionRootBounds(gfx::Rect* bounds) const {

Powered by Google App Engine
This is Rietveld 408576698