New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 654565 link

Starred by 2 users

Issue metadata

Status: Verified
Owner:
Last visit > 30 days ago
Closed: Oct 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 1
Type: Bug



Sign in to add a comment

[Android][Client] Only allow over-panning when Soft Keyboard is present

Project Member Reported by joedow@chromium.org, Oct 10 2016

Issue description

Recently I made a change to allow the user to pan the desktop image out from under System UI whenever it is preset.  After discussing this behavior with other folks on the team, I think it makes more sense to only allow this behavior when the user needs the ability to do so (such as when they are entering input via a Soft Input Method).

 

Comment 1 by joedow@chromium.org, Oct 10 2016

Status: Started (was: Assigned)

Comment 2 by yuweih@chromium.org, Oct 10 2016

I think this is a good fix for now. In the long term I think it's okay to allow over-panning in this case if we use animation to remove the padding when the toolbar goes away. In the long term I think the approach that minimizes branching of logic is more maintainable...

Comment 3 by joedow@chromium.org, Oct 10 2016

I'd prefer to keep this behavior long-term as well, unless we can think of a compelling user scenario which requires it.  If there is such a scenario (not counting N behaviors) then we can use the same re-centering mechanism used in the Soft Input Method scenario.
Project Member

Comment 4 by bugdroid1@chromium.org, Oct 10 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/77a6c664de52f6a28910ab585a347ed0f4c2d899

commit 77a6c664de52f6a28910ab585a347ed0f4c2d899
Author: joedow <joedow@chromium.org>
Date: Mon Oct 10 23:32:33 2016

Moving logic for System UI state changes into DesktopCanvas class

Most of the logic for reacting to System UI changes was already in the
DesktopCanvaqs class however there was one boolean check outside of
that.  Instead of adding yet another parameter to the DesktopCanvas
handler method, I now pass the event parameters themselves.  This will
allow future changes to the logic to be made solely in the DesktopCanvas
class.

BUG= 654565 

