Support forking holding space welcome banner text for tablet mode.

In order to support forking of the holding space welcome banner text
for tablet mode, tablet mode change events needed to be dispatched to
the files app extension and the files app extension needs to be able to
request tablet mode enabled state at runtime.

This CL adds a 'tablet-mode-enabled' class to the DOM when tablet mode
is enabled. This can be used in CSS to apply tablet mode specific UI
treatments.

In the case of holding space, two elements are added to the DOM for
welcome text. Only one text element is displayed at a time, depending
on whether or not tablet mode is enabled.

Note that the actual tablet mode string will be implemented in a
follow up CL.

Bug: 1154347
Change-Id: I4e6be688da6348a7908f48cd59bbeef6c9d2727d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2591712
Commit-Queue: David Black <dmblack@google.com>
Reviewed-by: Istiaque Ahmed <lazyboy@chromium.org>
Reviewed-by: Luciano Pacheco <lucmult@chromium.org>
Cr-Commit-Position: refs/heads/master@{#838758}
GitOrigin-RevId: 090e13aa3a2962240d2bce61a6eb5836b1700b68
1 file changed