CC:
chromium-reviews, yusukes+watch_chromium.org, shuchen+watch_chromium.org, jam, nona+watch_chromium.org, feature-vr-reviews_chromium.org, darin-cc_chromium.org, James Su
VR: Disable Overscroll Glow in VrShell
Disable the overscroll glow in VrShell. The overscroll controller is still working,
but the animation is disabled when the user is in VR.
BUG=660051
Committed: https://crrev.com/54ea8b659913ce3528c53c6bd675c332d8189796
Cr-Commit-Position: refs/heads/master@{#437282}
Description was changed from
==========
VR: Disable Overscroll Glow in VrShell
Disable the overscroll glow in VrShell. The overscroll controller is still
working,
but the animation is disabled when the user is in VR.
BUG=660051
==========
to
==========
VR: Disable Overscroll Glow in VrShell
Disable the overscroll glow in VrShell. The overscroll controller is still
working,
but the animation is disabled when the user is in VR.
BUG=660051
==========
https://codereview.chromium.org/2524423002/diff/20001/chrome/browser/android/vr_shell/vr_shell.cc File chrome/browser/android/vr_shell/vr_shell.cc (right): https://codereview.chromium.org/2524423002/diff/20001/chrome/browser/android/vr_shell/vr_shell.cc#newcode239 chrome/browser/android/vr_shell/vr_shell.cc:239: SetShowingOverscrollGlow(false); I am assuming this is the place that ...
https://codereview.chromium.org/2524423002/diff/20001/chrome/browser/android/...
File chrome/browser/android/vr_shell/vr_shell.cc (right):
https://codereview.chromium.org/2524423002/diff/20001/chrome/browser/android/...
chrome/browser/android/vr_shell/vr_shell.cc:239:
SetShowingOverscrollGlow(false);
On 2016/12/01 20:17:45, asimjour1 wrote:
> On 2016/11/25 14:55:00, bshe wrote:
> > I am assuming this is the place that calling SetShowingOverscrollGlow on
> render
> > thread? Is it possible to move it to ctor of VrShell. IIUC, VrShell is
created
> > on UI thread. This way, you don't need the thread check in the function
> > implementation?
>
> ctor of VrShell is called on UI thread, but RenderViewHost is not ready at
that
> time.
Is it possible to call it once RVH is ready on UI thread?
Would be nice to do everything on a single thread.
mthiesse
https://codereview.chromium.org/2524423002/diff/20001/chrome/browser/android/vr_shell/vr_shell.cc File chrome/browser/android/vr_shell/vr_shell.cc (right): https://codereview.chromium.org/2524423002/diff/20001/chrome/browser/android/vr_shell/vr_shell.cc#newcode239 chrome/browser/android/vr_shell/vr_shell.cc:239: SetShowingOverscrollGlow(false); On 2016/12/01 20:43:41, bshe wrote: > On 2016/12/01 ...
https://codereview.chromium.org/2524423002/diff/20001/chrome/browser/android/...
File chrome/browser/android/vr_shell/vr_shell.cc (right):
https://codereview.chromium.org/2524423002/diff/20001/chrome/browser/android/...
chrome/browser/android/vr_shell/vr_shell.cc:239:
SetShowingOverscrollGlow(false);
On 2016/12/01 20:43:41, bshe wrote:
> On 2016/12/01 20:17:45, asimjour1 wrote:
> > On 2016/11/25 14:55:00, bshe wrote:
> > > I am assuming this is the place that calling SetShowingOverscrollGlow on
> > render
> > > thread? Is it possible to move it to ctor of VrShell. IIUC, VrShell is
> created
> > > on UI thread. This way, you don't need the thread check in the function
> > > implementation?
> >
> > ctor of VrShell is called on UI thread, but RenderViewHost is not ready at
> that
> > time.
>
> Is it possible to call it once RVH is ready on UI thread?
> Would be nice to do everything on a single thread.
Yes, please add RenderViewHostChanged to vr_web_contents_observer, and call
SetShowingOverscrollGlow from there.
asimjour1
https://codereview.chromium.org/2524423002/diff/20001/chrome/browser/android/vr_shell/vr_shell.cc File chrome/browser/android/vr_shell/vr_shell.cc (right): https://codereview.chromium.org/2524423002/diff/20001/chrome/browser/android/vr_shell/vr_shell.cc#newcode239 chrome/browser/android/vr_shell/vr_shell.cc:239: SetShowingOverscrollGlow(false); On 2016/12/01 22:15:39, mthiesse wrote: > On 2016/12/01 ...
https://codereview.chromium.org/2524423002/diff/20001/chrome/browser/android/...
File chrome/browser/android/vr_shell/vr_shell.cc (right):
https://codereview.chromium.org/2524423002/diff/20001/chrome/browser/android/...
chrome/browser/android/vr_shell/vr_shell.cc:239:
SetShowingOverscrollGlow(false);
On 2016/12/01 22:15:39, mthiesse wrote:
> On 2016/12/01 20:43:41, bshe wrote:
> > On 2016/12/01 20:17:45, asimjour1 wrote:
> > > On 2016/11/25 14:55:00, bshe wrote:
> > > > I am assuming this is the place that calling SetShowingOverscrollGlow on
> > > render
> > > > thread? Is it possible to move it to ctor of VrShell. IIUC, VrShell is
> > created
> > > > on UI thread. This way, you don't need the thread check in the function
> > > > implementation?
> > >
> > > ctor of VrShell is called on UI thread, but RenderViewHost is not ready at
> > that
> > > time.
> >
> > Is it possible to call it once RVH is ready on UI thread?
> > Would be nice to do everything on a single thread.
>
> Yes, please add RenderViewHostChanged to vr_web_contents_observer, and call
> SetShowingOverscrollGlow from there.
Done.
https://codereview.chromium.org/2524423002/diff/20001/chrome/browser/android/...
chrome/browser/android/vr_shell/vr_shell.cc:239:
SetShowingOverscrollGlow(false);
On 2016/12/01 20:43:41, bshe wrote:
> On 2016/12/01 20:17:45, asimjour1 wrote:
> > On 2016/11/25 14:55:00, bshe wrote:
> > > I am assuming this is the place that calling SetShowingOverscrollGlow on
> > render
> > > thread? Is it possible to move it to ctor of VrShell. IIUC, VrShell is
> created
> > > on UI thread. This way, you don't need the thread check in the function
> > > implementation?
> >
> > ctor of VrShell is called on UI thread, but RenderViewHost is not ready at
> that
> > time.
>
> Is it possible to call it once RVH is ready on UI thread?
> Would be nice to do everything on a single thread.
Done.
lgtm https://codereview.chromium.org/2524423002/diff/60001/chrome/browser/android/vr_shell/vr_web_contents_observer.cc File chrome/browser/android/vr_shell/vr_web_contents_observer.cc (right): https://codereview.chromium.org/2524423002/diff/60001/chrome/browser/android/vr_shell/vr_web_contents_observer.cc#newcode68 chrome/browser/android/vr_shell/vr_web_contents_observer.cc:68: new_host->GetWidget()->GetView()->SetShowingOverscrollGlow(false); Should we check for NULL first? Or ...
lgtm with one nit https://codereview.chromium.org/2524423002/diff/60001/chrome/browser/android/vr_shell/vr_shell.cc File chrome/browser/android/vr_shell/vr_shell.cc (right): https://codereview.chromium.org/2524423002/diff/60001/chrome/browser/android/vr_shell/vr_shell.cc#newcode19 chrome/browser/android/vr_shell/vr_shell.cc:19: #include "content/public/browser/browser_thread.h" nit: this include ...
content/ LGTM.
https://codereview.chromium.org/2524423002/diff/80001/chrome/browser/android/...
File chrome/browser/android/vr_shell/vr_web_contents_observer.cc (right):
https://codereview.chromium.org/2524423002/diff/80001/chrome/browser/android/...
chrome/browser/android/vr_shell/vr_web_contents_observer.cc:65: void
VrWebContentsObserver::RenderViewHostChanged(
Note that RenderViewHost is on its way out, in favor of RenderFrameHost. I
think the version you have should be fine functionally, assuming overscroll only
happens for main frame navigations. (It's probably also safe to use
RenderFrameHostChanged and check if it's the main frame, but we can do that
later.)
asimjour1
https://codereview.chromium.org/2524423002/diff/80001/chrome/browser/android/vr_shell/vr_web_contents_observer.cc File chrome/browser/android/vr_shell/vr_web_contents_observer.cc (right): https://codereview.chromium.org/2524423002/diff/80001/chrome/browser/android/vr_shell/vr_web_contents_observer.cc#newcode65 chrome/browser/android/vr_shell/vr_web_contents_observer.cc:65: void VrWebContentsObserver::RenderViewHostChanged( On 2016/12/06 22:51:42, Charlie Reis (OOO) wrote: ...
https://codereview.chromium.org/2524423002/diff/80001/chrome/browser/android/...
File chrome/browser/android/vr_shell/vr_web_contents_observer.cc (right):
https://codereview.chromium.org/2524423002/diff/80001/chrome/browser/android/...
chrome/browser/android/vr_shell/vr_web_contents_observer.cc:65: void
VrWebContentsObserver::RenderViewHostChanged(
On 2016/12/06 22:51:42, Charlie Reis (OOO) wrote:
> Note that RenderViewHost is on its way out, in favor of RenderFrameHost. I
> think the version you have should be fine functionally, assuming overscroll
only
> happens for main frame navigations. (It's probably also safe to use
> RenderFrameHostChanged and check if it's the main frame, but we can do that
> later.)
Overscroll only happens for the main frame navigation. I'll use
RenderFrameHostChanged in another patch. Thank you
https://codereview.chromium.org/2524423002/diff/80001/content/public/browser/...
File content/public/browser/render_widget_host_view.h (right):
https://codereview.chromium.org/2524423002/diff/80001/content/public/browser/...
content/public/browser/render_widget_host_view.h:68: virtual void
SetShowingOverscrollGlow(bool showing) = 0;
On 2016/12/06 20:29:23, sadrul wrote:
> Note that there's a WebContentsDelegate::CanOverscrollContent(). It may be
> possible to re-use that for this too?
We can't disable the glow using WebContentsDelegate::CanOverscrollContent().
Description was changed from
==========
VR: Disable Overscroll Glow in VrShell
Disable the overscroll glow in VrShell. The overscroll controller is still
working,
but the animation is disabled when the user is in VR.
BUG=660051
==========
to
==========
VR: Disable Overscroll Glow in VrShell
Disable the overscroll glow in VrShell. The overscroll controller is still
working,
but the animation is disabled when the user is in VR.
BUG=660051
==========
Description was changed from
==========
VR: Disable Overscroll Glow in VrShell
Disable the overscroll glow in VrShell. The overscroll controller is still
working,
but the animation is disabled when the user is in VR.
BUG=660051
==========
to
==========
VR: Disable Overscroll Glow in VrShell
Disable the overscroll glow in VrShell. The overscroll controller is still
working,
but the animation is disabled when the user is in VR.
BUG=660051
Committed: https://crrev.com/54ea8b659913ce3528c53c6bd675c332d8189796
Cr-Commit-Position: refs/heads/master@{#437282}
==========
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/54ea8b659913ce3528c53c6bd675c332d8189796 Cr-Commit-Position: refs/heads/master@{#437282}
Quick question for a refactor I'm working on
(https://codereview.chromium.org/2528823002/): is it intentional that you reset
is_showing_overscroll_glow_ to true when SetContentViewCore() is called but not
when OnAttachCompositor() is called? Both of these methods can potentially call
CreateOverscrollController().
boliu
On 2016/12/08 19:06:24, rlanday wrote: > Quick question for a refactor I'm working on > ...
On 2016/12/08 19:06:24, rlanday wrote:
> Quick question for a refactor I'm working on
> (https://codereview.chromium.org/2528823002/): is it intentional that you
reset
> is_showing_overscroll_glow_ to true when SetContentViewCore() is called but
not
> when OnAttachCompositor() is called? Both of these methods can potentially
call
> CreateOverscrollController().
Also.. does RenderViewHostChanged cover interstitials? I think the setting
should be on webcontents instead.
Issue 2524423002: VR: Disable Overscroll Glow in VrShell
(Closed)
Created 4 years ago by asimjour1
Modified 4 years ago
Reviewers: bshe, mthiesse, sadrul, Charlie Reis
Base URL:
Comments: 18