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

Issue 2317483002: Add support of vrdisplayconnect and vrdisplaydisconnect event (Closed)

Created:
4 years, 3 months ago by shaobo.yan
Modified:
4 years, 3 months ago
CC:
yunchao, hokein.wu_gmail.com
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add support of vrdisplayconnect and vrdisplaydisconnect event This patch adds vrdisplayconnect and vrdisplaydisconnect event support of google vr sdk for android. It defines 'connect' status as nativeContext is available and defines 'disconnect' status as nativeContext is unavailable. Note that connect event may dispatch before user get vr devices because devices in connection status could already deliever user some device info and user could use this event to do some preparing work. BUG=389343 R=bajones@chromium.org, kenrd@chromium.org, ochang@chromium.org Committed: https://crrev.com/66ce5b08f2af95f149303ad716119db190a52823 Cr-Commit-Position: refs/heads/master@{#419392}

Patch Set 1 #

Patch Set 2 : Fix typo of Event reason #

Total comments: 6

Patch Set 3 : Address most comments from bajones@ #

Total comments: 4

Patch Set 4 : Address comments from bajones@ #

Patch Set 5 : Clean some style issue according to mthiesse@ #

Total comments: 8

Patch Set 6 : More Clean according to bajones@ comments #

Patch Set 7 : Update test case to fix android compile error #

Patch Set 8 : remove unused function #

Patch Set 9 : Remove unused variable #

Patch Set 10 : Rebase #

