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 "content/child/blink_platform_impl.h" | 10 #include "content/child/blink_platform_impl.h" |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 const blink::WebString& input_device_id); | 110 const blink::WebString& input_device_id); |
111 | 111 |
112 virtual bool loadAudioResource( | 112 virtual bool loadAudioResource( |
113 blink::WebAudioBus* destination_bus, const char* audio_file_data, | 113 blink::WebAudioBus* destination_bus, const char* audio_file_data, |
114 size_t data_size); | 114 size_t data_size); |
115 | 115 |
116 virtual blink::WebMIDIAccessor* | 116 virtual blink::WebMIDIAccessor* |
117 createMIDIAccessor(blink::WebMIDIAccessorClient* client); | 117 createMIDIAccessor(blink::WebMIDIAccessorClient* client); |
118 | 118 |
119 virtual blink::WebBlobRegistry* blobRegistry(); | 119 virtual blink::WebBlobRegistry* blobRegistry(); |
120 virtual void sampleGamepads(blink::WebGamepads&) OVERRIDE; | 120 virtual void sampleGamepads(blink::WebGamepads&); |
121 virtual void setGamepadListener(blink::WebGamepadListener*) OVERRIDE; | 121 virtual void setGamepadListener(blink::WebGamepadListener*); |
122 virtual blink::WebRTCPeerConnectionHandler* createRTCPeerConnectionHandler( | 122 virtual blink::WebRTCPeerConnectionHandler* createRTCPeerConnectionHandler( |
123 blink::WebRTCPeerConnectionHandlerClient* client); | 123 blink::WebRTCPeerConnectionHandlerClient* client); |
124 virtual blink::WebMediaStreamCenter* createMediaStreamCenter( | 124 virtual blink::WebMediaStreamCenter* createMediaStreamCenter( |
125 blink::WebMediaStreamCenterClient* client); | 125 blink::WebMediaStreamCenterClient* client); |
126 virtual bool processMemorySizesInBytes( | 126 virtual bool processMemorySizesInBytes( |
127 size_t* private_bytes, size_t* shared_bytes); | 127 size_t* private_bytes, size_t* shared_bytes); |
128 virtual blink::WebGraphicsContext3D* createOffscreenGraphicsContext3D( | 128 virtual blink::WebGraphicsContext3D* createOffscreenGraphicsContext3D( |
129 const blink::WebGraphicsContext3D::Attributes& attributes); | 129 const blink::WebGraphicsContext3D::Attributes& attributes); |
130 virtual blink::WebGraphicsContext3D* createOffscreenGraphicsContext3D( | 130 virtual blink::WebGraphicsContext3D* createOffscreenGraphicsContext3D( |
131 const blink::WebGraphicsContext3D::Attributes& attributes, | 131 const blink::WebGraphicsContext3D::Attributes& attributes, |
132 blink::WebGraphicsContext3D* share_context); | 132 blink::WebGraphicsContext3D* share_context); |
133 virtual blink::WebGraphicsContext3DProvider* | 133 virtual blink::WebGraphicsContext3DProvider* |
134 createSharedOffscreenGraphicsContext3DProvider(); | 134 createSharedOffscreenGraphicsContext3DProvider(); |
135 virtual blink::WebCompositorSupport* compositorSupport(); | 135 virtual blink::WebCompositorSupport* compositorSupport(); |
136 virtual blink::WebString convertIDNToUnicode( | 136 virtual blink::WebString convertIDNToUnicode( |
137 const blink::WebString& host, const blink::WebString& languages); | 137 const blink::WebString& host, const blink::WebString& languages); |
138 virtual void setDeviceMotionListener( | 138 virtual void setDeviceMotionListener( |
139 blink::WebDeviceMotionListener* listener) OVERRIDE; | 139 blink::WebDeviceMotionListener* listener); |
140 virtual void setDeviceOrientationListener( | 140 virtual void setDeviceOrientationListener( |
141 blink::WebDeviceOrientationListener* listener) OVERRIDE; | 141 blink::WebDeviceOrientationListener* listener); |
142 virtual void queryStorageUsageAndQuota( | 142 virtual void queryStorageUsageAndQuota( |
143 const blink::WebURL& storage_partition, | 143 const blink::WebURL& storage_partition, |
144 blink::WebStorageQuotaType, | 144 blink::WebStorageQuotaType, |
145 blink::WebStorageQuotaCallbacks) OVERRIDE; | 145 blink::WebStorageQuotaCallbacks); |
146 virtual void vibrate(unsigned int milliseconds); | 146 virtual void vibrate(unsigned int milliseconds); |
147 virtual void cancelVibration(); | 147 virtual void cancelVibration(); |
148 virtual void setScreenOrientationListener( | 148 virtual void setScreenOrientationListener( |
149 blink::WebScreenOrientationListener*) OVERRIDE; | 149 blink::WebScreenOrientationListener*); |
150 virtual void lockOrientation(blink::WebScreenOrientationLockType) OVERRIDE; | 150 virtual void lockOrientation(blink::WebScreenOrientationLockType); |
151 virtual void unlockOrientation() OVERRIDE; | 151 virtual void unlockOrientation(); |
152 virtual void setBatteryStatusListener( | 152 virtual void setBatteryStatusListener( |
153 blink::WebBatteryStatusListener* listener) OVERRIDE; | 153 blink::WebBatteryStatusListener* listener); |
154 | 154 |
155 // Disables the WebSandboxSupport implementation for testing. | 155 // Disables the WebSandboxSupport implementation for testing. |
156 // Tests that do not set up a full sandbox environment should call | 156 // Tests that do not set up a full sandbox environment should call |
157 // SetSandboxEnabledForTesting(false) _before_ creating any instances | 157 // SetSandboxEnabledForTesting(false) _before_ creating any instances |
158 // of this class, to ensure that we don't attempt to use sandbox-related | 158 // of this class, to ensure that we don't attempt to use sandbox-related |
159 // file descriptors or other resources. | 159 // file descriptors or other resources. |
160 // | 160 // |
161 // Returns the previous |enable| value. | 161 // Returns the previous |enable| value. |
162 static bool SetSandboxEnabledForTesting(bool enable); | 162 static bool SetSandboxEnabledForTesting(bool enable); |
163 | 163 |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 scoped_ptr<blink::WebScrollbarBehavior> web_scrollbar_behavior_; | 236 scoped_ptr<blink::WebScrollbarBehavior> web_scrollbar_behavior_; |
237 | 237 |
238 scoped_ptr<BatteryStatusDispatcher> battery_status_dispatcher_; | 238 scoped_ptr<BatteryStatusDispatcher> battery_status_dispatcher_; |
239 | 239 |
240 DISALLOW_COPY_AND_ASSIGN(RendererWebKitPlatformSupportImpl); | 240 DISALLOW_COPY_AND_ASSIGN(RendererWebKitPlatformSupportImpl); |
241 }; | 241 }; |
242 | 242 |
243 } // namespace content | 243 } // namespace content |
244 | 244 |
245 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ | 245 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ |
OLD | NEW |