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

Unified Diff: content/common/view_messages.h

Issue 342143004: Defect 248426: Speak rendered text when no selection is made on Mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Using WebLocalFrame::contentAsText() for fetching rendered text Created 6 years, 6 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/common/view_messages.h
diff --git a/content/common/view_messages.h b/content/common/view_messages.h
index b3f755fddf32330464ce04a9921564bec49f9dee..ede77f2c24715664a15628a0841eedeac092e733 100644
--- a/content/common/view_messages.h
+++ b/content/common/view_messages.h
@@ -897,6 +897,10 @@ 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_ROUTED0(ViewMsg_GetRenderedText)
+
#if defined(OS_MACOSX)
IPC_ENUM_TRAITS_MAX_VALUE(blink::ScrollerStyle, blink::ScrollerStyleOverlay);
@@ -907,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)
@@ -949,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,
@@ -1684,6 +1685,7 @@ IPC_MESSAGE_ROUTED2(ViewHostMsg_PluginFocusChanged,
// Instructs the browser to start plugin IME.
IPC_MESSAGE_ROUTED0(ViewHostMsg_StartPluginIme)
+IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string);
#elif defined(OS_WIN)
// Request that the given font characters be loaded by the browser so it's

Powered by Google App Engine
This is Rietveld 408576698