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

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: 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
« content/renderer/render_view_impl.h ('K') | « content/renderer/render_view_impl.h ('k') | no next file » | 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..70fdd33ca9f97b35083986078a0ad0f5eb3322e8 100644
--- a/content/renderer/render_view_impl_android.cc
+++ b/content/renderer/render_view_impl_android.cc
@@ -66,8 +66,15 @@ void RenderViewImpl::didScrollWithKeyboard(const blink::WebSize& delta) {
}
void RenderViewImpl::OnExtractSmartClipData(const gfx::Rect& rect) {
- Send(new ViewHostMsg_SmartClipDataExtracted(
- routing_id_, webview()->getSmartClipData(rect)));
+ webview()->getSmartClipData(rect);
+}
+
+void RenderViewImpl::updateSmartClipDataResult(const blink::WebString& text,
+ const blink::WebRect& rect) {
+ ViewHostMsg_SmartClip_Params params;
jam 2014/04/30 16:05:47 we only create IPC structs when we have more than
AviD 2014/05/02 15:04:45 Removed IPC struct.
+ params.clip_rect = rect;
+ params.clip_data = text;
+ Send(new ViewHostMsg_SmartClipDataExtracted(routing_id_, params));
}
void RenderViewImpl::GetSelectionRootBounds(gfx::Rect* bounds) const {
« content/renderer/render_view_impl.h ('K') | « content/renderer/render_view_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698