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

Issue 2543723002: Add switch to disable WebVR gesture requirement

Created:
4 years ago by bsheedy
Modified:
3 years, 10 months ago
CC:
chromium-reviews, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, dglazkov+blink, feature-vr-reviews_chromium.org, darin-cc_chromium.org, blink-reviews, kinuko+watch, blink-reviews-api_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add switch to disable WebVR gesture requirement Adds a way to disable WebVR requiring a user gesture to present to allow automated tests to present. Feature can only be enabled via a the command line flag "--disable-webvr-gestures-for-tests" BUG=667520

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fixed DisabledEnabled naming #

Total comments: 9

Patch Set 3 : Addressed naming comments #

Total comments: 4

Patch Set 4 : Addressed ddorwin@'s naming comments #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -2 lines) Patch
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/child/runtime_features.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M content/public/common/content_switches.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/content_switches.cc View 1 2 1 chunk +5 lines, -0 lines 1 comment Download
M third_party/WebKit/Source/modules/vr/VRDisplay.cpp View 1 2 3 2 chunks +5 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in View 1 2 3 2 chunks +2 lines, -1 line 2 comments Download
M third_party/WebKit/Source/web/WebRuntimeFeatures.cpp View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebRuntimeFeatures.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 32 (6 generated)
bsheedy
bajones@ for third_party/WebKit/Source/Modules/vr/ OWNER bokan@ for third_party/WebKit/Source/web/WebRuntimeFeatures.cpp OWNER kinuko@chromium.org: for everything else
4 years ago (2016-11-30 19:50:07 UTC) #2
bajones
modules/vr LGTM with a naming nit elsewhere.
4 years ago (2016-11-30 21:18:22 UTC) #3
bokan
Suggest using a better name, but lgtm otherwise https://codereview.chromium.org/2543723002/diff/1/third_party/WebKit/Source/modules/vr/VRDisplay.cpp File third_party/WebKit/Source/modules/vr/VRDisplay.cpp (right): https://codereview.chromium.org/2543723002/diff/1/third_party/WebKit/Source/modules/vr/VRDisplay.cpp#newcode279 third_party/WebKit/Source/modules/vr/VRDisplay.cpp:279: RuntimeEnabledFeatures::webVrGesturesDisabledEnabled(); ...
4 years ago (2016-11-30 22:29:11 UTC) #4
bsheedy
webVrGesturesDisabledEnabled -> webVrWithoutUserGesturesEnabled https://codereview.chromium.org/2543723002/diff/1/third_party/WebKit/Source/modules/vr/VRDisplay.cpp File third_party/WebKit/Source/modules/vr/VRDisplay.cpp (right): https://codereview.chromium.org/2543723002/diff/1/third_party/WebKit/Source/modules/vr/VRDisplay.cpp#newcode279 third_party/WebKit/Source/modules/vr/VRDisplay.cpp:279: RuntimeEnabledFeatures::webVrGesturesDisabledEnabled(); On 2016/11/30 22:29:11, bokan wrote: ...
4 years ago (2016-11-30 22:45:29 UTC) #5
ddorwin
https://codereview.chromium.org/2543723002/diff/20001/content/public/common/content_switches.cc File content/public/common/content_switches.cc (right): https://codereview.chromium.org/2543723002/diff/20001/content/public/common/content_switches.cc#newcode310 content/public/common/content_switches.cc:310: "disable-webvr-gestures-for-tests"; "webvr gestures" sounds like a feature. Should we ...
4 years ago (2016-11-30 23:33:34 UTC) #7
haraken
https://codereview.chromium.org/2543723002/diff/20001/third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in File third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in (right): https://codereview.chromium.org/2543723002/diff/20001/third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in#newcode253 third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in:253: WebVrWithoutUserGestures On 2016/11/30 23:33:34, ddorwin wrote: > This seems ...
4 years ago (2016-11-30 23:41:28 UTC) #9
bsheedy
https://codereview.chromium.org/2543723002/diff/20001/content/public/common/content_switches.cc File content/public/common/content_switches.cc (right): https://codereview.chromium.org/2543723002/diff/20001/content/public/common/content_switches.cc#newcode310 content/public/common/content_switches.cc:310: "disable-webvr-gestures-for-tests"; On 2016/11/30 23:33:34, ddorwin wrote: > "webvr gestures" ...
4 years ago (2016-11-30 23:59:12 UTC) #10
ddorwin
LGTM with naming suggestions. Thanks. https://codereview.chromium.org/2543723002/diff/40001/third_party/WebKit/Source/modules/vr/VRDisplay.cpp File third_party/WebKit/Source/modules/vr/VRDisplay.cpp (right): https://codereview.chromium.org/2543723002/diff/40001/third_party/WebKit/Source/modules/vr/VRDisplay.cpp#newcode278 third_party/WebKit/Source/modules/vr/VRDisplay.cpp:278: bool gesturesEnabled = gestureRequired ...
4 years ago (2016-12-01 00:03:11 UTC) #11
bsheedy
https://codereview.chromium.org/2543723002/diff/40001/third_party/WebKit/Source/modules/vr/VRDisplay.cpp File third_party/WebKit/Source/modules/vr/VRDisplay.cpp (right): https://codereview.chromium.org/2543723002/diff/40001/third_party/WebKit/Source/modules/vr/VRDisplay.cpp#newcode278 third_party/WebKit/Source/modules/vr/VRDisplay.cpp:278: bool gesturesEnabled = On 2016/12/01 00:03:10, ddorwin wrote: > ...
4 years ago (2016-12-01 00:11:57 UTC) #13
haraken
LGTM
4 years ago (2016-12-01 01:14:47 UTC) #14
haraken
https://codereview.chromium.org/2543723002/diff/60001/third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in File third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in (right): https://codereview.chromium.org/2543723002/diff/60001/third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in#newcode253 third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in:253: WebVrRequiresUserGesture status=stable Oh, you need to add "status=stable" to ...
4 years ago (2016-12-01 01:19:17 UTC) #16
kinuko
https://codereview.chromium.org/2543723002/diff/60001/content/public/common/content_switches.cc File content/public/common/content_switches.cc (right): https://codereview.chromium.org/2543723002/diff/60001/content/public/common/content_switches.cc#newcode308 content/public/common/content_switches.cc:308: // automated tests can be run in cases where ...
4 years ago (2016-12-01 02:22:03 UTC) #17
bokan
On 2016/12/01 01:19:17, haraken wrote: > https://codereview.chromium.org/2543723002/diff/60001/third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in > File third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in (right): > > https://codereview.chromium.org/2543723002/diff/60001/third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in#newcode253 > ...
4 years ago (2016-12-01 16:36:58 UTC) #18
bsheedy
On 2016/12/01 02:22:03, kinuko wrote: > https://codereview.chromium.org/2543723002/diff/60001/content/public/common/content_switches.cc > File content/public/common/content_switches.cc (right): > > https://codereview.chromium.org/2543723002/diff/60001/content/public/common/content_switches.cc#newcode308 > ...
4 years ago (2016-12-01 17:21:17 UTC) #19
haraken
On 2016/12/01 17:21:17, bsheedy wrote: > On 2016/12/01 02:22:03, kinuko wrote: > > > https://codereview.chromium.org/2543723002/diff/60001/content/public/common/content_switches.cc ...
4 years ago (2016-12-01 23:44:35 UTC) #20
kinuko
On 2016/12/01 23:44:35, haraken wrote: > On 2016/12/01 17:21:17, bsheedy wrote: > > On 2016/12/01 ...
4 years ago (2016-12-02 00:24:49 UTC) #21
Rick Byers
I don't have a strong objection to this, but I am curious why it's really ...
4 years ago (2016-12-02 01:23:25 UTC) #22
bsheedy
On 2016/12/02 01:23:25, Rick Byers wrote: > I don't have a strong objection to this, ...
4 years ago (2016-12-02 01:53:34 UTC) #23
dcheng
On 2016/12/02 01:53:34, bsheedy wrote: > On 2016/12/02 01:23:25, Rick Byers wrote: > > I ...
4 years ago (2016-12-02 02:28:03 UTC) #24
Rick Byers
On 2016/12/02 02:28:03, dcheng wrote: > On 2016/12/02 01:53:34, bsheedy wrote: > > On 2016/12/02 ...
4 years ago (2016-12-02 16:53:38 UTC) #25
dcheng
On 2016/12/02 16:53:38, Rick Byers wrote: > On 2016/12/02 02:28:03, dcheng wrote: > > On ...
4 years ago (2016-12-02 18:12:04 UTC) #26
bsheedy
On 2016/12/02 18:12:04, dcheng wrote: > I'd rather not add more config options. Each option ...
4 years ago (2016-12-02 22:31:00 UTC) #27
Lei Lei
On 2016/12/02 22:31:00, bsheedy wrote: > On 2016/12/02 18:12:04, dcheng wrote: > > I'd rather ...
4 years ago (2016-12-02 22:52:52 UTC) #28
bsheedy
I heard back from one of the Daydream members, and they still would prefer the ...
4 years ago (2016-12-03 01:39:58 UTC) #29
dcheng
On 2016/12/02 22:52:52, Lei Lei wrote: > On 2016/12/02 22:31:00, bsheedy wrote: > > On ...
4 years ago (2016-12-05 07:44:46 UTC) #31
bsheedy
4 years ago (2016-12-09 18:00:57 UTC) #32
We've found a solution that works for the Daydream team without ChromeDriver or
a command line flag, so this isn't necessary for our testing anymore. I still
think it's worth adding this though since external developers have requested a
way to bypass the gesture requirement.

Powered by Google App Engine
This is Rietveld 408576698