class ContentAreaSettings
Defined at line 2479 of file fidling/gen/sdk/fidl/fuchsia.web/fuchsia.web/cpp/fidl/fuchsia.web/cpp/wire_types.h
Settings for the web content in the Frame. Popup Frames created by the Frame will have their
settings initialized to the Frame's current settings.
Public Methods
void ContentAreaSettings ()
Defined at line 2481 of file fidling/gen/sdk/fidl/fuchsia.web/fuchsia.web/cpp/fidl/fuchsia.web/cpp/wire_types.h
void ContentAreaSettings (const ContentAreaSettings & other)
Defined at line 2482 of file fidling/gen/sdk/fidl/fuchsia.web/fuchsia.web/cpp/fidl/fuchsia.web/cpp/wire_types.h
ContentAreaSettings & operator= (const ContentAreaSettings & other)
Defined at line 2483 of file fidling/gen/sdk/fidl/fuchsia.web/fuchsia.web/cpp/fidl/fuchsia.web/cpp/wire_types.h
void ContentAreaSettings (ContentAreaSettings && other)
Defined at line 2484 of file fidling/gen/sdk/fidl/fuchsia.web/fuchsia.web/cpp/fidl/fuchsia.web/cpp/wire_types.h
bool IsEmpty ()
Returns whether no field is set.
bool HasUnknownData ()
Returns whether the table references unknown fields.
::fidl::WireTableBuilder< ::fuchsia_web::wire::ContentAreaSettings> Builder (::fidl::AnyArena & arena)
Return a builder that by defaults allocates of an arena.
::fidl::WireTableExternalBuilder< ::fuchsia_web::wire::ContentAreaSettings> ExternalBuilder (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_web::wire::ContentAreaSettings>> frame)
Return a builder that relies on explicitly allocating |fidl::ObjectView|s.
bool & hide_scrollbars ()
Specifies whether scrollbars are hidden for the Frame. If omitted, the default is false.
bool has_hide_scrollbars ()
::fuchsia_web::wire::AutoplayPolicy & autoplay_policy ()
Specifies the autoplay policy for the Frame. If omitted, the default policy is
`REQUIRE_USER_ACTIVATION`.
bool has_autoplay_policy ()
ContentAreaSettings & operator= (ContentAreaSettings && other)
Defined at line 2485 of file fidling/gen/sdk/fidl/fuchsia.web/fuchsia.web/cpp/fidl/fuchsia.web/cpp/wire_types.h
::fuchsia_settings::wire::ThemeType & theme ()
Specifies the color theme reported to web content via the `prefers-color-scheme` media
query.
Valid inputs are `LIGHT`, `DARK`, and `DEFAULT`. If omitted, the default is LIGHT theme.
Specifying `DEFAULT` means using the system settings, and requires that the [`Context`] have
the [`fuchsia.settings.Display`] service. If the service is not available, the [`Frame`]
will disconnect with `ZX_ERR_INVALID_ARGS`.
bool has_theme ()
float & page_scale ()
Sets scale factor (zoom level) that should be applied to web content rendered in this
frame. Values above 1.0 make all web content (including text and images) larger, while
values below 1.0 will make it smaller. In other words, values above 1.0 are used to zoom in
and values below 1.0 zoom out. The overall ratio between physical pixel and CSS pixel is a
product of the scale set with this method and the scale provided by Scenic (see
[`fuchsia.ui.gfx.Metrics`]). That product is visible to the web content as
`window.devicePixelRatio`. If omitted, the default is 1.0.
This setting does not have any effect on the size of the view on the screen and the
resolution at which the view is rendered. Native (non-web) UI elements, such as default
scroll bars and default mouse cursor, are not scaled. User may zoom the page further when
pinch-zoom is enabled (see [`InputTypes.GESTURE_PINCH`]).
bool has_page_scale ()
void ~ContentAreaSettings ()
Defined at line 2487 of file fidling/gen/sdk/fidl/fuchsia.web/fuchsia.web/cpp/fidl/fuchsia.web/cpp/wire_types.h
Friends
class WireTableBaseBuilder
class WireTableBaseBuilder