summaryrefslogtreecommitdiffstats
path: root/content/common
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-27 22:08:02 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-27 22:08:02 +0000
commitc4790dcb92eaeada95f459576b83e895f7878317 (patch)
tree4496fff30a262d14eff5a4d9f5478138b9ef6067 /content/common
parent43466b91d4fc8f15fa490467881f55553f771697 (diff)
downloadchromium_src-c4790dcb92eaeada95f459576b83e895f7878317.zip
chromium_src-c4790dcb92eaeada95f459576b83e895f7878317.tar.gz
chromium_src-c4790dcb92eaeada95f459576b83e895f7878317.tar.bz2
Add the SmartClip feature.
This patch is based on https://codereview.chromium.org/103913013/ by Juhui Lee <juhui24.lee@samsung.com>. 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
Diffstat (limited to 'content/common')
-rw-r--r--content/common/view_messages.h13
1 files changed, 13 insertions, 0 deletions
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,