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

Issue 2689583002: Refactor HTML UI handling of native commands. (Closed)

Created:
3 years, 10 months ago by cjgrant
Modified:
3 years, 10 months ago
Reviewers:
mthiesse, tiborg, bshe
CC:
chromium-reviews, feature-vr-reviews_chromium.org, arv+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor HTML UI handling of native commands. Move the definition of the native-to-JS API alongside the existing JS-to-native API definitions, and implement UI's handling of commands using overrides. BUG=None CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2689583002 Cr-Commit-Position: refs/heads/master@{#449794} Committed: https://chromium.googlesource.com/chromium/src/+/11d15bc350ba529ff3c37ba761b2b51954f5afff

Patch Set 1 #

Patch Set 2 : Finish docs, make it work. #

Patch Set 3 : clang-format to the rescue! #

Total comments: 8

Patch Set 4 : Address Biao's nit. #

Patch Set 5 : Rebase to Tot. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+199 lines, -29 lines) Patch
M chrome/browser/resources/vr_shell/vr_shell_ui.js View 1 2 3 4 4 chunks +61 lines, -29 lines 0 comments Download
M chrome/browser/resources/vr_shell/vr_shell_ui_api.js View 1 2 3 4 1 chunk +138 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 20 (9 generated)
cjgrant
https://codereview.chromium.org/2689583002/diff/40001/chrome/browser/resources/vr_shell/vr_shell_ui_api.js File chrome/browser/resources/vr_shell/vr_shell_ui_api.js (right): https://codereview.chromium.org/2689583002/diff/40001/chrome/browser/resources/vr_shell/vr_shell_ui_api.js#newcode503 chrome/browser/resources/vr_shell/vr_shell_ui_api.js:503: * @param {Array<Object>} suggestions Array of suggestions with string ...
3 years, 10 months ago (2017-02-09 19:38:00 UTC) #3
tiborg
https://codereview.chromium.org/2689583002/diff/40001/chrome/browser/resources/vr_shell/vr_shell_ui_api.js File chrome/browser/resources/vr_shell/vr_shell_ui_api.js (right): https://codereview.chromium.org/2689583002/diff/40001/chrome/browser/resources/vr_shell/vr_shell_ui_api.js#newcode444 chrome/browser/resources/vr_shell/vr_shell_ui_api.js:444: api.NativeCommandHandler = class { Maybe split this into the ...
3 years, 10 months ago (2017-02-09 21:44:24 UTC) #4
cjgrant
https://codereview.chromium.org/2689583002/diff/40001/chrome/browser/resources/vr_shell/vr_shell_ui_api.js File chrome/browser/resources/vr_shell/vr_shell_ui_api.js (right): https://codereview.chromium.org/2689583002/diff/40001/chrome/browser/resources/vr_shell/vr_shell_ui_api.js#newcode444 chrome/browser/resources/vr_shell/vr_shell_ui_api.js:444: api.NativeCommandHandler = class { On 2017/02/09 21:44:24, tiborg wrote: ...
3 years, 10 months ago (2017-02-09 22:02:27 UTC) #5
tiborg
https://codereview.chromium.org/2689583002/diff/40001/chrome/browser/resources/vr_shell/vr_shell_ui_api.js File chrome/browser/resources/vr_shell/vr_shell_ui_api.js (right): https://codereview.chromium.org/2689583002/diff/40001/chrome/browser/resources/vr_shell/vr_shell_ui_api.js#newcode444 chrome/browser/resources/vr_shell/vr_shell_ui_api.js:444: api.NativeCommandHandler = class { On 2017/02/09 22:02:27, cjgrant wrote: ...
3 years, 10 months ago (2017-02-10 01:33:05 UTC) #6
tiborg
lgtm
3 years, 10 months ago (2017-02-10 16:37:12 UTC) #7
bshe
lgtm https://codereview.chromium.org/2689583002/diff/40001/chrome/browser/resources/vr_shell/vr_shell_ui.js File chrome/browser/resources/vr_shell/vr_shell_ui.js (right): https://codereview.chromium.org/2689583002/diff/40001/chrome/browser/resources/vr_shell/vr_shell_ui.js#newcode789 chrome/browser/resources/vr_shell/vr_shell_ui.js:789: console.log('Stub: Set tabs'); Do you need to keep ...
3 years, 10 months ago (2017-02-10 19:46:50 UTC) #8
cjgrant
https://codereview.chromium.org/2689583002/diff/40001/chrome/browser/resources/vr_shell/vr_shell_ui.js File chrome/browser/resources/vr_shell/vr_shell_ui.js (right): https://codereview.chromium.org/2689583002/diff/40001/chrome/browser/resources/vr_shell/vr_shell_ui.js#newcode789 chrome/browser/resources/vr_shell/vr_shell_ui.js:789: console.log('Stub: Set tabs'); On 2017/02/10 19:46:50, bshe wrote: > ...
3 years, 10 months ago (2017-02-10 20:17:45 UTC) #9
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/2689583002/60001
3 years, 10 months ago (2017-02-10 20:18:34 UTC) #12
commit-bot: I haz the power
Failed to apply patch for chrome/browser/resources/vr_shell/vr_shell_ui.js: While running git apply --index -p1; error: patch failed: ...
3 years, 10 months ago (2017-02-10 22:05:19 UTC) #14
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/2689583002/80001
3 years, 10 months ago (2017-02-10 22:22:52 UTC) #17
commit-bot: I haz the power
3 years, 10 months ago (2017-02-10 23:52:40 UTC) #20
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/11d15bc350ba529ff3c37ba761b2...

Powered by Google App Engine
This is Rietveld 408576698