OLD | NEW |
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 Loading... |
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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 virtual WebKit::WebMimeRegistry* OverrideWebMimeRegistry(); | 153 virtual WebKit::WebMimeRegistry* OverrideWebMimeRegistry(); |
152 | 154 |
153 // Allows the embedder to override the WebKit::WebHyphenator used. If it | 155 // Allows the embedder to override the WebKit::WebHyphenator used. If it |
154 // returns NULL the content layer will handle hyphenation. | 156 // returns NULL the content layer will handle hyphenation. |
155 virtual WebKit::WebHyphenator* OverrideWebHyphenator(); | 157 virtual WebKit::WebHyphenator* OverrideWebHyphenator(); |
156 | 158 |
157 // Allows the embedder to override the WebThemeEngine used. If it returns NULL | 159 // Allows the embedder to override the WebThemeEngine used. If it returns NULL |
158 // the content layer will provide an engine. | 160 // the content layer will provide an engine. |
159 virtual WebKit::WebThemeEngine* OverrideThemeEngine(); | 161 virtual WebKit::WebThemeEngine* OverrideThemeEngine(); |
160 | 162 |
| 163 // Allows the embedder to override the WebSpeechSynthesizer used. |
| 164 // If it returns NULL the content layer will provide an engine. |
| 165 virtual WebKit::WebSpeechSynthesizer* OverrideSpeechSynthesizer( |
| 166 WebKit::WebSpeechSynthesizerClient* client); |
| 167 |
161 // Returns true if the renderer process should schedule the idle handler when | 168 // Returns true if the renderer process should schedule the idle handler when |
162 // all widgets are hidden. | 169 // all widgets are hidden. |
163 virtual bool RunIdleHandlerWhenWidgetsHidden(); | 170 virtual bool RunIdleHandlerWhenWidgetsHidden(); |
164 | 171 |
165 // Returns true if a popup window should be allowed. | 172 // Returns true if a popup window should be allowed. |
166 virtual bool AllowPopup(); | 173 virtual bool AllowPopup(); |
167 | 174 |
168 // Returns true if the navigation was handled by the embedder and should be | 175 // Returns true if the navigation was handled by the embedder and should be |
169 // ignored by WebKit. This method is used by CEF. | 176 // ignored by WebKit. This method is used by CEF. |
170 virtual bool HandleNavigation(WebKit::WebFrame* frame, | 177 virtual bool HandleNavigation(WebKit::WebFrame* frame, |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 int render_view_id, | 250 int render_view_id, |
244 SynchronousCompositor* compositor) {} | 251 SynchronousCompositor* compositor) {} |
245 | 252 |
246 // Allow the embedder to disable input event filtering by the compositor. | 253 // Allow the embedder to disable input event filtering by the compositor. |
247 virtual bool ShouldCreateCompositorInputHandler() const; | 254 virtual bool ShouldCreateCompositorInputHandler() const; |
248 }; | 255 }; |
249 | 256 |
250 } // namespace content | 257 } // namespace content |
251 | 258 |
252 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 259 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |