Chrome camera app needs to know tablet mode or clamshell mode |
|||
Issue descriptionCurrently 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.
,
Sep 11
Files app is not aware of transitions of tablet-mode. Perhaps yhanada@ knows whether we can be notified when tablet-mode is changed?
,
Sep 11
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
,
Sep 11
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.
,
Sep 11
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 |
|||
Comment 1 by y...@chromium.org
, Sep 11