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

Unified Diff: content/public/browser/render_widget_host_view.h

Issue 10820062: [Mac]: Enable speech sub-menu under the edit menu and pipe it through to the renderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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
« no previous file with comments | « content/browser/renderer_host/test_render_view_host.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/render_widget_host_view.h
===================================================================
--- content/public/browser/render_widget_host_view.h (revision 149502)
+++ content/public/browser/render_widget_host_view.h (working copy)
@@ -6,6 +6,7 @@
#define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_
#include "base/basictypes.h"
+#include "base/string16.h"
#include "content/common/content_export.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "third_party/skia/include/core/SkRegion.h"
@@ -123,6 +124,15 @@
// Informs the view that its containing window's frame changed.
virtual void WindowFrameChanged() = 0;
+
+ // Returns |true| if Mac OS X text to speech is supported.
+ virtual bool SupportsSpeech() const = 0;
+ // Tells the view to speak the currently selected text.
+ virtual void SpeakSelection() = 0;
+ // Returns |true| if text is currently being spoken by Mac OS X.
+ virtual bool IsSpeaking() const = 0;
+ // Stops speaking, if it is currently in progress.
+ virtual void StopSpeaking() = 0;
#endif // defined(OS_MACOSX)
#if defined(TOOLKIT_GTK)
« no previous file with comments | « content/browser/renderer_host/test_render_view_host.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698