Patch Set 11 : fix missing brace #

Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -6 lines) Patch
M device/vr/android/gvr/gvr_device_provider.h View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download
M device/vr/android/gvr/gvr_device_provider.cc View 1 2 3 4 5 1 chunk +9 lines, -5 lines 0 comments Download
M device/vr/vr_client_dispatcher.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M device/vr/vr_device_manager.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M device/vr/vr_device_manager.cc View 1 2 3 4 5 6 7 8 9 1 chunk +20 lines, -1 line 0 comments Download
M device/vr/vr_device_provider.h View 3 2 chunks +3 lines, -0 lines 0 comments Download
M device/vr/vr_service.mojom View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M device/vr/vr_service_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +24 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/vr/NavigatorVR.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/vr/NavigatorVR.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/vr/VRController.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/vr/VRController.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +22 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/vr/VRDisplay.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/vr/VRDisplay.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 63 (38 generated)
shaobo.yan
4 years, 3 months ago (2016-09-06 00:54:54 UTC) #3
bajones
Doesn't look bad. A few comments about changes I'd like to see. (I know this ...
4 years, 3 months ago (2016-09-06 23:25:46 UTC) #8
mthiesse
https://codereview.chromium.org/2317483002/diff/20001/device/vr/android/gvr/gvr_device.cc File device/vr/android/gvr/gvr_device.cc (right): https://codereview.chromium.org/2317483002/diff/20001/device/vr/android/gvr/gvr_device.cc#newcode140 device/vr/android/gvr/gvr_device.cc:140: // the nit: fix comment formatting.
4 years, 3 months ago (2016-09-06 23:39:25 UTC) #9
bajones
https://codereview.chromium.org/2317483002/diff/20001/device/vr/android/gvr/gvr_device.cc File device/vr/android/gvr/gvr_device.cc (right): https://codereview.chromium.org/2317483002/diff/20001/device/vr/android/gvr/gvr_device.cc#newcode145 device/vr/android/gvr/gvr_device.cc:145: void GvrDevice::PollEvents() { Sorry, I'm also realizing that this ...
4 years, 3 months ago (2016-09-06 23:57:26 UTC) #10
shaobo.yan
https://codereview.chromium.org/2317483002/diff/20001/device/vr/android/gvr/gvr_device.cc File device/vr/android/gvr/gvr_device.cc (right): https://codereview.chromium.org/2317483002/diff/20001/device/vr/android/gvr/gvr_device.cc#newcode145 device/vr/android/gvr/gvr_device.cc:145: void GvrDevice::PollEvents() { On 2016/09/06 23:57:26, bajones wrote: > ...
4 years, 3 months ago (2016-09-07 00:49:19 UTC) #11
shaobo.yan
https://codereview.chromium.org/2317483002/diff/20001/device/vr/vr_device.h File device/vr/vr_device.h (right): https://codereview.chromium.org/2317483002/diff/20001/device/vr/vr_device.h#newcode39 device/vr/vr_device.h:39: virtual void PollEvents() = 0; On 2016/09/06 23:25:46, bajones ...
4 years, 3 months ago (2016-09-07 02:45:50 UTC) #12
shaobo.yan
On 2016/09/07 00:49:19, shaobo.yan wrote: > https://codereview.chromium.org/2317483002/diff/20001/device/vr/android/gvr/gvr_device.cc > File device/vr/android/gvr/gvr_device.cc (right): > > https://codereview.chromium.org/2317483002/diff/20001/device/vr/android/gvr/gvr_device.cc#newcode145 > ...
4 years, 3 months ago (2016-09-08 07:26:35 UTC) #17
shaobo.yan
ping bajones@ and mthiesse@, PTAL.
4 years, 3 months ago (2016-09-09 00:34:26 UTC) #18
bajones
On 2016/09/09 00:34:26, shaobo.yan wrote: > ping bajones@ and mthiesse@, PTAL. Apologies, I've been swamped ...
4 years, 3 months ago (2016-09-09 00:35:34 UTC) #19
shaobo.yan
On 2016/09/09 00:35:34, bajones wrote: > On 2016/09/09 00:34:26, shaobo.yan wrote: > > ping bajones@ ...
4 years, 3 months ago (2016-09-09 00:38:45 UTC) #20
bajones
Definitely feeling better. Two more bits of feedback and I think we'll be good. https://codereview.chromium.org/2317483002/diff/40001/device/vr/android/gvr/gvr_device.cc ...
4 years, 3 months ago (2016-09-09 05:53:00 UTC) #21
mthiesse
A few style nits. https://codereview.chromium.org/2317483002/diff/40001/device/vr/android/gvr/gvr_device.h File device/vr/android/gvr/gvr_device.h (right): https://codereview.chromium.org/2317483002/diff/40001/device/vr/android/gvr/gvr_device.h#newcode33 device/vr/android/gvr/gvr_device.h:33: // Gvr connection/disconnection Status Handler ...
4 years, 3 months ago (2016-09-10 20:58:34 UTC) #22
shaobo.yan
Thx for reviwing and apologize for response late due to personal network issue (my VPN ...
4 years, 3 months ago (2016-09-12 00:42:35 UTC) #23
bajones
No worries, and thanks for sticking with this! A few more comments for you, and ...
4 years, 3 months ago (2016-09-12 01:36:16 UTC) #24
shaobo.yan
bajones@ all comments done! and dcheng@ PTAL https://codereview.chromium.org/2317483002/diff/80001/device/vr/android/gvr/gvr_device.h File device/vr/android/gvr/gvr_device.h (right): https://codereview.chromium.org/2317483002/diff/80001/device/vr/android/gvr/gvr_device.h#newcode37 device/vr/android/gvr/gvr_device.h:37: bool isConnectionStatusChanged_; ...
4 years, 3 months ago (2016-09-12 01:59:02 UTC) #26
bajones
LGTM! Thanks!
4 years, 3 months ago (2016-09-12 02:33:14 UTC) #27
shaobo.yan
dcheng@, jln@ and kenrb@ PTAL the mojom file modification
4 years, 3 months ago (2016-09-13 02:11:41 UTC) #43
kenrb
mojom lgtm
4 years, 3 months ago (2016-09-13 16:30:38 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2317483002/150001
4 years, 3 months ago (2016-09-18 00:17:10 UTC) #49
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/71207) mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 3 months ago (2016-09-18 00:19:19 UTC) #51
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2317483002/170001
4 years, 3 months ago (2016-09-18 00:51:21 UTC) #54
commit-bot: I haz the power
Try jobs failed on following builders: android_compile_dbg on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_compile_dbg/builds/130818)
4 years, 3 months ago (2016-09-18 01:16:30 UTC) #56
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2317483002/190001
4 years, 3 months ago (2016-09-18 01:24:21 UTC) #59
commit-bot: I haz the power
Committed patchset #11 (id:190001)
4 years, 3 months ago (2016-09-18 03:12:53 UTC) #61
commit-bot: I haz the power
4 years, 3 months ago (2016-09-18 03:15:39 UTC) #63
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/66ce5b08f2af95f149303ad716119db190a52823
Cr-Commit-Position: refs/heads/master@{#419392}

Powered by Google App Engine
This is Rietveld 408576698