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

Issue 2955023002: VR: Factor transient timing out of UiSceneManager. (Closed)

Created:
3 years, 5 months ago by cjgrant
Modified:
3 years, 5 months ago
Reviewers:
ymalik, bshe
CC:
chromium-reviews, feature-vr-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

VR: Factor transient timing out of UiSceneManager. - Add a class to manage transience. It can later be extended to handle more interesting transience, like URL bars, which appear when loading. - Move presentation toast to use this new manager. BUG=735163 Review-Url: https://codereview.chromium.org/2955023002 Cr-Commit-Position: refs/heads/master@{#483515} Committed: https://chromium.googlesource.com/chromium/src/+/27ed3b381ba509ef709ebc97860d006611bab291

Patch Set 1 #

Total comments: 2

Patch Set 2 : Get rid of EndVisibility(). #

Total comments: 23

Patch Set 3 : Cleanup and address Biao's comments. #

Patch Set 4 : Rebase. #

Patch Set 5 : Rebase again onto ExclusivePresentationToast class/file rename. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+254 lines, -101 lines) Patch
M chrome/browser/android/vr_shell/BUILD.gn View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_elements/exclusive_screen_toast.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_elements/exclusive_screen_toast.cc View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_elements/simple_textured_element.h View 1 2 3 4 2 chunks +21 lines, -1 line 0 comments Download
A chrome/browser/android/vr_shell/ui_elements/transience_manager.h View 1 2 1 chunk +37 lines, -0 lines 0 comments Download
A chrome/browser/android/vr_shell/ui_elements/transience_manager.cc View 1 2 1 chunk +52 lines, -0 lines 0 comments Download
A chrome/browser/android/vr_shell/ui_elements/transience_manager_unittest.cc View 1 2 1 chunk +59 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_elements/transient_url_bar.h View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_elements/transient_url_bar.cc View 1 2 3 4 2 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/android/vr_shell/ui_scene_manager.h View 1 2 3 4 8 chunks +5 lines, -18 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_scene_manager.cc View 1 2 3 4 12 chunks +33 lines, -74 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc View 1 2 3 4 chunks +27 lines, -3 lines 0 comments Download

Messages

Total messages: 16 (6 generated)
cjgrant
Biao, here's an actual finished version of what I described on the whiteboard. If you ...
3 years, 5 months ago (2017-06-26 20:34:19 UTC) #2
cjgrant
https://codereview.chromium.org/2955023002/diff/1/chrome/browser/android/vr_shell/ui_scene_manager.cc File chrome/browser/android/vr_shell/ui_scene_manager.cc (right): https://codereview.chromium.org/2955023002/diff/1/chrome/browser/android/vr_shell/ui_scene_manager.cc#newcode443 chrome/browser/android/vr_shell/ui_scene_manager.cc:443: presentation_toast_->transience()->EndVisibility(); Biao, please note the logic here. Basically, when ...
3 years, 5 months ago (2017-06-26 20:39:35 UTC) #3
bshe
https://codereview.chromium.org/2955023002/diff/1/chrome/browser/android/vr_shell/ui_scene_manager.cc File chrome/browser/android/vr_shell/ui_scene_manager.cc (right): https://codereview.chromium.org/2955023002/diff/1/chrome/browser/android/vr_shell/ui_scene_manager.cc#newcode443 chrome/browser/android/vr_shell/ui_scene_manager.cc:443: presentation_toast_->transience()->EndVisibility(); On 2017/06/26 20:39:35, cjgrant wrote: > Biao, please ...
3 years, 5 months ago (2017-06-27 14:57:10 UTC) #4
cjgrant
https://codereview.chromium.org/2955023002/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/2955023002/diff/20001/chrome/browser/android/vr_shell/ui_scene_manager.cc#newcode634 chrome/browser/android/vr_shell/ui_scene_manager.cc:634: // TODO: Also do this one! On 2017/06/27 14:57:09, ...
3 years, 5 months ago (2017-06-27 15:15:55 UTC) #5
cjgrant
https://codereview.chromium.org/2955023002/diff/20001/chrome/browser/android/vr_shell/ui_elements/presentation_toast.cc File chrome/browser/android/vr_shell/ui_elements/presentation_toast.cc (right): https://codereview.chromium.org/2955023002/diff/20001/chrome/browser/android/vr_shell/ui_elements/presentation_toast.cc#newcode16 chrome/browser/android/vr_shell/ui_elements/presentation_toast.cc:16: transience_(this, base::TimeDelta::FromSeconds(10)) {} On 2017/06/27 14:57:09, bshe wrote: > ...
3 years, 5 months ago (2017-06-28 19:00:55 UTC) #6
bshe
On 2017/06/28 19:00:55, cjgrant wrote: > https://codereview.chromium.org/2955023002/diff/20001/chrome/browser/android/vr_shell/ui_elements/presentation_toast.cc > File chrome/browser/android/vr_shell/ui_elements/presentation_toast.cc (right): > > https://codereview.chromium.org/2955023002/diff/20001/chrome/browser/android/vr_shell/ui_elements/presentation_toast.cc#newcode16 > ...
3 years, 5 months ago (2017-06-28 19:41:27 UTC) #7
cjgrant
Biao, PTAL after the rebase onto your "exclusive" file/class rename. Yash, please check the impact ...
3 years, 5 months ago (2017-06-29 18:51:55 UTC) #9
ymalik
auto-presentation changes lgtm
3 years, 5 months ago (2017-06-29 19:13:32 UTC) #10
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/2955023002/80001
3 years, 5 months ago (2017-06-29 20:54:28 UTC) #13
commit-bot: I haz the power
3 years, 5 months ago (2017-06-29 22:24:25 UTC) #16
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/27ed3b381ba509ef709ebc97860d...

Powered by Google App Engine
This is Rietveld 408576698