| 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_BLINK_PLATFORM_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ |
| 6 #define CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/id_map.h" | 9 #include "base/id_map.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 | 116 |
| 117 virtual bool loadAudioResource( | 117 virtual bool loadAudioResource( |
| 118 blink::WebAudioBus* destination_bus, const char* audio_file_data, | 118 blink::WebAudioBus* destination_bus, const char* audio_file_data, |
| 119 size_t data_size); | 119 size_t data_size); |
| 120 | 120 |
| 121 virtual blink::WebMIDIAccessor* | 121 virtual blink::WebMIDIAccessor* |
| 122 createMIDIAccessor(blink::WebMIDIAccessorClient* client); | 122 createMIDIAccessor(blink::WebMIDIAccessorClient* client); |
| 123 | 123 |
| 124 virtual blink::WebBlobRegistry* blobRegistry(); | 124 virtual blink::WebBlobRegistry* blobRegistry(); |
| 125 virtual void sampleGamepads(blink::WebGamepads&); | 125 virtual void sampleGamepads(blink::WebGamepads&); |
| 126 |
| 127 virtual void getVRDevices(blink::WebVector<blink::WebVRDevice>* devices); |
| 128 virtual void getHMDSensorState(unsigned, blink::WebHMDSensorState&); |
| 129 virtual void resetVRSensor(unsigned index); |
| 130 virtual void getVRRenderTargetRects(unsigned index, |
| 131 blink::WebVRFieldOfView leftFov, |
| 132 blink::WebVRFieldOfView rightFov, |
| 133 blink::WebVRVector4* leftRect, |
| 134 blink::WebVRVector4* rightRect); |
| 135 |
| 126 virtual blink::WebRTCPeerConnectionHandler* createRTCPeerConnectionHandler( | 136 virtual blink::WebRTCPeerConnectionHandler* createRTCPeerConnectionHandler( |
| 127 blink::WebRTCPeerConnectionHandlerClient* client); | 137 blink::WebRTCPeerConnectionHandlerClient* client); |
| 128 virtual blink::WebMediaStreamCenter* createMediaStreamCenter( | 138 virtual blink::WebMediaStreamCenter* createMediaStreamCenter( |
| 129 blink::WebMediaStreamCenterClient* client); | 139 blink::WebMediaStreamCenterClient* client); |
| 130 virtual bool processMemorySizesInBytes( | 140 virtual bool processMemorySizesInBytes( |
| 131 size_t* private_bytes, size_t* shared_bytes); | 141 size_t* private_bytes, size_t* shared_bytes); |
| 132 virtual blink::WebGraphicsContext3D* createOffscreenGraphicsContext3D( | 142 virtual blink::WebGraphicsContext3D* createOffscreenGraphicsContext3D( |
| 133 const blink::WebGraphicsContext3D::Attributes& attributes); | 143 const blink::WebGraphicsContext3D::Attributes& attributes); |
| 134 virtual blink::WebGraphicsContext3D* createOffscreenGraphicsContext3D( | 144 virtual blink::WebGraphicsContext3D* createOffscreenGraphicsContext3D( |
| 135 const blink::WebGraphicsContext3D::Attributes& attributes, | 145 const blink::WebGraphicsContext3D::Attributes& attributes, |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 device::VibrationManagerPtr vibration_manager_; | 266 device::VibrationManagerPtr vibration_manager_; |
| 257 | 267 |
| 258 IDMap<PlatformEventObserverBase, IDMapOwnPointer> platform_event_observers_; | 268 IDMap<PlatformEventObserverBase, IDMapOwnPointer> platform_event_observers_; |
| 259 | 269 |
| 260 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); | 270 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); |
| 261 }; | 271 }; |
| 262 | 272 |
| 263 } // namespace content | 273 } // namespace content |
| 264 | 274 |
| 265 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ | 275 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ |
| OLD | NEW |