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

Issue 811999 link

Starred by 4 users

Issue metadata

Status: Fixed
Owner:
Closed: Jul 26
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug



Sign in to add a comment

Do not enter touchview if mouse and keyboard are connected

Project Member Reported by abodenha@chromium.org, Feb 13 2018

Issue description

Google Chrome	64.0.3282.134 (Official Build) beta (64-bit)
Revision	0
Platform	10176.65.0 (Official Build) beta-channel eve

What steps will reproduce the problem?
(1) Have a convertible chromebook
(2) Connect a mouse and keyboard
(3) Flip the device into a tablet or tent shape

What is the expected result?
Touchview mode should NOT trigger

What happens instead?
Touchview triggers

 
Cc: x...@chromium.org
Owner: osh...@chromium.org
+oshima, since we had a few discussions on it.
+xdai, since maybe her team will like to take ownership 
Cc: zork@chromium.org
xdai, does your team have extra cycles to take care of this?

Comment 3 by x...@chromium.org, Feb 26 2018

Cc: -x...@chromium.org osh...@chromium.org
Owner: x...@chromium.org
I'll assign it to myself first. Looks like it doesn't require too much work. so we might be able to target it for 67. Omri, wdyt?

Comment 4 by flackr@chromium.org, Apr 23 2018

Note that we should still have screen rotation support - i.e. the screen should continue to track the device's physical rotation. Currently this screen rotation support is turned on and off by entering / exiting touchview:

https://cs.chromium.org/chromium/src/ash/display/screen_orientation_controller.cc?sq=package:chromium&dr=CSs&l=357

Comment 5 by x...@chromium.org, Apr 23 2018

Cc: x...@chromium.org
Owner: sammiequon@chromium.org
Sammie, do you have time for this issue? Feel free to assign back to me if you have other plans.

Comment 6 by osh...@chromium.org, Apr 23 2018

Please hold #4 as the rotation change has special meaning/behavior in tablet mode. 

Comment 7 by flackr@chromium.org, Apr 24 2018

Could you clarify what you mean by hold #4? IIUC, the specific repro steps "Flip the device into ... tent shape" require that we maintain the 180 degree tent rotation but still remove the touchview maximize mode window manager which makes sense if you want to use an external keyboard / mouse.

Comment 8 by osh...@chromium.org, Apr 24 2018

What I meant is that we should not allow the sensor based rotation in clamshell mode. If you have a keyboard connected, you can just rotate using keyboard.

Comment 9 by flackr@chromium.org, Apr 24 2018

Oh I agree, but that's not what I meant by #4. I meant that if we exit touchview mode in tent orientation because a mouse is attached, we should still maintain the 180 degree rotation.
To be more specific, I think that
- automatic screen rotation should be based on whether we believe the lid is open past ~180 degrees regardless of the presence or lack of external keyboards / mice.
- touchview (maximize window manager) mode should only be enabled if there is no mouse attached.

As I mentioned in #4, these two are currently tied together.
Project Member

Comment 11 by bugdroid1@chromium.org, May 7 2018

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

commit baf66f5ed73b197e44dea0e788a09f203bd20a54
Author: Sammie Quon <sammiequon@google.com>
Date: Mon May 07 19:30:38 2018

cros: Disallow tablet mode when external mouse and keyboard attached.

Tablet mode will exit if both are attached during tablet mode. Bending
the lid in any degree will not trigger tablet mode while the external
devices are connected.

Tablet mode controller still tracks if we should be in tablet mode but
are blocked by the external keyboard and mouse, so that after unplugging
the devices, we will enter tablet mode, if necessary.

If the device was in tablet mode and rotated, plugging the external
devices will revert rotation to none and rely on user to use keyboard
to rotate. This behaviour is being discussed on bug, and will be
addressed in follow up cl.

