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

Issue 2475373002: Updating Toolbar Autohide behavior to account for multi-window mode. (Closed)

Created:
4 years, 1 month ago by joedow
Modified:
4 years, 1 month ago
Reviewers:
Lambros
CC:
chromium-reviews, agrieve+watch_chromium.org, chromoting-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Updating Toolbar Autohide behavior to account for multi-window mode. This change updates the Desktop activity to be Multi-Window aware and to disable the Autohide Toolbar behavior when in that mode. When an activity is in Multi-window mode, the System UI is always present (and cannot be dismissed). If an activity tries to dismiss the System UI, no effect will take place. Thus we should not even set up the autohide timer in this scenario. With respect to multi-window mode, there is a method that can be called to ascertain which mode the activity is in, however one catch is that you cannot call it from OnCreate due to a race condition (OnResume is ok). Thus I have set up a helper function with a precondition (called after OnResume()) which will return whether it is in Multi-window mode. One last change is to leave the video stream running if the activity is paused in Multi-window mode. When two activities are in split-screen mode, the currently selected activity is in the running state and the other is in a paused state. I think we should continune updating the video surface if we are in split screen and paused as the user may be waiting for an action to occur before switching back to our activity. Thus I have updated the logic to only disable the video stream on pause if the activity is not in Multi-window mode (it will still be stopped when the activity is stopped). BUG=631266 Committed: https://crrev.com/847adc99338f55ab58704c17dbc2c9e2c54b8fcc Cr-Commit-Position: refs/heads/master@{#429953}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -35 lines) Patch
M remoting/android/java/src/org/chromium/chromoting/Desktop.java View 5 chunks +65 lines, -35 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 12 (7 generated)
joedow
PTAL!
4 years, 1 month ago (2016-11-04 17:22:57 UTC) #4
Lambros
lgtm
4 years, 1 month ago (2016-11-04 18:03:45 UTC) #7
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/2475373002/1
4 years, 1 month ago (2016-11-04 18:08:51 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 1 month ago (2016-11-04 18:15:27 UTC) #10
commit-bot: I haz the power
4 years, 1 month ago (2016-11-04 18:18:54 UTC) #12
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/847adc99338f55ab58704c17dbc2c9e2c54b8fcc
Cr-Commit-Position: refs/heads/master@{#429953}

Powered by Google App Engine
This is Rietveld 408576698