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

Issue 2735983004: Visually disable VR Shell back/forward buttons when no history is available (Closed)

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

Description

Visually disable VR Shell back/forward buttons when no history is available The CSS class was defined for this purpose is 'disabled-button' BUG=684634 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2735983004 Cr-Commit-Position: refs/heads/master@{#455591} Committed: https://chromium.googlesource.com/chromium/src/+/87cc44e2eb708c276f8fb2b6644588753ed75c6a

Patch Set 1 #

Total comments: 17

Patch Set 2 : Addressing nit requests and fixing back button for fullscreen mode #

Patch Set 3 : adding/removing click callback accordingly #

Total comments: 2

Patch Set 4 : Optimizing code by avoiding reload of whole UI #

Patch Set 5 : Addressing closure compilation error #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -11 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java View 1 3 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_interface.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_interface.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/resources/vr_shell/vr_shell_ui.css View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/resources/vr_shell/vr_shell_ui.js View 1 2 3 4 11 chunks +57 lines, -11 lines 0 comments Download
M chrome/browser/resources/vr_shell/vr_shell_ui_api.js View 1 2 chunks +10 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (11 generated)
acondor_
Please take a look
3 years, 9 months ago (2017-03-08 16:10:02 UTC) #3
mthiesse
Looks good overall, a few minor comments. https://codereview.chromium.org/2735983004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java File chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java (right): https://codereview.chromium.org/2735983004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java#newcode573 chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java:573: canGoForward = ...
3 years, 9 months ago (2017-03-08 16:15:18 UTC) #4
mthiesse
https://codereview.chromium.org/2735983004/diff/1/chrome/browser/resources/vr_shell/vr_shell_ui.js File chrome/browser/resources/vr_shell/vr_shell_ui.js (right): https://codereview.chromium.org/2735983004/diff/1/chrome/browser/resources/vr_shell/vr_shell_ui.js#newcode186 chrome/browser/resources/vr_shell/vr_shell_ui.js:186: this.button.addEventListener('click', callback); We should also store this callback and ...
3 years, 9 months ago (2017-03-08 16:25:07 UTC) #5
cjgrant
https://codereview.chromium.org/2735983004/diff/1/chrome/browser/resources/vr_shell/vr_shell_ui.js File chrome/browser/resources/vr_shell/vr_shell_ui.js (right): https://codereview.chromium.org/2735983004/diff/1/chrome/browser/resources/vr_shell/vr_shell_ui.js#newcode292 chrome/browser/resources/vr_shell/vr_shell_ui.js:292: this.buttons[0].setEnabled(enabled); This indexing looks a bit risky. Anyone could ...
3 years, 9 months ago (2017-03-08 16:32:15 UTC) #7
amp
Are there any tests we can update to cover these scenarios? I thought we had ...
3 years, 9 months ago (2017-03-08 16:34:14 UTC) #9
acondor_
Updates on the comments https://codereview.chromium.org/2735983004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java File chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java (right): https://codereview.chromium.org/2735983004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java#newcode573 chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java:573: canGoForward = mTab != null ...
3 years, 9 months ago (2017-03-08 16:42:26 UTC) #10
cjgrant
https://codereview.chromium.org/2735983004/diff/1/chrome/browser/resources/vr_shell/vr_shell_ui.js File chrome/browser/resources/vr_shell/vr_shell_ui.js (right): https://codereview.chromium.org/2735983004/diff/1/chrome/browser/resources/vr_shell/vr_shell_ui.js#newcode292 chrome/browser/resources/vr_shell/vr_shell_ui.js:292: this.buttons[0].setEnabled(enabled); On 2017/03/08 16:42:26, acondor wrote: > I agree ...
3 years, 9 months ago (2017-03-08 18:19:32 UTC) #11
mthiesse
To adam's question, there is no existing test framework for the UI. We've got a ...
3 years, 9 months ago (2017-03-08 19:38:16 UTC) #12
mthiesse
https://codereview.chromium.org/2735983004/diff/1/chrome/browser/resources/vr_shell/vr_shell_ui.js File chrome/browser/resources/vr_shell/vr_shell_ui.js (right): https://codereview.chromium.org/2735983004/diff/1/chrome/browser/resources/vr_shell/vr_shell_ui.js#newcode186 chrome/browser/resources/vr_shell/vr_shell_ui.js:186: this.button.addEventListener('click', callback); On 2017/03/08 16:25:07, mthiesse wrote: > We ...
3 years, 9 months ago (2017-03-08 19:40:37 UTC) #13
acondor_
The missing comment was addressed. https://codereview.chromium.org/2735983004/diff/1/chrome/browser/resources/vr_shell/vr_shell_ui.js File chrome/browser/resources/vr_shell/vr_shell_ui.js (right): https://codereview.chromium.org/2735983004/diff/1/chrome/browser/resources/vr_shell/vr_shell_ui.js#newcode186 chrome/browser/resources/vr_shell/vr_shell_ui.js:186: this.button.addEventListener('click', callback); On 2017/03/08 ...
3 years, 9 months ago (2017-03-08 20:21:39 UTC) #14
mthiesse
lgtm
3 years, 9 months ago (2017-03-08 20:40:29 UTC) #15
cjgrant
lgtm after one more comment https://codereview.chromium.org/2735983004/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/2735983004/diff/40001/chrome/browser/resources/vr_shell/vr_shell_ui.js#newcode974 chrome/browser/resources/vr_shell/vr_shell_ui.js:974: this.updateState(); Can you call ...
3 years, 9 months ago (2017-03-08 20:52:01 UTC) #16
acondor_
Suggestion for optimization addressed. https://codereview.chromium.org/2735983004/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/2735983004/diff/40001/chrome/browser/resources/vr_shell/vr_shell_ui.js#newcode974 chrome/browser/resources/vr_shell/vr_shell_ui.js:974: this.updateState(); On 2017/03/08 20:52:01, cjgrant ...
3 years, 9 months ago (2017-03-08 21:21:27 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/2735983004/60001
3 years, 9 months ago (2017-03-08 21:24:15 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: closure_compilation on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/closure_compilation/builds/6812)
3 years, 9 months ago (2017-03-08 21:35:45 UTC) #22
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/2735983004/80001
3 years, 9 months ago (2017-03-08 22:13:11 UTC) #25
commit-bot: I haz the power
3 years, 9 months ago (2017-03-08 23:25:08 UTC) #28
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/87cc44e2eb708c276f8fb2b66445...

Powered by Google App Engine
This is Rietveld 408576698