Test: covered by tests
Bug:  811999 
Change-Id: Ia3932f4850246fca80d39a3c7184eae601c77864
Reviewed-on: https://chromium-review.googlesource.com/1040777
Reviewed-by: kylechar <kylechar@chromium.org>
Reviewed-by: Xiyuan Xia <xiyuan@chromium.org>
Commit-Queue: Sammie Quon <sammiequon@chromium.org>
Cr-Commit-Position: refs/heads/master@{#556528}
[modify] https://crrev.com/baf66f5ed73b197e44dea0e788a09f203bd20a54/ash/wm/tablet_mode/tablet_mode_controller.cc
[modify] https://crrev.com/baf66f5ed73b197e44dea0e788a09f203bd20a54/ash/wm/tablet_mode/tablet_mode_controller.h
[modify] https://crrev.com/baf66f5ed73b197e44dea0e788a09f203bd20a54/ash/wm/tablet_mode/tablet_mode_controller_unittest.cc
[modify] https://crrev.com/baf66f5ed73b197e44dea0e788a09f203bd20a54/services/ui/public/cpp/input_devices/input_device_client_test_api.cc
[modify] https://crrev.com/baf66f5ed73b197e44dea0e788a09f203bd20a54/services/ui/public/cpp/input_devices/input_device_client_test_api.h

Project Member

Comment 12 by bugdroid1@chromium.org, Jun 13 2018

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

commit ac5c6789cec26607f31bb630a99886fd617741ab
Author: Sammie Quon <sammiequon@google.com>
Date: Wed Jun 13 00:18:02 2018

tablet: Do not enter tablet mode if external mouse connected.

Previously required both external mouse and keyboard to suppress tablet
mode. That has changed in doc [1].

[1] https://docs.google.com/document/d/1TIiQ_30SRc0PZrYVWUgRieTrW1m-7tWsKb6XPKq6UPk/edit?ts=5b1f00c4#

Test: manual
Bug:  811999 
Change-Id: I10d076ec08fc16dd370fca81b4846faf302d4950
Reviewed-on: https://chromium-review.googlesource.com/1098033
Commit-Queue: Sammie Quon <sammiequon@chromium.org>
Reviewed-by: Xiyuan Xia <xiyuan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#566641}
[modify] https://crrev.com/ac5c6789cec26607f31bb630a99886fd617741ab/ash/wm/tablet_mode/tablet_mode_controller.cc
[modify] https://crrev.com/ac5c6789cec26607f31bb630a99886fd617741ab/ash/wm/tablet_mode/tablet_mode_controller.h
[modify] https://crrev.com/ac5c6789cec26607f31bb630a99886fd617741ab/ash/wm/tablet_mode/tablet_mode_controller_unittest.cc

Project Member

Comment 13 by bugdroid1@chromium.org, Jun 13 2018

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

commit ac5c6789cec26607f31bb630a99886fd617741ab
Author: Sammie Quon <sammiequon@google.com>
Date: Wed Jun 13 00:18:02 2018

tablet: Do not enter tablet mode if external mouse connected.

Previously required both external mouse and keyboard to suppress tablet
mode. That has changed in doc [1].

[1] https://docs.google.com/document/d/1TIiQ_30SRc0PZrYVWUgRieTrW1m-7tWsKb6XPKq6UPk/edit?ts=5b1f00c4#

Test: manual
Bug:  811999 
Change-Id: I10d076ec08fc16dd370fca81b4846faf302d4950
Reviewed-on: https://chromium-review.googlesource.com/1098033
Commit-Queue: Sammie Quon <sammiequon@chromium.org>
Reviewed-by: Xiyuan Xia <xiyuan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#566641}
[modify] https://crrev.com/ac5c6789cec26607f31bb630a99886fd617741ab/ash/wm/tablet_mode/tablet_mode_controller.cc
[modify] https://crrev.com/ac5c6789cec26607f31bb630a99886fd617741ab/ash/wm/tablet_mode/tablet_mode_controller.h
[modify] https://crrev.com/ac5c6789cec26607f31bb630a99886fd617741ab/ash/wm/tablet_mode/tablet_mode_controller_unittest.cc

Project Member

Comment 14 by bugdroid1@chromium.org, Jun 13 2018

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

commit ac5c6789cec26607f31bb630a99886fd617741ab
Author: Sammie Quon <sammiequon@google.com>
Date: Wed Jun 13 00:18:02 2018

tablet: Do not enter tablet mode if external mouse connected.

Previously required both external mouse and keyboard to suppress tablet
mode. That has changed in doc [1].

[1] https://docs.google.com/document/d/1TIiQ_30SRc0PZrYVWUgRieTrW1m-7tWsKb6XPKq6UPk/edit?ts=5b1f00c4#

Test: manual
Bug:  811999 
Change-Id: I10d076ec08fc16dd370fca81b4846faf302d4950
Reviewed-on: https://chromium-review.googlesource.com/1098033
Commit-Queue: Sammie Quon <sammiequon@chromium.org>
Reviewed-by: Xiyuan Xia <xiyuan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#566641}
[modify] https://crrev.com/ac5c6789cec26607f31bb630a99886fd617741ab/ash/wm/tablet_mode/tablet_mode_controller.cc
[modify] https://crrev.com/ac5c6789cec26607f31bb630a99886fd617741ab/ash/wm/tablet_mode/tablet_mode_controller.h
[modify] https://crrev.com/ac5c6789cec26607f31bb630a99886fd617741ab/ash/wm/tablet_mode/tablet_mode_controller_unittest.cc

Status: Fixed (was: Assigned)
Labels: Merge-Request-68
Status: Started (was: Fixed)
Project Member

Comment 17 by sheriffbot@chromium.org, Jul 25

Labels: -Merge-Request-68 Hotlist-Merge-Review Merge-Review-68
This bug requires manual review: Request affecting a post-stable build
Please contact the milestone owner if you have questions.
Owners: cmasso@(Android), kariahda@(iOS), bhthompson@(ChromeOS), abdulsyed@(Desktop)

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Cc: bhthompson@chromium.org
+bhthompson

This is a pre-requisite merge to https://buganizer.corp.google.com/issues/111137179.
I see, if it takes a bunch of backports we probably don't want to merge it, do you think it is worth the risk here?
There should only be two backports, one is already in 68 and there are 2 copies. I'm indifferent to whether we should merge, the merge was requested by a partner in samsung.
Labels: -Hotlist-Merge-Review -Merge-Review-68 Merge-Approved-68
If you think it is safe, SGTM. 
Project Member

Comment 22 by bugdroid1@chromium.org, Jul 26

Labels: -merge-approved-68 merge-merged-3440
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/8d1195c9871c839bb7095229ee7de9759a74e995

commit 8d1195c9871c839bb7095229ee7de9759a74e995
Author: Sammie Quon <sammiequon@google.com>
Date: Thu Jul 26 17:48:00 2018

[merge to 68] tablet: Do not enter tablet mode if external mouse connected.

Previously required both external mouse and keyboard to suppress tablet
mode. That has changed in doc [1].

[1] https://docs.google.com/document/d/1TIiQ_30SRc0PZrYVWUgRieTrW1m-7tWsKb6XPKq6UPk/edit?ts=5b1f00c4#

TBR=sammiequon@google.com, xiyuan@chromium.org
(cherry picked from commit ac5c6789cec26607f31bb630a99886fd617741ab)

Test: manual
Bug:  811999 
Change-Id: I10d076ec08fc16dd370fca81b4846faf302d4950
Reviewed-on: https://chromium-review.googlesource.com/1098033
Commit-Queue: Sammie Quon <sammiequon@chromium.org>
Reviewed-by: Xiyuan Xia <xiyuan@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#566641}
Reviewed-on: https://chromium-review.googlesource.com/1151724
Reviewed-by: Sammie Quon <sammiequon@chromium.org>
Cr-Commit-Position: refs/branch-heads/3440@{#753}
Cr-Branched-From: 010ddcfda246975d194964ccf20038ebbdec6084-refs/heads/master@{#561733}
[modify] https://crrev.com/8d1195c9871c839bb7095229ee7de9759a74e995/ash/wm/tablet_mode/tablet_mode_controller.cc
[modify] https://crrev.com/8d1195c9871c839bb7095229ee7de9759a74e995/ash/wm/tablet_mode/tablet_mode_controller.h
[modify] https://crrev.com/8d1195c9871c839bb7095229ee7de9759a74e995/ash/wm/tablet_mode/tablet_mode_controller_unittest.cc

Status: Fixed (was: Started)

Sign in to add a comment