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

Issue 2960903002: VR: Use ToolbarModel to drive VR URL bar state. (Closed)

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

Description

VR: Use ToolbarModel to drive VR URL bar state. This brings VR more in line with how desktop's omnibox works, and reduces the potential for VR to exhibit inconsistencies. Note that ToolbarModel supplies state, but not an indication of when that state changes. For this reason, we'll still use a WebContentsObserver to trigger updates. BUG=736756 Review-Url: https://codereview.chromium.org/2960903002 Cr-Commit-Position: refs/heads/master@{#483383} Committed: https://chromium.googlesource.com/chromium/src/+/ad4f36ac5736301cbb7c9c47e8810039f6e256e9

Patch Set 1 #

Total comments: 16

Patch Set 2 : Address Michael's comments. #

Patch Set 3 : Rebase to ToT. #

Patch Set 4 : Add a bit of documentation. #

Patch Set 5 : Update toolbar build file to include vector icons for Android. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+262 lines, -170 lines) Patch
M chrome/browser/android/vr_shell/BUILD.gn View 1 2 3 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/android/vr_shell/textures/url_bar_texture.h View 3 chunks +4 lines, -6 lines 0 comments Download
M chrome/browser/android/vr_shell/textures/url_bar_texture.cc View 1 10 chunks +26 lines, -75 lines 0 comments Download
M chrome/browser/android/vr_shell/textures/url_bar_texture_unittest.cc View 1 3 chunks +13 lines, -1 line 0 comments Download
A chrome/browser/android/vr_shell/toolbar_helper.h View 1 1 chunk +36 lines, -0 lines 0 comments Download
A chrome/browser/android/vr_shell/toolbar_helper.cc View 1 2 3 1 chunk +41 lines, -0 lines 0 comments Download
A chrome/browser/android/vr_shell/toolbar_state.h View 1 1 chunk +39 lines, -0 lines 0 comments Download
A chrome/browser/android/vr_shell/toolbar_state.cc View 1 1 chunk +37 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_elements/transient_url_bar.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_elements/transient_url_bar.cc View 1 chunk +2 lines, -9 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_elements/url_bar.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_elements/url_bar.cc View 2 chunks +2 lines, -7 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_interface.h View 1 2 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_scene_manager.h View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_scene_manager.cc View 1 2 1 chunk +3 lines, -9 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_gl_thread.h View 1 2 2 chunks +1 line, -5 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_gl_thread.cc View 1 2 2 chunks +5 lines, -11 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell.h View 1 2 5 chunks +10 lines, -2 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell.cc View 1 2 5 chunks +10 lines, -5 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_web_contents_observer.h View 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_web_contents_observer.cc View 3 chunks +10 lines, -23 lines 0 comments Download
M components/toolbar/BUILD.gn View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M components/toolbar/toolbar_model_impl.cc View 2 chunks +2 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 26 (15 generated)
cjgrant
Michael, PTAL when you can. This fixes bugs. :)
3 years, 5 months ago (2017-06-27 21:52:46 UTC) #2
mthiesse
https://codereview.chromium.org/2960903002/diff/1/chrome/browser/android/vr_shell/textures/url_bar_texture.cc File chrome/browser/android/vr_shell/textures/url_bar_texture.cc (right): https://codereview.chromium.org/2960903002/diff/1/chrome/browser/android/vr_shell/textures/url_bar_texture.cc#newcode228 chrome/browser/android/vr_shell/textures/url_bar_texture.cc:228: const gfx::VectorIcon& icon = *(state_.vector_icon); nit: unnecessary parens https://codereview.chromium.org/2960903002/diff/1/chrome/browser/android/vr_shell/textures/url_bar_texture_unittest.cc ...
3 years, 5 months ago (2017-06-28 00:27:09 UTC) #3
cjgrant
https://codereview.chromium.org/2960903002/diff/1/chrome/browser/android/vr_shell/textures/url_bar_texture.cc File chrome/browser/android/vr_shell/textures/url_bar_texture.cc (right): https://codereview.chromium.org/2960903002/diff/1/chrome/browser/android/vr_shell/textures/url_bar_texture.cc#newcode228 chrome/browser/android/vr_shell/textures/url_bar_texture.cc:228: const gfx::VectorIcon& icon = *(state_.vector_icon); On 2017/06/28 00:27:08, mthiesse ...
3 years, 5 months ago (2017-06-28 15:14:34 UTC) #4
mthiesse
lgtm % comment https://codereview.chromium.org/2960903002/diff/1/chrome/browser/android/vr_shell/toolbar_helper.cc File chrome/browser/android/vr_shell/toolbar_helper.cc (right): https://codereview.chromium.org/2960903002/diff/1/chrome/browser/android/vr_shell/toolbar_helper.cc#newcode15 chrome/browser/android/vr_shell/toolbar_helper.cc:15: constexpr int kMaxURLDisplayChars = 1024; On ...
3 years, 5 months ago (2017-06-28 15:46:41 UTC) #5
cjgrant
https://codereview.chromium.org/2960903002/diff/1/chrome/browser/android/vr_shell/toolbar_helper.cc File chrome/browser/android/vr_shell/toolbar_helper.cc (right): https://codereview.chromium.org/2960903002/diff/1/chrome/browser/android/vr_shell/toolbar_helper.cc#newcode15 chrome/browser/android/vr_shell/toolbar_helper.cc:15: constexpr int kMaxURLDisplayChars = 1024; On 2017/06/28 15:46:41, mthiesse ...
3 years, 5 months ago (2017-06-28 19:41:51 UTC) #10
cjgrant
pkasting@chromium.org: Please review changes in components/toolbar Note that the existing Android Omnibox implementation (as far ...
3 years, 5 months ago (2017-06-28 19:46:34 UTC) #14
mthiesse
https://codereview.chromium.org/2960903002/diff/1/chrome/browser/android/vr_shell/toolbar_helper.cc File chrome/browser/android/vr_shell/toolbar_helper.cc (right): https://codereview.chromium.org/2960903002/diff/1/chrome/browser/android/vr_shell/toolbar_helper.cc#newcode15 chrome/browser/android/vr_shell/toolbar_helper.cc:15: constexpr int kMaxURLDisplayChars = 1024; On 2017/06/28 19:41:51, cjgrant ...
3 years, 5 months ago (2017-06-28 19:50:13 UTC) #15
Peter Kasting
LGTM
3 years, 5 months ago (2017-06-28 20:06:05 UTC) #16
cjgrant
https://codereview.chromium.org/2960903002/diff/1/chrome/browser/android/vr_shell/toolbar_helper.cc File chrome/browser/android/vr_shell/toolbar_helper.cc (right): https://codereview.chromium.org/2960903002/diff/1/chrome/browser/android/vr_shell/toolbar_helper.cc#newcode15 chrome/browser/android/vr_shell/toolbar_helper.cc:15: constexpr int kMaxURLDisplayChars = 1024; On 2017/06/28 19:50:13, mthiesse ...
3 years, 5 months ago (2017-06-28 20:21:02 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/2960903002/80001
3 years, 5 months ago (2017-06-29 16:15:46 UTC) #23
commit-bot: I haz the power
3 years, 5 months ago (2017-06-29 16:30:49 UTC) #26
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/ad4f36ac5736301cbb7c9c47e881...

Powered by Google App Engine
This is Rietveld 408576698