Chromium Code Reviews| Index: content/common/view_messages.h |
| diff --git a/content/common/view_messages.h b/content/common/view_messages.h |
| index 3815910e7270cf6f04567049f13ce1f0fbac51ba..710c416295326a11855bf75864a67234ffe48f5e 100644 |
| --- a/content/common/view_messages.h |
| +++ b/content/common/view_messages.h |
| @@ -894,6 +894,13 @@ IPC_MESSAGE_ROUTED3(ViewMsg_WindowSnapshotCompleted, |
| gfx::Size /* size */, |
| std::vector<unsigned char> /* png */) |
| +// Extracts the data at the given rect, returning it through the |
| +// ViewHostMsg_SmartClipDataExtracted IPC. |
| +IPC_MESSAGE_ROUTED1(ViewMsg_ExtractSmartClipData, |
| + gfx::Rect /* rect */) |
| + |
|
Alexei Svitkine (slow)
2014/06/19 14:55:09
Nit: Extra whitespace here
|
| + |
| + |
| #if defined(OS_MACOSX) |
| IPC_ENUM_TRAITS_MAX_VALUE(blink::ScrollerStyle, blink::ScrollerStyleOverlay); |
| @@ -904,6 +911,8 @@ IPC_MESSAGE_CONTROL5(ViewMsg_UpdateScrollbarTheme, |
| bool /* jump_on_track_click */, |
| blink::ScrollerStyle /* preferred_scroller_style */, |
| bool /* redraw */) |
| +// For now using a different IPC_Message for extracting smart clip on mac. |
| +IPC_MESSAGE_ROUTED1(ViewMsg_GetSmartClipDataFromRect, gfx::Rect /* rect */) |
| #endif |
| #if defined(OS_ANDROID) |
| @@ -946,11 +955,6 @@ IPC_MESSAGE_ROUTED1(ViewMsg_BeginFrame, |
| // processed on the browser side. |
| IPC_MESSAGE_ROUTED0(ViewMsg_ImeEventAck) |
| -// 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, |
| @@ -1681,6 +1685,7 @@ IPC_MESSAGE_ROUTED2(ViewHostMsg_PluginFocusChanged, |
| // Instructs the browser to start plugin IME. |
| IPC_MESSAGE_ROUTED0(ViewHostMsg_StartPluginIme) |
| +IPC_MESSAGE_ROUTED1(ViewMsg_ExtractedDataFromRect, std::string); |
| #elif defined(OS_WIN) |
| // Request that the given font characters be loaded by the browser so it's |