New issue
Advanced search Search tips

Issue 882783 link

Starred by 2 users

Issue metadata

Status: Untriaged
Owner:
Cc:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug



Sign in to add a comment

Chrome camera app needs to know tablet mode or clamshell mode

Project Member Reported by henryhsu@chromium.org, Sep 11

Issue description

Currently CCA puts shutter button on the right side but GCA puts shutter button on the bottom side.

It is because CCA doesn't know the device is in which mode.
We may need to add api for this.
 
Cc: fukino@chromium.org
fukino@,
Is there an event notifying apps being transitioned to tablet-mode?
Cc: yhanada@chromium.org
Files app is not aware of transitions of tablet-mode.

Perhaps yhanada@ knows whether we can be notified when tablet-mode is changed?
You can use TabletMode{Controller,Client} to observe the mode changes.
TabletModeController[1] should be used if you want to check it from ash process and TabletModeClient[2] should be used if you want to check it from browser process.

[1]: https://cs.chromium.org/chromium/src/ash/wm/tablet_mode/tablet_mode_controller.h
[2]: https://cs.chromium.org/chromium/src/chrome/browser/ui/ash/tablet_mode_client.h
Is there an existing JS API that a Chrome app could know it's being maximized when transitioning to tablet-mode and being restored when transitioning out-of tablet-mode? Thanks.
Cc: omrilio@chromium.org
I don't know any JS API related to tablet mode. Omri, is there any JS API for that?

Sign in to add a comment