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

Issue 848053002: Adding WebVR interface to Blink (Closed)

Created:
5 years, 11 months ago by bajones
Modified:
5 years, 6 months ago
CC:
blink-reviews, dglazkov+blink
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Adding WebVR interface to Blink For the Chrome half of this CL, see https://codereview.chromium.org/829803003. WebVR exposes an interface to Virtual Reality hardware, like Google Cardboard or the Oculus Rift, to Javascript. The intention is to allow developers to create Virtual Reality experiences on the web that are performant as possible while abstracting away the differences between various types of hardware. The API is being developed in conjunction with Mozilla (http://mozvr.com/content/2014/11/10/mozvr-launches.html). BUG=389343 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=192045

Patch Set 1 #

Patch Set 2 : Made sure VR flag was disabled by default. #

Patch Set 3 : Rebase #

Total comments: 9

Patch Set 4 : Addressed feedback from philipj@opera.com, rebased #

Total comments: 28

Patch Set 5 : Addressed sigbjornf@'s epic amount of feedback #

Total comments: 6

Patch Set 6 : Addressed further feedback from sigbjornf@ and haraken@ #

Total comments: 1

Patch Set 7 : Updated interface to match public spec #

Total comments: 5

Patch Set 8 : Addressed feedback from mkwst@, added kbr@ as a modules/vr owner #

