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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/browser/renderer_host/test_render_view_host.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/string16.h"
9 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
10 #include "third_party/skia/include/core/SkBitmap.h" 11 #include "third_party/skia/include/core/SkBitmap.h"
11 #include "third_party/skia/include/core/SkRegion.h" 12 #include "third_party/skia/include/core/SkRegion.h"
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h"
13 #include "ui/gfx/native_widget_types.h" 14 #include "ui/gfx/native_widget_types.h"
14 15
15 #if defined(TOOLKIT_GTK) 16 #if defined(TOOLKIT_GTK)
16 #include <gdk/gdk.h> 17 #include <gdk/gdk.h>
17 #endif 18 #endif
18 19
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 // Notifies the view that its enclosing window has changed visibility 117 // Notifies the view that its enclosing window has changed visibility
117 // (minimized/unminimized, app hidden/unhidden, etc). 118 // (minimized/unminimized, app hidden/unhidden, etc).
118 // TODO(stuartmorgan): This is a temporary plugin-specific workaround for 119 // TODO(stuartmorgan): This is a temporary plugin-specific workaround for
119 // <http://crbug.com/34266>. Once that is fixed, this (and the corresponding 120 // <http://crbug.com/34266>. Once that is fixed, this (and the corresponding
120 // message and renderer-side handling) can be removed in favor of using 121 // message and renderer-side handling) can be removed in favor of using
121 // WasHidden/WasShown. 122 // WasHidden/WasShown.
122 virtual void SetWindowVisibility(bool visible) = 0; 123 virtual void SetWindowVisibility(bool visible) = 0;
123 124
124 // Informs the view that its containing window's frame changed. 125 // Informs the view that its containing window's frame changed.
125 virtual void WindowFrameChanged() = 0; 126 virtual void WindowFrameChanged() = 0;
127
128 // Returns |true| if Mac OS X text to speech is supported.
129 virtual bool SupportsSpeech() const = 0;
130 // Tells the view to speak the currently selected text.
131 virtual void SpeakSelection() = 0;
132 // Returns |true| if text is currently being spoken by Mac OS X.
133 virtual bool IsSpeaking() const = 0;
134 // Stops speaking, if it is currently in progress.
135 virtual void StopSpeaking() = 0;
126 #endif // defined(OS_MACOSX) 136 #endif // defined(OS_MACOSX)
127 137
128 #if defined(TOOLKIT_GTK) 138 #if defined(TOOLKIT_GTK)
129 // Gets the event for the last mouse down. 139 // Gets the event for the last mouse down.
130 virtual GdkEventButton* GetLastMouseDown() = 0; 140 virtual GdkEventButton* GetLastMouseDown() = 0;
131 // Builds a submenu containing all the gtk input method commands. 141 // Builds a submenu containing all the gtk input method commands.
132 virtual gfx::NativeView BuildInputMethodsGtkMenu() = 0; 142 virtual gfx::NativeView BuildInputMethodsGtkMenu() = 0;
133 #endif // defined(TOOLKIT_GTK) 143 #endif // defined(TOOLKIT_GTK)
134 144
135 #if defined(OS_ANDROID) 145 #if defined(OS_ANDROID)
(...skipping 13 matching lines...) Expand all
149 // Return value indicates whether the mouse is locked successfully or not. 159 // Return value indicates whether the mouse is locked successfully or not.
150 virtual bool LockMouse() = 0; 160 virtual bool LockMouse() = 0;
151 virtual void UnlockMouse() = 0; 161 virtual void UnlockMouse() = 0;
152 // Returns true if the mouse pointer is currently locked. 162 // Returns true if the mouse pointer is currently locked.
153 virtual bool IsMouseLocked() = 0; 163 virtual bool IsMouseLocked() = 0;
154 }; 164 };
155 165
156 } // namespace content 166 } // namespace content
157 167
158 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ 168 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_
OLDNEW
« 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