Swap to foreground tab when following links that open in a new tab/window in VR Shell.
This implements basic tab switching functionality for VR Shell to switch to the foreground tab.
Currently no UI indicates that this has happened, and no UI has been created to allow for tab switching in any case other than opening links in a new window.
BUG=670452
Review-Url: https://codereview.chromium.org/2657703002
Cr-Commit-Position: refs/heads/master@{#446356}
Committed: https://chromium.googlesource.com/chromium/src/+/027ca1e1259f228e14ad253169ef0263963122fe
PTAL bshe. Adding billorr to review the TODO in VrShell::SwapContents, and whether it's okay to ...
3 years, 11 months ago
(2017-01-24 21:18:44 UTC)
#2
PTAL bshe.
Adding billorr to review the TODO in VrShell::SwapContents, and whether it's
okay to just reset the MetricsHelper there.
bsheedy
On 2017/01/24 21:18:44, mthiesse wrote: > PTAL bshe. > > Adding billorr to review the ...
3 years, 11 months ago
(2017-01-24 21:21:45 UTC)
#3
On 2017/01/24 21:18:44, mthiesse wrote:
> PTAL bshe.
>
> Adding billorr to review the TODO in VrShell::SwapContents, and whether it's
> okay to just reset the MetricsHelper there.
FYI, billorr is OOO until Friday.
3 years, 11 months ago
(2017-01-24 21:22:59 UTC)
#5
+amp to review in bill's place.
amp
On 2017/01/24 21:22:59, mthiesse wrote: > +amp to review in bill's place. I'm not as ...
3 years, 11 months ago
(2017-01-24 21:44:43 UTC)
#6
On 2017/01/24 21:22:59, mthiesse wrote:
> +amp to review in bill's place.
I'm not as familiar with the Metrics helper. By resetting it, does the previous
instance have a chance to write out the metrics it had gathered up to the point
of the swap?
If so I think resetting is fine for each swap. We should do better going
forward, but it doesn't fill critical to make the metrics perfect now.
If it's not then we should do what we can to write those out before resetting.
amp
On 2017/01/24 21:44:43, amp wrote: > On 2017/01/24 21:22:59, mthiesse wrote: > > +amp to ...
3 years, 11 months ago
(2017-01-24 21:51:53 UTC)
#7
On 2017/01/24 21:44:43, amp wrote:
> On 2017/01/24 21:22:59, mthiesse wrote:
> > +amp to review in bill's place.
>
> I'm not as familiar with the Metrics helper. By resetting it, does the
previous
> instance have a chance to write out the metrics it had gathered up to the
point
> of the swap?
>
> If so I think resetting is fine for each swap. We should do better going
> forward, but it doesn't fill critical to make the metrics perfect now.
>
>
> If it's not then we should do what we can to write those out before resetting.
Looking through the code at
https://cs.chromium.org/chromium/src/chrome/browser/android/vr_shell/vr_usage...
it looks like there is a cleanup in the deconstructor of the sesion timer (which
the metric helper creates) so it looks like it would just count a swap as the
end of the session (which I think is a fine definition for now).
If we want to update the concept of a metrics session to include tracking across
tab swaps we will need to update the helper (which the TODO covers).
So looks good for the metrics helper question specifically (I haven't looked at
the rest of the code yet).
mthiesse
On 2017/01/24 21:44:43, amp wrote: > On 2017/01/24 21:22:59, mthiesse wrote: > > +amp to ...
3 years, 11 months ago
(2017-01-24 21:54:55 UTC)
#8
On 2017/01/24 21:44:43, amp wrote:
> On 2017/01/24 21:22:59, mthiesse wrote:
> > +amp to review in bill's place.
>
> I'm not as familiar with the Metrics helper. By resetting it, does the
previous
> instance have a chance to write out the metrics it had gathered up to the
point
> of the swap?
>
> If so I think resetting is fine for each swap. We should do better going
> forward, but it doesn't fill critical to make the metrics perfect now.
>
>
> If it's not then we should do what we can to write those out before resetting.
I think it does what it needs to do in the destructor. The sessions get stopped,
which updates the histograms accordingly.
I've added calls to set VR mode and webVR mode appropriately.
bshe
https://codereview.chromium.org/2657703002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java File chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java (right): https://codereview.chromium.org/2657703002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java#newcode279 chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java:279: if (!canEnterVR(tab)) forceExitVr(); return after forceExitVr? https://codereview.chromium.org/2657703002/diff/60001/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 ...
3 years, 11 months ago
(2017-01-25 22:15:45 UTC)
#9
3 years, 11 months ago
(2017-01-26 16:34:54 UTC)
#14
lgtm
commit-bot: I haz the power
CQ is committing da patch. Bot data: {"patchset_id": 80001, "attempt_start_ts": 1485447437741510, "parent_rev": "eae6137965dceb05f01056f60f9ae6c95cd3cd12", "commit_rev": "027ca1e1259f228e14ad253169ef0263963122fe"}
3 years, 11 months ago
(2017-01-26 16:54:10 UTC)
#15
CQ is committing da patch.
Bot data: {"patchset_id": 80001, "attempt_start_ts": 1485447437741510,
"parent_rev": "eae6137965dceb05f01056f60f9ae6c95cd3cd12", "commit_rev":
"027ca1e1259f228e14ad253169ef0263963122fe"}
commit-bot: I haz the power
Description was changed from ========== Swap to foreground tab when following links that open in ...
3 years, 11 months ago
(2017-01-26 16:54:40 UTC)
#16
Message was sent while issue was closed.
Description was changed from
==========
Swap to foreground tab when following links that open in a new tab/window in VR
Shell.
This implements basic tab switching functionality for VR Shell to switch to the
foreground tab.
Currently no UI indicates that this has happened, and no UI has been created to
allow for tab switching in any case other than opening links in a new window.
BUG=670452
==========
to
==========
Swap to foreground tab when following links that open in a new tab/window in VR
Shell.
This implements basic tab switching functionality for VR Shell to switch to the
foreground tab.
Currently no UI indicates that this has happened, and no UI has been created to
allow for tab switching in any case other than opening links in a new window.
BUG=670452
Review-Url: https://codereview.chromium.org/2657703002
Cr-Commit-Position: refs/heads/master@{#446356}
Committed:
https://chromium.googlesource.com/chromium/src/+/027ca1e1259f228e14ad253169ef...
==========
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/chromium/src/+/027ca1e1259f228e14ad253169ef0263963122fe
3 years, 11 months ago
(2017-01-26 16:54:41 UTC)
#17
Issue 2657703002: Swap to foreground tab when following links that open in a new tab/window in VR Shell.
(Closed)
Created 3 years, 11 months ago by mthiesse
Modified 3 years, 11 months ago
Reviewers: bshe, amp
Base URL:
Comments: 6