Patch Set 9 : Fixed compiler warning treated as an error on Windows #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+1230 lines, -3 lines) Patch
M Source/modules/modules.gypi View 1 2 3 4 5 6 5 chunks +25 lines, -0 lines 0 comments Download
A Source/modules/vr/HMDVRDevice.h View 1 2 3 4 5 6 7 1 chunk +45 lines, -0 lines 2 comments Download
A Source/modules/vr/HMDVRDevice.cpp View 1 2 3 4 5 6 1 chunk +97 lines, -0 lines 0 comments Download
A Source/modules/vr/HMDVRDevice.idl View 1 2 3 4 5 6 7 1 chunk +20 lines, -0 lines 0 comments Download
A Source/modules/vr/NavigatorVRDevice.h View 1 2 3 4 1 chunk +46 lines, -0 lines 0 comments Download
A Source/modules/vr/NavigatorVRDevice.cpp View 1 2 3 4 1 chunk +110 lines, -0 lines 0 comments Download
A + Source/modules/vr/NavigatorVRDevice.idl View 1 2 3 4 5 6 1 chunk +3 lines, -3 lines 0 comments Download
A Source/modules/vr/OWNERS View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
A Source/modules/vr/PositionSensorVRDevice.h View 1 2 3 4 5 6 1 chunk +32 lines, -0 lines 0 comments Download
A Source/modules/vr/PositionSensorVRDevice.cpp View 1 2 3 4 5 6 1 chunk +38 lines, -0 lines 1 comment Download
A Source/modules/vr/PositionSensorVRDevice.idl View 1 2 3 4 5 6 7 1 chunk +16 lines, -0 lines 0 comments Download
A Source/modules/vr/VRDevice.h View 1 2 3 4 1 chunk +44 lines, -0 lines 0 comments Download
A Source/modules/vr/VRDevice.cpp View 1 2 3 4 1 chunk +26 lines, -0 lines 0 comments Download
A Source/modules/vr/VRDevice.idl View 1 2 3 4 5 6 7 1 chunk +22 lines, -0 lines 0 comments Download
A Source/modules/vr/VREyeParameters.h View 1 2 3 4 5 6 1 chunk +53 lines, -0 lines 0 comments Download
A Source/modules/vr/VREyeParameters.cpp View 1 2 3 4 5 6 1 chunk +66 lines, -0 lines 0 comments Download
A Source/modules/vr/VREyeParameters.idl View 1 2 3 4 5 6 7 1 chunk +19 lines, -0 lines 0 comments Download
A Source/modules/vr/VRFieldOfView.h View 1 2 3 4 5 6 1 chunk +102 lines, -0 lines 0 comments Download
A Source/modules/vr/VRFieldOfView.idl View 1 2 3 4 5 6 7 1 chunk +17 lines, -0 lines 0 comments Download
A Source/modules/vr/VRFieldOfViewInit.idl View 1 2 3 4 5 6 7 1 chunk +14 lines, -0 lines 0 comments Download
A Source/modules/vr/VRHardwareUnit.h View 1 2 3 4 5 6 7 8 1 chunk +67 lines, -0 lines 0 comments Download
A Source/modules/vr/VRHardwareUnit.cpp View 1 2 3 4 5 6 7 8 1 chunk +105 lines, -0 lines 0 comments Download
A Source/modules/vr/VRPositionState.h View 1 2 3 4 1 chunk +51 lines, -0 lines 0 comments Download
A Source/modules/vr/VRPositionState.cpp View 1 2 3 4 1 chunk +53 lines, -0 lines 2 comments Download
A Source/modules/vr/VRPositionState.idl View 1 2 3 4 5 6 7 1 chunk +17 lines, -0 lines 0 comments Download
M Source/platform/RuntimeEnabledFeatures.in View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/FrameLoaderClientImpl.cpp View 1 2 3 4 5 6 7 2 chunks +3 lines, -0 lines 0 comments Download
M Source/web/WebRuntimeFeatures.cpp View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M public/platform/Platform.h View 1 2 3 4 5 6 2 chunks +18 lines, -0 lines 0 comments Download
A public/platform/WebVR.h View 1 2 3 4 5 1 chunk +112 lines, -0 lines 0 comments Download
M public/web/WebRuntimeFeatures.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 46 (13 generated)
bajones
After living in an experimental branch for multiple months I feel like WebVR is at ...
5 years, 11 months ago (2015-01-15 00:47:49 UTC) #2
Mike West
Hey Brandon! I'll take a look at the CL later today. That said, given the ...
5 years, 11 months ago (2015-01-15 05:32:10 UTC) #3
bajones
Updated the mailing list a couple of weeks ago (I've been OOO most of this ...
5 years, 10 months ago (2015-01-30 23:06:32 UTC) #4
bajones
Adding more reviewers for non-modules code.
5 years, 10 months ago (2015-02-03 22:22:02 UTC) #6
jochen (gone - plz use gerrit)
+some ppl more involved in this discussion
5 years, 10 months ago (2015-02-04 12:52:07 UTC) #8
Ken Russell (switch to Gerrit)
Very nice; the code looks very straightforward and regular. Looks good overall. A few comments. ...
5 years, 10 months ago (2015-02-04 19:14:00 UTC) #9
bajones
On 2015/02/04 at 19:14:00, kbr wrote: > https://codereview.chromium.org/848053002/diff/40001/Source/modules/vr/HMDVRDevice.cpp#newcode42 > Source/modules/vr/HMDVRDevice.cpp:42: return VREyeLeft; > This should ...
5 years, 10 months ago (2015-02-05 00:06:14 UTC) #10
philipj_slow
I've taken a quick look at the IDL files and left a few comments, looks ...
5 years, 10 months ago (2015-02-06 01:57:15 UTC) #12
bajones
Thanks for the feedback! This is exactly the sort of conversation I was hoping to ...
5 years, 10 months ago (2015-02-06 21:37:49 UTC) #13
bajones
Apologies for the delay, but the CL has now been updated to take into account ...
5 years, 10 months ago (2015-02-20 21:21:22 UTC) #14
Rick Byers
Removing myself as a reviewer, I don't think we need this many reviewers on the ...
5 years, 10 months ago (2015-02-21 01:59:14 UTC) #16
philipj_slow
https://codereview.chromium.org/848053002/diff/40001/Source/modules/vr/PositionSensorVRDevice.idl File Source/modules/vr/PositionSensorVRDevice.idl (right): https://codereview.chromium.org/848053002/diff/40001/Source/modules/vr/PositionSensorVRDevice.idl#newcode10 Source/modules/vr/PositionSensorVRDevice.idl:10: void zeroSensor(); On 2015/02/06 01:57:14, philipj_UTC7 wrote: > zero ...
5 years, 10 months ago (2015-02-23 02:33:11 UTC) #17
Ken Russell (switch to Gerrit)
This LGTM overall with philipj@'s comments addressed. Note I'm not an owner in public/. https://codereview.chromium.org/848053002/diff/60001/Source/modules/vr/VRHardwareUnit.cpp ...
5 years, 10 months ago (2015-02-23 19:39:32 UTC) #18
bajones
+oilpan-reviews. Other feedback will be addressed shortly. Thanks for the reviews thus far!
5 years, 10 months ago (2015-02-23 20:14:11 UTC) #20
sof
Looks good from an Oilpan pov already. https://codereview.chromium.org/848053002/diff/60001/Source/modules/vr/HMDVRDevice.cpp File Source/modules/vr/HMDVRDevice.cpp (right): https://codereview.chromium.org/848053002/diff/60001/Source/modules/vr/HMDVRDevice.cpp#newcode24 Source/modules/vr/HMDVRDevice.cpp:24: } // ...
5 years, 10 months ago (2015-02-24 12:35:30 UTC) #22
bajones
On 2015/02/24 at 12:35:30, sigbjornf wrote: > Looks good from an Oilpan pov already. > ...
5 years, 10 months ago (2015-02-24 23:19:24 UTC) #23
sof
https://codereview.chromium.org/848053002/diff/80001/public/platform/Platform.h File public/platform/Platform.h (right): https://codereview.chromium.org/848053002/diff/80001/public/platform/Platform.h#newcode60 public/platform/Platform.h:60: #include <vector> You can remove this now. https://codereview.chromium.org/848053002/diff/80001/public/platform/WebVR.h File ...
5 years, 10 months ago (2015-02-25 06:30:34 UTC) #24
sof
On 2015/02/24 23:19:24, bajones wrote: > On 2015/02/24 at 12:35:30, sigbjornf wrote: > > Looks ...
5 years, 10 months ago (2015-02-25 07:15:16 UTC) #25
haraken
Oilpan part LGTM. https://codereview.chromium.org/848053002/diff/80001/Source/modules/vr/HMDVRDevice.idl File Source/modules/vr/HMDVRDevice.idl (right): https://codereview.chromium.org/848053002/diff/80001/Source/modules/vr/HMDVRDevice.idl#newcode15 Source/modules/vr/HMDVRDevice.idl:15: GarbageCollected, You don't need [GarbageCollected], since ...
5 years, 10 months ago (2015-02-25 11:52:56 UTC) #26
bajones
haraken@ and sigbjornf@'s feedback has been addressed. Thanks for the reviews! mkwst@: Although our presubmit ...
5 years, 9 months ago (2015-02-27 18:25:03 UTC) #27
bajones
https://codereview.chromium.org/848053002/diff/100001/Source/platform/RuntimeEnabledFeatures.in File Source/platform/RuntimeEnabledFeatures.in (right): https://codereview.chromium.org/848053002/diff/100001/Source/platform/RuntimeEnabledFeatures.in#newcode157 Source/platform/RuntimeEnabledFeatures.in:157: VRDevice depends_on=GeometryInterfaces, status=stable Ugh. Apologies for this oversight. These ...
5 years, 9 months ago (2015-02-27 21:10:10 UTC) #28
bajones
FYI, WebVR has a public spec now! http://mozvr.github.io/webvr-spec/webvr.html I've updated this CL to match the ...
5 years, 9 months ago (2015-03-16 21:30:35 UTC) #30
philipj_slow
https://codereview.chromium.org/848053002/diff/140001/Source/modules/vr/OWNERS File Source/modules/vr/OWNERS (right): https://codereview.chromium.org/848053002/diff/140001/Source/modules/vr/OWNERS#newcode1 Source/modules/vr/OWNERS:1: bajones@chromium.org Maybe you can find a co-owner to review ...
5 years, 9 months ago (2015-03-17 02:27:28 UTC) #31
Mike West
public/ and modules/ LGTM % a few nits. Sorry, this fell off my radar completely. ...
5 years, 9 months ago (2015-03-17 05:25:27 UTC) #32
bajones
On 2015/03/17 at 05:25:27, mkwst wrote: > public/ and modules/ LGTM % a few nits. ...
5 years, 9 months ago (2015-03-17 20:07:45 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/848053002/160001
5 years, 9 months ago (2015-03-17 20:08:29 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/848053002/180001
5 years, 9 months ago (2015-03-17 21:40:37 UTC) #39
commit-bot: I haz the power
Committed patchset #9 (id:180001) as https://src.chromium.org/viewvc/blink?view=rev&revision=192045
5 years, 9 months ago (2015-03-17 23:27:00 UTC) #40
mdempsky
https://codereview.chromium.org/848053002/diff/180001/Source/modules/vr/PositionSensorVRDevice.cpp File Source/modules/vr/PositionSensorVRDevice.cpp (right): https://codereview.chromium.org/848053002/diff/180001/Source/modules/vr/PositionSensorVRDevice.cpp#newcode30 Source/modules/vr/PositionSensorVRDevice.cpp:30: blink::Platform::current()->resetVRSensor(index()); Should resetting a VR sensor be global like ...
5 years, 7 months ago (2015-05-11 22:48:40 UTC) #42
bajones
On 2015/05/11 22:48:40, mdempsky wrote: > https://codereview.chromium.org/848053002/diff/180001/Source/modules/vr/PositionSensorVRDevice.cpp > File Source/modules/vr/PositionSensorVRDevice.cpp (right): > > https://codereview.chromium.org/848053002/diff/180001/Source/modules/vr/PositionSensorVRDevice.cpp#newcode30 > ...
5 years, 7 months ago (2015-05-11 23:01:02 UTC) #43
mdempsky
On 2015/05/11 23:01:02, bajones wrote: > Maybe not "intentional", but at least a known issue. ...
5 years, 7 months ago (2015-05-11 23:14:44 UTC) #44
esprehn
https://codereview.chromium.org/848053002/diff/180001/Source/modules/vr/HMDVRDevice.h File Source/modules/vr/HMDVRDevice.h (right): https://codereview.chromium.org/848053002/diff/180001/Source/modules/vr/HMDVRDevice.h#newcode26 Source/modules/vr/HMDVRDevice.h:26: typedef Vector<double> DoubleVector; unused? https://codereview.chromium.org/848053002/diff/180001/Source/modules/vr/HMDVRDevice.h#newcode36 Source/modules/vr/HMDVRDevice.h:36: static VREye StringToVREye(const ...
5 years, 6 months ago (2015-06-22 22:05:27 UTC) #45
bajones
5 years, 6 months ago (2015-06-23 20:39:08 UTC) #46
Message was sent while issue was closed.
Thanks for pointing out the casing inconsistencies! Patch up here:
https://codereview.chromium.org/1207513003/ 

On 2015/06/22 22:05:27, esprehn wrote:
> Source/modules/vr/HMDVRDevice.h:26: typedef Vector<double> DoubleVector;
> unused?

Already removed by a later patch.

Powered by Google App Engine
This is Rietveld 408576698