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

Side by Side Diff: content/public/renderer/content_renderer_client.h

Issue 12589005: Implement web speech synthesis. (Closed) Base URL: http://git.chromium.org/chromium/src.git@webtts
Patch Set: Move from content to chrome, add runtime flag Created 7 years, 7 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
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_RENDERER_CONTENT_RENDERER_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/string16.h" 10 #include "base/string16.h"
(...skipping 19 matching lines...) Expand all
30 class WebFrame; 30 class WebFrame;
31 class WebHyphenator; 31 class WebHyphenator;
32 class WebMediaPlayerClient; 32 class WebMediaPlayerClient;
33 class WebMediaStreamCenter; 33 class WebMediaStreamCenter;
34 class WebMediaStreamCenterClient; 34 class WebMediaStreamCenterClient;
35 class WebMimeRegistry; 35 class WebMimeRegistry;
36 class WebPlugin; 36 class WebPlugin;
37 class WebPluginContainer; 37 class WebPluginContainer;
38 class WebRTCPeerConnectionHandler; 38 class WebRTCPeerConnectionHandler;
39 class WebRTCPeerConnectionHandlerClient; 39 class WebRTCPeerConnectionHandlerClient;
40 class WebSpeechSynthesizer;
41 class WebSpeechSynthesizerClient;
40 class WebThemeEngine; 42 class WebThemeEngine;
41 class WebURLRequest; 43 class WebURLRequest;
42 struct WebPluginParams; 44 struct WebPluginParams;
43 struct WebURLError; 45 struct WebURLError;
44 } 46 }
45 47
46 namespace webkit { 48 namespace webkit {
47 namespace ppapi { 49 namespace ppapi {
48 class PpapiInterfaceFactoryManager; 50 class PpapiInterfaceFactoryManager;
49 } 51 }
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 virtual WebKit::WebMimeRegistry* OverrideWebMimeRegistry(); 152 virtual WebKit::WebMimeRegistry* OverrideWebMimeRegistry();
151 153
152 // Allows the embedder to override the WebKit::WebHyphenator used. If it 154 // Allows the embedder to override the WebKit::WebHyphenator used. If it
153 // returns NULL the content layer will handle hyphenation. 155 // returns NULL the content layer will handle hyphenation.
154 virtual WebKit::WebHyphenator* OverrideWebHyphenator(); 156 virtual WebKit::WebHyphenator* OverrideWebHyphenator();
155 157
156 // Allows the embedder to override the WebThemeEngine used. If it returns NULL 158 // Allows the embedder to override the WebThemeEngine used. If it returns NULL
157 // the content layer will provide an engine. 159 // the content layer will provide an engine.
158 virtual WebKit::WebThemeEngine* OverrideThemeEngine(); 160 virtual WebKit::WebThemeEngine* OverrideThemeEngine();
159 161
162 // Allows the embedder to override the WebSpeechSynthesizer used.
163 // If it returns NULL the content layer will provide an engine.
164 virtual WebKit::WebSpeechSynthesizer* OverrideSpeechSynthesizer(
165 WebKit::WebSpeechSynthesizerClient* client);
166
160 // Returns true if the renderer process should schedule the idle handler when 167 // Returns true if the renderer process should schedule the idle handler when
161 // all widgets are hidden. 168 // all widgets are hidden.
162 virtual bool RunIdleHandlerWhenWidgetsHidden(); 169 virtual bool RunIdleHandlerWhenWidgetsHidden();
163 170
164 // Returns true if a popup window should be allowed. 171 // Returns true if a popup window should be allowed.
165 virtual bool AllowPopup(); 172 virtual bool AllowPopup();
166 173
167 // Returns true if the navigation was handled by the embedder and should be 174 // Returns true if the navigation was handled by the embedder and should be
168 // ignored by WebKit. This method is used by CEF. 175 // ignored by WebKit. This method is used by CEF.
169 virtual bool HandleNavigation(WebKit::WebFrame* frame, 176 virtual bool HandleNavigation(WebKit::WebFrame* frame,
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 // RenderThreadImpl. If NULL, then a new thread will be created. 241 // RenderThreadImpl. If NULL, then a new thread will be created.
235 virtual base::MessageLoop* OverrideCompositorMessageLoop() const; 242 virtual base::MessageLoop* OverrideCompositorMessageLoop() const;
236 243
237 // Allow the embedder to disable input event filtering by the compositor. 244 // Allow the embedder to disable input event filtering by the compositor.
238 virtual bool ShouldCreateCompositorInputHandler() const; 245 virtual bool ShouldCreateCompositorInputHandler() const;
239 }; 246 };
240 247
241 } // namespace content 248 } // namespace content
242 249
243 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 250 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698