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

Unified Diff: content/browser/renderer_host/render_widget_host_view_mac.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: Made C++ private method to dispatch TTS session Created 6 years, 4 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/browser/renderer_host/render_widget_host_view_mac.h
diff --git a/content/browser/renderer_host/render_widget_host_view_mac.h b/content/browser/renderer_host/render_widget_host_view_mac.h
index 87bd1fac3d347cc83b31914c2180905316d44b4b..3d99a7aa1b70fb3174509160ab6e27de93a649f5 100644
--- a/content/browser/renderer_host/render_widget_host_view_mac.h
+++ b/content/browser/renderer_host/render_widget_host_view_mac.h
@@ -582,6 +582,7 @@ class CONTENT_EXPORT RenderWidgetHostViewMac
// IPC message handlers.
void OnPluginFocusChanged(bool focused, int plugin_id);
void OnStartPluginIme();
+ void OnGetRenderedTextCompleted(const std::string& text);
// Convert |rect| from the views coordinate (upper-left origin) into
// the OpenGL coordinate (lower-left origin) and scale for HiDPI displays.
@@ -590,6 +591,8 @@ class CONTENT_EXPORT RenderWidgetHostViewMac
// Send updated vsync parameters to the renderer.
void SendVSyncParametersToRenderer();
+ void SpeakText(const std::string &text);
+
// The associated view. This is weak and is inserted into the view hierarchy
// to own this RenderWidgetHostViewMac object. Set to nil at the start of the
// destructor.

Powered by Google App Engine
This is Rietveld 408576698