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

Issue 2392683002: VrShell: Split HTML UI Javascript into UI and support portions. (Closed)

Created:
4 years, 2 months ago by cjgrant
Modified:
4 years, 2 months ago
Reviewers:
xiyuan, mthiesse, bshe
CC:
chromium-reviews, arv+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

VrShell: Split HTML UI Javascript into UI and support portions. With this change, we have: - A native API Javascript module, hiding details of the Native API. - A scene helper class, to manage adding and removing elements and animations. - The remaining UI Javascript. BUG= CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/bba3b0e5feabdc1146f64fe4325beff7212e5f49 Cr-Commit-Position: refs/heads/master@{#423648}

Patch Set 1 #

Total comments: 5

Patch Set 2 : VrShell: Split HTML UI Javascript into UI and support portions. #

Patch Set 3 : More cleanup. #

Patch Set 4 : Added simple examples to the scene class. #

Patch Set 5 : Change comment period spacing. #

Total comments: 7

Patch Set 6 : Fix nits. #

Patch Set 7 : Rebase to ToT. #

Patch Set 8 : Add new JS resources; change file names to match resource IDs; fix rebase. #

Total comments: 5

Patch Set 9 : Fix element update mesh typo. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+448 lines, -209 lines) Patch
M chrome/browser/browser_resources.grd View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/resources/vr_shell/vr_shell_ui.html View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/resources/vr_shell/vr_shell_ui.js View 1 2 3 4 5 6 3 chunks +25 lines, -207 lines 0 comments Download
A chrome/browser/resources/vr_shell/vr_shell_ui_api.js View 1 2 3 4 5 6 7 1 chunk +271 lines, -0 lines 0 comments Download
A chrome/browser/resources/vr_shell/vr_shell_ui_scene.js View 1 2 3 4 5 6 7 8 1 chunk +145 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/vr_shell/vr_shell_ui_ui.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 24 (8 generated)
cjgrant
Guys, I'm posting this for a sniff-test only. Please ignore style, lack of comments, whitespace, ...
4 years, 2 months ago (2016-10-03 19:44:52 UTC) #4
cjgrant
https://codereview.chromium.org/2392683002/diff/1/chrome/browser/resources/vr_shell/native_api.js File chrome/browser/resources/vr_shell/native_api.js (right): https://codereview.chromium.org/2392683002/diff/1/chrome/browser/resources/vr_shell/native_api.js#newcode115 chrome/browser/resources/vr_shell/native_api.js:115: class UiElementUpdate { Elements can be updated like this: ...
4 years, 2 months ago (2016-10-03 19:50:31 UTC) #5
mthiesse
Seems like the right approach, from a high level. https://codereview.chromium.org/2392683002/diff/1/chrome/browser/resources/vr_shell/native_api.js File chrome/browser/resources/vr_shell/native_api.js (right): https://codereview.chromium.org/2392683002/diff/1/chrome/browser/resources/vr_shell/native_api.js#newcode165 chrome/browser/resources/vr_shell/native_api.js:165: ...
4 years, 2 months ago (2016-10-03 20:42:48 UTC) #6
cjgrant
This is relatively clean now. PTAL.
4 years, 2 months ago (2016-10-04 19:21:27 UTC) #7
bshe
lgtm with nits https://codereview.chromium.org/2392683002/diff/80001/chrome/browser/resources/vr_shell/native_api.js File chrome/browser/resources/vr_shell/native_api.js (right): https://codereview.chromium.org/2392683002/diff/80001/chrome/browser/resources/vr_shell/native_api.js#newcode227 chrome/browser/resources/vr_shell/native_api.js:227: this.startInMillis = 0.0; nit: startInMillis/startInMs https://codereview.chromium.org/2392683002/diff/80001/chrome/browser/resources/vr_shell/native_api.js#newcode230 ...
4 years, 2 months ago (2016-10-05 00:01:40 UTC) #8
cjgrant
https://codereview.chromium.org/2392683002/diff/80001/chrome/browser/resources/vr_shell/native_api.js File chrome/browser/resources/vr_shell/native_api.js (right): https://codereview.chromium.org/2392683002/diff/80001/chrome/browser/resources/vr_shell/native_api.js#newcode227 chrome/browser/resources/vr_shell/native_api.js:227: this.startInMillis = 0.0; On 2016/10/05 00:01:40, bshe wrote: > ...
4 years, 2 months ago (2016-10-05 15:21:11 UTC) #9
cjgrant
xiyuan@chromium.org: Please review changes in: chrome/browser/browser_resources.grd Thanks!
4 years, 2 months ago (2016-10-06 14:34:35 UTC) #11
xiyuan
https://codereview.chromium.org/2392683002/diff/140001/chrome/browser/resources/vr_shell/vr_shell_ui_scene.js File chrome/browser/resources/vr_shell/vr_shell_ui_scene.js (right): https://codereview.chromium.org/2392683002/diff/140001/chrome/browser/resources/vr_shell/vr_shell_ui_scene.js#newcode83 chrome/browser/resources/vr_shell/vr_shell_ui_scene.js:83: 'data': mesh What is |mesh|? Do you mean |update|?
4 years, 2 months ago (2016-10-06 16:19:18 UTC) #12
cjgrant
https://codereview.chromium.org/2392683002/diff/140001/chrome/browser/resources/vr_shell/vr_shell_ui_scene.js File chrome/browser/resources/vr_shell/vr_shell_ui_scene.js (right): https://codereview.chromium.org/2392683002/diff/140001/chrome/browser/resources/vr_shell/vr_shell_ui_scene.js#newcode83 chrome/browser/resources/vr_shell/vr_shell_ui_scene.js:83: 'data': mesh On 2016/10/06 16:19:18, xiyuan wrote: > What ...
4 years, 2 months ago (2016-10-06 16:56:10 UTC) #13
xiyuan
https://codereview.chromium.org/2392683002/diff/140001/chrome/browser/resources/vr_shell/vr_shell_ui_scene.js File chrome/browser/resources/vr_shell/vr_shell_ui_scene.js (right): https://codereview.chromium.org/2392683002/diff/140001/chrome/browser/resources/vr_shell/vr_shell_ui_scene.js#newcode83 chrome/browser/resources/vr_shell/vr_shell_ui_scene.js:83: 'data': mesh On 2016/10/06 16:56:10, cjgrant wrote: > On ...
4 years, 2 months ago (2016-10-06 17:04:14 UTC) #14
cjgrant
https://codereview.chromium.org/2392683002/diff/140001/chrome/browser/resources/vr_shell/vr_shell_ui_scene.js File chrome/browser/resources/vr_shell/vr_shell_ui_scene.js (right): https://codereview.chromium.org/2392683002/diff/140001/chrome/browser/resources/vr_shell/vr_shell_ui_scene.js#newcode83 chrome/browser/resources/vr_shell/vr_shell_ui_scene.js:83: 'data': mesh On 2016/10/06 17:04:14, xiyuan wrote: > On ...
4 years, 2 months ago (2016-10-06 17:07:07 UTC) #15
cjgrant
https://codereview.chromium.org/2392683002/diff/140001/chrome/browser/resources/vr_shell/vr_shell_ui_scene.js File chrome/browser/resources/vr_shell/vr_shell_ui_scene.js (right): https://codereview.chromium.org/2392683002/diff/140001/chrome/browser/resources/vr_shell/vr_shell_ui_scene.js#newcode83 chrome/browser/resources/vr_shell/vr_shell_ui_scene.js:83: 'data': mesh On 2016/10/06 17:07:07, cjgrant wrote: > On ...
4 years, 2 months ago (2016-10-06 17:12:37 UTC) #16
xiyuan
lgtm
4 years, 2 months ago (2016-10-06 17:18:01 UTC) #17
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/2392683002/160001
4 years, 2 months ago (2016-10-06 17:58:20 UTC) #20
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 2 months ago (2016-10-06 20:20:18 UTC) #22
commit-bot: I haz the power
4 years, 2 months ago (2016-10-06 20:23:21 UTC) #24
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/bba3b0e5feabdc1146f64fe4325beff7212e5f49
Cr-Commit-Position: refs/heads/master@{#423648}

Powered by Google App Engine
This is Rietveld 408576698