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

Issue 2485143004: Always consider SystemUI for panning boundaries in split-screen mode (Closed)

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

Description

Always consider SystemUI for panning boundaries in split-screen mode This change allows the user to pan the desktop out from under System UI when in windowed/split-screen mode. In fullscreen mode, we only allow this behavior when the Soft Keyboard is present. For N+, we need to allow the user to pan out from under System UI as it is always present in this mode (unlike fullscreen where the UI will autohide). This CL moves the logic for determining when to allow 'over-panning' to the Desktop activity (from the DesktopCanvas class). The Desktop class is a better place for this logic as it is aware of more state information and should own the end user experience (whereas the DesktopCanvas class should only handle boundary and viewport calculations). I've also updated the offset reduction animation code to allow it to animate to a specific offset (instead of a hard-coded 0, 0). This functionality is used when the size of the System UI is reduced to a non-zero value. An example of this is when the toolbar auto-hides but the status bar is still displayed. In that case we want the desktop image to be animated upwards (reducing the amount of viewport offset) but we don't want to animate to the top of the screen, just to the bottom of the status bar. BUG=662458 Committed: https://crrev.com/20e8fb18e771067d5cbbb1e22d7fc6c19c4b4d3a Cr-Commit-Position: refs/heads/master@{#430755}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Addressing CR Fedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -31 lines) Patch
M remoting/android/java/src/org/chromium/chromoting/Desktop.java View 3 chunks +32 lines, -10 lines 0 comments Download
M remoting/android/java/src/org/chromium/chromoting/DesktopCanvas.java View 1 5 chunks +28 lines, -15 lines 0 comments Download
M remoting/android/java/src/org/chromium/chromoting/SystemUiVisibilityChangedEventParameter.java View 1 chunk +1 line, -6 lines 0 comments Download

Messages

Total messages: 19 (13 generated)
joedow
PTAL!
4 years, 1 month ago (2016-11-08 20:44:44 UTC) #7
Lambros
LGTM when comments are addressed. https://codereview.chromium.org/2485143004/diff/1/remoting/android/java/src/org/chromium/chromoting/DesktopCanvas.java File remoting/android/java/src/org/chromium/chromoting/DesktopCanvas.java (right): https://codereview.chromium.org/2485143004/diff/1/remoting/android/java/src/org/chromium/chromoting/DesktopCanvas.java#newcode132 remoting/android/java/src/org/chromium/chromoting/DesktopCanvas.java:132: if (!targetOffset.equals(mViewportOffset.x, mViewportOffset.y)) { ...
4 years, 1 month ago (2016-11-08 21:55:03 UTC) #8
joedow
https://codereview.chromium.org/2485143004/diff/1/remoting/android/java/src/org/chromium/chromoting/DesktopCanvas.java File remoting/android/java/src/org/chromium/chromoting/DesktopCanvas.java (right): https://codereview.chromium.org/2485143004/diff/1/remoting/android/java/src/org/chromium/chromoting/DesktopCanvas.java#newcode132 remoting/android/java/src/org/chromium/chromoting/DesktopCanvas.java:132: if (!targetOffset.equals(mViewportOffset.x, mViewportOffset.y)) { On 2016/11/08 21:55:03, Lambros wrote: ...
4 years, 1 month ago (2016-11-08 23:04:17 UTC) #11
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/2485143004/20001
4 years, 1 month ago (2016-11-08 23:19:31 UTC) #16
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-08 23:28:48 UTC) #17
commit-bot: I haz the power
4 years, 1 month ago (2016-11-08 23:38:26 UTC) #19
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/20e8fb18e771067d5cbbb1e22d7fc6c19c4b4d3a
Cr-Commit-Position: refs/heads/master@{#430755}

Powered by Google App Engine
This is Rietveld 408576698