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

Side by Side Diff: content/renderer/renderer_blink_platform_impl.h

Issue 829803003: Adding Chrome-side WebVR interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't install message filter unless enable flag is present. Created 5 years, 9 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_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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 119
120 virtual bool loadAudioResource( 120 virtual bool loadAudioResource(
121 blink::WebAudioBus* destination_bus, const char* audio_file_data, 121 blink::WebAudioBus* destination_bus, const char* audio_file_data,
122 size_t data_size); 122 size_t data_size);
123 123
124 virtual blink::WebMIDIAccessor* 124 virtual blink::WebMIDIAccessor*
125 createMIDIAccessor(blink::WebMIDIAccessorClient* client); 125 createMIDIAccessor(blink::WebMIDIAccessorClient* client);
126 126
127 virtual blink::WebBlobRegistry* blobRegistry(); 127 virtual blink::WebBlobRegistry* blobRegistry();
128 virtual void sampleGamepads(blink::WebGamepads&); 128 virtual void sampleGamepads(blink::WebGamepads&);
129
130 virtual void getVRDevices(blink::WebVector<blink::WebVRDevice>* devices);
131 virtual void getHMDSensorState(unsigned, blink::WebHMDSensorState&);
132 virtual void resetVRSensor(unsigned index);
133 virtual void getVRRenderTargetRects(unsigned index,
134 blink::WebVRFieldOfView leftFov,
135 blink::WebVRFieldOfView rightFov,
136 blink::WebVRVector4* leftRect,
137 blink::WebVRVector4* rightRect);
138
129 virtual blink::WebRTCPeerConnectionHandler* createRTCPeerConnectionHandler( 139 virtual blink::WebRTCPeerConnectionHandler* createRTCPeerConnectionHandler(
130 blink::WebRTCPeerConnectionHandlerClient* client); 140 blink::WebRTCPeerConnectionHandlerClient* client);
131 virtual blink::WebMediaStreamCenter* createMediaStreamCenter( 141 virtual blink::WebMediaStreamCenter* createMediaStreamCenter(
132 blink::WebMediaStreamCenterClient* client); 142 blink::WebMediaStreamCenterClient* client);
133 virtual bool processMemorySizesInBytes( 143 virtual bool processMemorySizesInBytes(
134 size_t* private_bytes, size_t* shared_bytes); 144 size_t* private_bytes, size_t* shared_bytes);
135 virtual blink::WebGraphicsContext3D* createOffscreenGraphicsContext3D( 145 virtual blink::WebGraphicsContext3D* createOffscreenGraphicsContext3D(
136 const blink::WebGraphicsContext3D::Attributes& attributes); 146 const blink::WebGraphicsContext3D::Attributes& attributes);
137 virtual blink::WebGraphicsContext3D* createOffscreenGraphicsContext3D( 147 virtual blink::WebGraphicsContext3D* createOffscreenGraphicsContext3D(
138 const blink::WebGraphicsContext3D::Attributes& attributes, 148 const blink::WebGraphicsContext3D::Attributes& attributes,
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 device::VibrationManagerPtr vibration_manager_; 269 device::VibrationManagerPtr vibration_manager_;
260 270
261 IDMap<PlatformEventObserverBase, IDMapOwnPointer> platform_event_observers_; 271 IDMap<PlatformEventObserverBase, IDMapOwnPointer> platform_event_observers_;
262 272
263 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); 273 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl);
264 }; 274 };
265 275
266 } // namespace content 276 } // namespace content
267 277
268 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ 278 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698