Review-Url: https://codereview.chromium.org/2410613003
Cr-Commit-Position: refs/heads/master@{#424284}

[modify] https://crrev.com/77a6c664de52f6a28910ab585a347ed0f4c2d899/remoting/android/java/src/org/chromium/chromoting/DesktopCanvas.java
[modify] https://crrev.com/77a6c664de52f6a28910ab585a347ed0f4c2d899/remoting/android/java/src/org/chromium/chromoting/TouchInputHandler.java

Project Member

Comment 5 by bugdroid1@chromium.org, Oct 11 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/99f909132e4756059b6414b723beadd72453a71c

commit 99f909132e4756059b6414b723beadd72453a71c
Author: joedow <joedow@chromium.org>
Date: Tue Oct 11 19:11:36 2016

Update DesktopCanvas to allow over-panning when Soft Input Method is present.

My previous change allowed the user to 'over-pan' the desktop image such
that it can be pulled out from under any System UI present.  After using
the feature a bit and tqalking with other folks on the team, I think
this behavior should be restricted to only be allowed when a Soft Input
Method is present.

BUG= 654565 

Review-Url: https://codereview.chromium.org/2411503002
Cr-Commit-Position: refs/heads/master@{#424506}

[modify] https://crrev.com/99f909132e4756059b6414b723beadd72453a71c/remoting/android/java/src/org/chromium/chromoting/DesktopCanvas.java

Comment 6 by joedow@chromium.org, Oct 11 2016

Labels: Merge-Request-55

Comment 7 by dimu@chromium.org, Oct 11 2016

Labels: -Merge-Request-55 Merge-Approved-55 Hotlist-Merge-Approved
Your change meets the bar and is auto-approved for M55 (branch: 2883)
Project Member

Comment 8 by bugdroid1@chromium.org, Oct 11 2016

Labels: -merge-approved-55 merge-merged-2883
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/48c4493746716ffec1fae380abc80583b6fc2326

commit 48c4493746716ffec1fae380abc80583b6fc2326
Author: Joe Downing <joedow@google.com>
Date: Tue Oct 11 22:23:14 2016

Moving logic for System UI state changes into DesktopCanvas class

Most of the logic for reacting to System UI changes was already in the
DesktopCanvaqs class however there was one boolean check outside of
that.  Instead of adding yet another parameter to the DesktopCanvas
handler method, I now pass the event parameters themselves.  This will
allow future changes to the logic to be made solely in the DesktopCanvas
class.

BUG= 654565 

Review-Url: https://codereview.chromium.org/2410613003
Cr-Commit-Position: refs/heads/master@{#424284}
(cherry picked from commit 77a6c664de52f6a28910ab585a347ed0f4c2d899)

Review URL: https://codereview.chromium.org/2410353002 .

Cr-Commit-Position: refs/branch-heads/2883@{#46}
Cr-Branched-From: 614d31daee2f61b0180df403a8ad43f20b9f6dd7-refs/heads/master@{#423768}

[modify] https://crrev.com/48c4493746716ffec1fae380abc80583b6fc2326/remoting/android/java/src/org/chromium/chromoting/DesktopCanvas.java
[modify] https://crrev.com/48c4493746716ffec1fae380abc80583b6fc2326/remoting/android/java/src/org/chromium/chromoting/TouchInputHandler.java

Project Member

Comment 9 by bugdroid1@chromium.org, Oct 11 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/65c8ec0c0d3d8d3c79096a2bba6ae3b80da2d951

commit 65c8ec0c0d3d8d3c79096a2bba6ae3b80da2d951
Author: Joe Downing <joedow@google.com>
Date: Tue Oct 11 22:44:30 2016

Update DesktopCanvas to allow over-panning when Soft Input Method is present.

My previous change allowed the user to 'over-pan' the desktop image such
that it can be pulled out from under any System UI present.  After using
the feature a bit and tqalking with other folks on the team, I think
this behavior should be restricted to only be allowed when a Soft Input
Method is present.

BUG= 654565 

Review-Url: https://codereview.chromium.org/2411503002
Cr-Commit-Position: refs/heads/master@{#424506}
(cherry picked from commit 99f909132e4756059b6414b723beadd72453a71c)

Review URL: https://codereview.chromium.org/2408343002 .

Cr-Commit-Position: refs/branch-heads/2883@{#47}
Cr-Branched-From: 614d31daee2f61b0180df403a8ad43f20b9f6dd7-refs/heads/master@{#423768}

[modify] https://crrev.com/65c8ec0c0d3d8d3c79096a2bba6ae3b80da2d951/remoting/android/java/src/org/chromium/chromoting/DesktopCanvas.java

Owner: ajnolley@chromium.org
Status: Fixed (was: Started)
When the keyboard is showing and the toolbar has faded out, the margin on the top doesn't go away. Is that a potential bug?
That sounds by design for this change.  The margin shouldn't disappear automatically.
Project Member

Comment 13 by bugdroid1@chromium.org, Oct 27 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/65c8ec0c0d3d8d3c79096a2bba6ae3b80da2d951

commit 65c8ec0c0d3d8d3c79096a2bba6ae3b80da2d951
Author: Joe Downing <joedow@google.com>
Date: Tue Oct 11 22:44:30 2016

Update DesktopCanvas to allow over-panning when Soft Input Method is present.

My previous change allowed the user to 'over-pan' the desktop image such
that it can be pulled out from under any System UI present.  After using
the feature a bit and tqalking with other folks on the team, I think
this behavior should be restricted to only be allowed when a Soft Input
Method is present.

BUG= 654565 

Review-Url: https://codereview.chromium.org/2411503002
Cr-Commit-Position: refs/heads/master@{#424506}
(cherry picked from commit 99f909132e4756059b6414b723beadd72453a71c)

Review URL: https://codereview.chromium.org/2408343002 .

Cr-Commit-Position: refs/branch-heads/2883@{#47}
Cr-Branched-From: 614d31daee2f61b0180df403a8ad43f20b9f6dd7-refs/heads/master@{#423768}

[modify] https://crrev.com/65c8ec0c0d3d8d3c79096a2bba6ae3b80da2d951/remoting/android/java/src/org/chromium/chromoting/DesktopCanvas.java

Project Member

Comment 14 by bugdroid1@chromium.org, Oct 27 2016

Labels: merge-merged-2840
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/48c4493746716ffec1fae380abc80583b6fc2326

commit 48c4493746716ffec1fae380abc80583b6fc2326
Author: Joe Downing <joedow@google.com>
Date: Tue Oct 11 22:23:14 2016

Moving logic for System UI state changes into DesktopCanvas class

Most of the logic for reacting to System UI changes was already in the
DesktopCanvaqs class however there was one boolean check outside of
that.  Instead of adding yet another parameter to the DesktopCanvas
handler method, I now pass the event parameters themselves.  This will
allow future changes to the logic to be made solely in the DesktopCanvas
class.

BUG= 654565 

Review-Url: https://codereview.chromium.org/2410613003
Cr-Commit-Position: refs/heads/master@{#424284}
(cherry picked from commit 77a6c664de52f6a28910ab585a347ed0f4c2d899)

Review URL: https://codereview.chromium.org/2410353002 .

Cr-Commit-Position: refs/branch-heads/2883@{#46}
Cr-Branched-From: 614d31daee2f61b0180df403a8ad43f20b9f6dd7-refs/heads/master@{#423768}

[modify] https://crrev.com/48c4493746716ffec1fae380abc80583b6fc2326/remoting/android/java/src/org/chromium/chromoting/DesktopCanvas.java
[modify] https://crrev.com/48c4493746716ffec1fae380abc80583b6fc2326/remoting/android/java/src/org/chromium/chromoting/TouchInputHandler.java

Status: Verified (was: Fixed)
verified new behavior in 56.0.2908.0

Comment 16 by dimu@google.com, Nov 4 2016

[Automated comment] removing mislabelled merge-merged-2840

Comment 17 by dimu@google.com, Nov 4 2016

Labels: -merge-merged-2840
[Automated comment] removing mislabelled merge-merged-2840

Sign in to add a comment