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_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/platform_file.h" | 10 #include "base/platform_file.h" |
11 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
12 #include "content/common/webkitplatformsupport_impl.h" | 12 #include "content/common/webkitplatformsupport_impl.h" |
13 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGraphicsC
ontext3D.h" | 13 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGraphicsC
ontext3D.h" |
14 | 14 |
15 class RendererClipboardClient; | 15 class RendererClipboardClient; |
16 class WebSharedWorkerRepositoryImpl; | 16 class WebSharedWorkerRepositoryImpl; |
17 class WebFileSystemImpl; | 17 class WebFileSystemImpl; |
18 | 18 |
19 namespace content { | 19 namespace content { |
20 class GamepadSharedMemoryReader; | 20 class GamepadSharedMemoryReader; |
| 21 class Hyphenator; |
21 } | 22 } |
22 | 23 |
23 namespace webkit_glue { | 24 namespace webkit_glue { |
24 class WebClipboardImpl; | 25 class WebClipboardImpl; |
25 } | 26 } |
26 | 27 |
27 class CONTENT_EXPORT RendererWebKitPlatformSupportImpl | 28 class CONTENT_EXPORT RendererWebKitPlatformSupportImpl |
28 : public content::WebKitPlatformSupportImpl { | 29 : public content::WebKitPlatformSupportImpl { |
29 public: | 30 public: |
30 RendererWebKitPlatformSupportImpl(); | 31 RendererWebKitPlatformSupportImpl(); |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 WebKit::WebAudioDevice::RenderCallback* callback) OVERRIDE; | 86 WebKit::WebAudioDevice::RenderCallback* callback) OVERRIDE; |
86 virtual WebKit::WebBlobRegistry* blobRegistry() OVERRIDE; | 87 virtual WebKit::WebBlobRegistry* blobRegistry() OVERRIDE; |
87 virtual void sampleGamepads(WebKit::WebGamepads&) OVERRIDE; | 88 virtual void sampleGamepads(WebKit::WebGamepads&) OVERRIDE; |
88 virtual WebKit::WebString userAgent(const WebKit::WebURL& url) OVERRIDE; | 89 virtual WebKit::WebString userAgent(const WebKit::WebURL& url) OVERRIDE; |
89 virtual void GetPlugins(bool refresh, | 90 virtual void GetPlugins(bool refresh, |
90 std::vector<webkit::WebPluginInfo>* plugins) OVERRIDE; | 91 std::vector<webkit::WebPluginInfo>* plugins) OVERRIDE; |
91 virtual WebKit::WebPeerConnection00Handler* createPeerConnection00Handler( | 92 virtual WebKit::WebPeerConnection00Handler* createPeerConnection00Handler( |
92 WebKit::WebPeerConnection00HandlerClient* client) OVERRIDE; | 93 WebKit::WebPeerConnection00HandlerClient* client) OVERRIDE; |
93 virtual WebKit::WebMediaStreamCenter* createMediaStreamCenter( | 94 virtual WebKit::WebMediaStreamCenter* createMediaStreamCenter( |
94 WebKit::WebMediaStreamCenterClient* client) OVERRIDE; | 95 WebKit::WebMediaStreamCenterClient* client) OVERRIDE; |
| 96 virtual bool canHyphenate(const WebKit::WebString& locale) OVERRIDE; |
| 97 virtual size_t computeLastHyphenLocation(const char16* characters, |
| 98 size_t length, |
| 99 size_t before_index, |
| 100 const WebKit::WebString& locale) OVERRIDE; |
95 | 101 |
96 // Disables the WebSandboxSupport implementation for testing. | 102 // Disables the WebSandboxSupport implementation for testing. |
97 // Tests that do not set up a full sandbox environment should call | 103 // Tests that do not set up a full sandbox environment should call |
98 // SetSandboxEnabledForTesting(false) _before_ creating any instances | 104 // SetSandboxEnabledForTesting(false) _before_ creating any instances |
99 // of this class, to ensure that we don't attempt to use sandbox-related | 105 // of this class, to ensure that we don't attempt to use sandbox-related |
100 // file descriptors or other resources. | 106 // file descriptors or other resources. |
101 // | 107 // |
102 // Returns the previous |enable| value. | 108 // Returns the previous |enable| value. |
103 static bool SetSandboxEnabledForTesting(bool enable); | 109 static bool SetSandboxEnabledForTesting(bool enable); |
104 | 110 |
(...skipping 28 matching lines...) Expand all Loading... |
133 // to WorkerService on the browser thread. | 139 // to WorkerService on the browser thread. |
134 scoped_ptr<WebSharedWorkerRepositoryImpl> shared_worker_repository_; | 140 scoped_ptr<WebSharedWorkerRepositoryImpl> shared_worker_repository_; |
135 | 141 |
136 scoped_ptr<WebKit::WebIDBFactory> web_idb_factory_; | 142 scoped_ptr<WebKit::WebIDBFactory> web_idb_factory_; |
137 | 143 |
138 scoped_ptr<WebFileSystemImpl> web_file_system_; | 144 scoped_ptr<WebFileSystemImpl> web_file_system_; |
139 | 145 |
140 scoped_ptr<WebKit::WebBlobRegistry> blob_registry_; | 146 scoped_ptr<WebKit::WebBlobRegistry> blob_registry_; |
141 | 147 |
142 scoped_ptr<content::GamepadSharedMemoryReader> gamepad_shared_memory_reader_; | 148 scoped_ptr<content::GamepadSharedMemoryReader> gamepad_shared_memory_reader_; |
| 149 |
| 150 scoped_ptr<content::Hyphenator> hyphenator_; |
143 }; | 151 }; |
144 | 152 |
145 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ | 153 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ |
OLD | NEW |