From c4790dcb92eaeada95f459576b83e895f7878317 Mon Sep 17 00:00:00 2001 From: "jam@chromium.org" Date: Fri, 27 Dec 2013 22:08:02 +0000 Subject: Add the SmartClip feature. This patch is based on https://codereview.chromium.org/103913013/ by Juhui Lee . BUG=329809 R=jschuh@chromium.org Review URL: https://codereview.chromium.org/98793006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242641 0039d316-1c4b-4281-b951-d872f2087c98 --- content/common/view_messages.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'content/common') diff --git a/content/common/view_messages.h b/content/common/view_messages.h index 1b777bb..791920a 100644 --- a/content/common/view_messages.h +++ b/content/common/view_messages.h @@ -1361,6 +1361,11 @@ IPC_MESSAGE_ROUTED0(ViewMsg_ImeEventAck) // Sent by the browser when we should pause video playback. IPC_MESSAGE_ROUTED0(ViewMsg_PauseVideo); +// Extracts the data at the given rect, returning it through the +// ViewHostMsg_SmartClipDataExtracted IPC. +IPC_MESSAGE_ROUTED1(ViewMsg_ExtractSmartClipData, + gfx::Rect /* rect */) + #elif defined(OS_MACOSX) // Let the RenderView know its window has changed visibility. IPC_MESSAGE_ROUTED1(ViewMsg_SetWindowVisibility, @@ -2298,6 +2303,14 @@ IPC_MESSAGE_CONTROL3(ViewHostMsg_RunWebAudioMediaCodec, IPC_MESSAGE_ROUTED1(ViewHostMsg_SetNeedsBeginFrame, bool /* enabled */) +// Reply to the ViewMsg_ExtractSmartClipData message. +// TODO(juhui24.lee@samsung.com): this should be changed to a vector of structs +// instead of encoding the data as a string which is not allowed normally. Since +// ths is only used in Android WebView, it's allowed temporarily. +// http://crbug.com/330872 +IPC_MESSAGE_ROUTED1(ViewHostMsg_SmartClipDataExtracted, + string16) + #elif defined(OS_MACOSX) // Request that the browser load a font into shared memory for us. IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_LoadFont, -- cgit v1.1