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

Issue 2375113003: Allow Desktop Canvas to be scrolled out from under System UI. (Closed)

Created:
4 years, 2 months ago by joedow
Modified:
4 years, 2 months 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

Allow Desktop Canvas to be scrolled out from under System UI. This change adds the ability to scroll the desktop canvas out from under any visible System UI. When System UI is displayed (for Kitkat and higher) the TouchInputHandler instance is called with the state/sizes of the System UI per edge of the screen. These values are passed to the DesktopCanvas instance which uses them for determining whether the System UI overlaps with the remote image content. If there is overlap then it adjusts the region of valid cursor and viewport positions which then allows the user to pan the content out from 'under' the System UI which is obscuring it.allowable position of the viewport. When the System UI disappears (or changes size), the current amount of padding, if any, is used as the new boundary. This prevents a jarring translation from occuring when the System UI changes size. BUG=621633 Committed: https://crrev.com/b2fd3d47699032e7d52a4ac2317135e444bbea6f Cr-Commit-Position: refs/heads/master@{#423004}

Patch Set 1 #

Patch Set 2 : Pre-CR tweaks #

Total comments: 16

Patch Set 3 : Adding comment block and addressing feedback #

Total comments: 12

Patch Set 4 : Cleaning up some of the previous code. #

Total comments: 10

Patch Set 5 : Addressing CR feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+122 lines, -31 lines) Patch
M remoting/android/java/src/org/chromium/chromoting/DesktopCanvas.java View 1 2 3 4 5 chunks +122 lines, -31 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 33 (21 generated)
joedow
PTAL!
4 years, 2 months ago (2016-09-28 21:10:47 UTC) #10
joedow
Ping!
4 years, 2 months ago (2016-09-29 20:15:08 UTC) #11
Lambros
I think we need better documentation to help the reader understand the concepts. I'm having ...
4 years, 2 months ago (2016-09-30 01:59:37 UTC) #12
joedow
Added a chunk of text explaining each of the concepts and expected behaviors. Also addressed ...
4 years, 2 months ago (2016-09-30 19:42:57 UTC) #17
joedow
Ping!
4 years, 2 months ago (2016-10-03 17:05:45 UTC) #18
Lambros
https://codereview.chromium.org/2375113003/diff/40001/remoting/android/java/src/org/chromium/chromoting/DesktopCanvas.java File remoting/android/java/src/org/chromium/chromoting/DesktopCanvas.java (right): https://codereview.chromium.org/2375113003/diff/40001/remoting/android/java/src/org/chromium/chromoting/DesktopCanvas.java#newcode71 remoting/android/java/src/org/chromium/chromoting/DesktopCanvas.java:71: * zoom out once the second image dimension matches ...
4 years, 2 months ago (2016-10-03 23:04:10 UTC) #19
joedow
I've simplified the padding calculations quite a bit as I realized that a bunch of ...
4 years, 2 months ago (2016-10-04 20:47:47 UTC) #23
Lambros
This is much easier to follow, thanks for simplifying! I would still prefer to use ...
4 years, 2 months ago (2016-10-04 22:06:35 UTC) #26
joedow
Thanks for the suggestions and review! https://codereview.chromium.org/2375113003/diff/60001/remoting/android/java/src/org/chromium/chromoting/DesktopCanvas.java File remoting/android/java/src/org/chromium/chromoting/DesktopCanvas.java (right): https://codereview.chromium.org/2375113003/diff/60001/remoting/android/java/src/org/chromium/chromoting/DesktopCanvas.java#newcode34 remoting/android/java/src/org/chromium/chromoting/DesktopCanvas.java:34: private PointF mViewportPosition ...
4 years, 2 months ago (2016-10-04 23:32:11 UTC) #27
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/2375113003/80001
4 years, 2 months ago (2016-10-04 23:32:45 UTC) #30
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 2 months ago (2016-10-04 23:45:41 UTC) #31
commit-bot: I haz the power
4 years, 2 months ago (2016-10-04 23:50:35 UTC) #33
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/b2fd3d47699032e7d52a4ac2317135e444bbea6f
Cr-Commit-Position: refs/heads/master@{#423004}

Powered by Google App Engine
This is Rietveld 408576698