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

Issue 2914623003: [VrShell] Centralize color handling and enable close button on fullscreen (Closed)

Created:
3 years, 6 months ago by amp
Modified:
3 years, 6 months ago
CC:
chromium-reviews, feature-vr-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[VrShell] Centralize color handling and enable close button on fullscreen This updates all of the existing hard coded colors to use colors from the scheme instead of hardcoding (so they can change with the mode). The naming of colors in the scheme was also updated for better consistency and to differentiate from world environment colors. BUG=719997, 729729 Review-Url: https://codereview.chromium.org/2914623003 Cr-Commit-Position: refs/heads/master@{#477411} Committed: https://chromium.googlesource.com/chromium/src/+/f9189aa4473f6915826d070f6e3fb008a2904d8f

Patch Set 1 #

Patch Set 2 : update fullscreen colors, try to get them to show up on mode switch #

Total comments: 8

Patch Set 3 : Add all the colors! #

Patch Set 4 : Fix showing close button in cct #

Patch Set 5 : fix tests #

Patch Set 6 : clean up after rebase #

Total comments: 10

Patch Set 7 : cleanup and address comments, also rebased onto fullscreen change so I can verify colors #

Total comments: 1

Patch Set 8 : Rebase and update close button colors and position per Josh #

Patch Set 9 : adjust close button vertical a bit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+211 lines, -126 lines) Patch
M chrome/browser/android/vr_shell/color_scheme.h View 1 2 3 4 5 6 2 chunks +27 lines, -12 lines 0 comments Download
M chrome/browser/android/vr_shell/color_scheme.cc View 1 2 3 4 5 6 7 1 chunk +47 lines, -23 lines 0 comments Download
M chrome/browser/android/vr_shell/textures/button_texture.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/textures/button_texture.cc View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/textures/close_button_texture.cc View 1 2 3 4 5 6 7 4 chunks +6 lines, -8 lines 0 comments Download
M chrome/browser/android/vr_shell/textures/exit_warning_texture.cc View 1 2 3 4 2 chunks +5 lines, -6 lines 0 comments Download
M chrome/browser/android/vr_shell/textures/insecure_content_permanent_texture.cc View 1 2 3 4 3 chunks +6 lines, -7 lines 0 comments Download
M chrome/browser/android/vr_shell/textures/insecure_content_transient_texture.cc View 1 2 3 4 2 chunks +4 lines, -6 lines 0 comments Download
M chrome/browser/android/vr_shell/textures/loading_indicator_texture.cc View 1 2 3 4 5 2 chunks +2 lines, -5 lines 0 comments Download
M chrome/browser/android/vr_shell/textures/system_indicator_texture.cc View 1 2 3 4 4 chunks +5 lines, -7 lines 0 comments Download
M chrome/browser/android/vr_shell/textures/ui_texture.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/textures/ui_texture.cc View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/textures/url_bar_texture.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/android/vr_shell/textures/url_bar_texture.cc View 1 2 3 4 5 6 7 5 chunks +10 lines, -14 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_elements/screen_dimmer.cc View 1 2 3 chunks +7 lines, -4 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_elements/textured_element.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_scene.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/android/vr_shell/ui_scene.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_scene_manager.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_scene_manager.cc View 1 2 3 4 5 6 7 8 8 chunks +42 lines, -13 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc View 1 2 3 4 5 6 7 4 chunks +34 lines, -16 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell_gl.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 33 (22 generated)
amp
Tests still need to be updated, but I wanted to send this out to make ...
3 years, 6 months ago (2017-05-30 23:19:27 UTC) #2
cjgrant
https://codereview.chromium.org/2914623003/diff/20001/chrome/browser/android/vr_shell/color_scheme.h File chrome/browser/android/vr_shell/color_scheme.h (right): https://codereview.chromium.org/2914623003/diff/20001/chrome/browser/android/vr_shell/color_scheme.h#newcode24 chrome/browser/android/vr_shell/color_scheme.h:24: SkColor world_background; This more verbose naming looks great to ...
3 years, 6 months ago (2017-05-31 15:39:28 UTC) #5
amp
PTAL. Still need to get tests working (and verify proper behavior with hover and in ...
3 years, 6 months ago (2017-06-02 01:08:36 UTC) #7
cjgrant
https://codereview.chromium.org/2914623003/diff/20001/chrome/browser/android/vr_shell/ui_scene_manager.cc File chrome/browser/android/vr_shell/ui_scene_manager.cc (right): https://codereview.chromium.org/2914623003/diff/20001/chrome/browser/android/vr_shell/ui_scene_manager.cc#newcode341 chrome/browser/android/vr_shell/ui_scene_manager.cc:341: close_button_->SetEnabled(fullscreen_); On 2017/06/02 01:08:35, amp wrote: > On 2017/05/31 ...
3 years, 6 months ago (2017-06-02 12:51:48 UTC) #8
amp
I still need to merge this with Aldo's last change (and make sure I don't ...
3 years, 6 months ago (2017-06-02 21:40:24 UTC) #11
amp
PTAL. Everything should be synced up and and tests passing now (haven't verified the hover ...
3 years, 6 months ago (2017-06-02 23:49:38 UTC) #13
cjgrant
lgtm with a few comments. Thanks for rejigging all this! https://codereview.chromium.org/2914623003/diff/100001/chrome/browser/android/vr_shell/color_scheme.cc File chrome/browser/android/vr_shell/color_scheme.cc (right): https://codereview.chromium.org/2914623003/diff/100001/chrome/browser/android/vr_shell/color_scheme.cc#newcode67 ...
3 years, 6 months ago (2017-06-05 17:57:09 UTC) #14
amp
PTAL. Reorganized the scheme a bit and had to change some of the OnModeSet wiring ...
3 years, 6 months ago (2017-06-05 21:40:58 UTC) #18
cjgrant
lgtm
3 years, 6 months ago (2017-06-06 20:44:01 UTC) #27
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/2914623003/160001
3 years, 6 months ago (2017-06-06 20:48:18 UTC) #30
commit-bot: I haz the power
3 years, 6 months ago (2017-06-06 21:33:23 UTC) #33
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/f9189aa4473f6915826d070f6e3f...

Powered by Google App Engine
This is Rietveld 408576698