class ContentAreaSettings
Defined at line 2828 of file fidling/gen/sdk/fidl/fuchsia.web/fuchsia.web/hlcpp/fuchsia/web/cpp/fidl.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 Members
static const fidl_type_t * FidlType
Public Methods
bool IsEmpty ()
Returns whether no field is set.
const bool & hide_scrollbars ()
Specifies whether scrollbars are hidden for the Frame. If omitted, the default is false.
Defined at line 2835 of file fidling/gen/sdk/fidl/fuchsia.web/fuchsia.web/hlcpp/fuchsia/web/cpp/fidl.h
bool has_hide_scrollbars ()
Defined at line 2839 of file fidling/gen/sdk/fidl/fuchsia.web/fuchsia.web/hlcpp/fuchsia/web/cpp/fidl.h
bool * mutable_hide_scrollbars ()
Specifies whether scrollbars are hidden for the Frame. If omitted, the default is false.
Defined at line 2844 of file fidling/gen/sdk/fidl/fuchsia.web/fuchsia.web/hlcpp/fuchsia/web/cpp/fidl.h
void clear_hide_scrollbars ()
Defined at line 2852 of file fidling/gen/sdk/fidl/fuchsia.web/fuchsia.web/hlcpp/fuchsia/web/cpp/fidl.h
const ::fuchsia::web::AutoplayPolicy & autoplay_policy ()
Specifies the autoplay policy for the Frame. If omitted, the default policy is
`REQUIRE_USER_ACTIVATION`.
Defined at line 2862 of file fidling/gen/sdk/fidl/fuchsia.web/fuchsia.web/hlcpp/fuchsia/web/cpp/fidl.h
bool has_autoplay_policy ()
Defined at line 2866 of file fidling/gen/sdk/fidl/fuchsia.web/fuchsia.web/hlcpp/fuchsia/web/cpp/fidl.h
::fuchsia::web::AutoplayPolicy * mutable_autoplay_policy ()
Specifies the autoplay policy for the Frame. If omitted, the default policy is
`REQUIRE_USER_ACTIVATION`.
Defined at line 2872 of file fidling/gen/sdk/fidl/fuchsia.web/fuchsia.web/hlcpp/fuchsia/web/cpp/fidl.h
void clear_autoplay_policy ()
Defined at line 2880 of file fidling/gen/sdk/fidl/fuchsia.web/fuchsia.web/hlcpp/fuchsia/web/cpp/fidl.h
bool has_theme ()
Defined at line 2898 of file fidling/gen/sdk/fidl/fuchsia.web/fuchsia.web/hlcpp/fuchsia/web/cpp/fidl.h
::fuchsia::settings::ThemeType * mutable_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`.
Defined at line 2908 of file fidling/gen/sdk/fidl/fuchsia.web/fuchsia.web/hlcpp/fuchsia/web/cpp/fidl.h
void clear_theme ()
Defined at line 2916 of file fidling/gen/sdk/fidl/fuchsia.web/fuchsia.web/hlcpp/fuchsia/web/cpp/fidl.h
const 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`]).
Defined at line 2936 of file fidling/gen/sdk/fidl/fuchsia.web/fuchsia.web/hlcpp/fuchsia/web/cpp/fidl.h
bool has_page_scale ()
Defined at line 2940 of file fidling/gen/sdk/fidl/fuchsia.web/fuchsia.web/hlcpp/fuchsia/web/cpp/fidl.h
float * mutable_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`]).
Defined at line 2956 of file fidling/gen/sdk/fidl/fuchsia.web/fuchsia.web/hlcpp/fuchsia/web/cpp/fidl.h
void clear_page_scale ()
Defined at line 2964 of file fidling/gen/sdk/fidl/fuchsia.web/fuchsia.web/hlcpp/fuchsia/web/cpp/fidl.h
ContentAreaSettings & set_hide_scrollbars (bool _value)
ContentAreaSettings & set_autoplay_policy (::fuchsia::web::AutoplayPolicy _value)
ContentAreaSettings & set_theme (::fuchsia::settings::ThemeType _value)
ContentAreaSettings & set_page_scale (float _value)
void ContentAreaSettings ()
void ContentAreaSettings (ContentAreaSettings && other)
const ::fuchsia::settings::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`.
Defined at line 2894 of file fidling/gen/sdk/fidl/fuchsia.web/fuchsia.web/hlcpp/fuchsia/web/cpp/fidl.h
void ~ContentAreaSettings ()
ContentAreaSettings & operator= (ContentAreaSettings && other)
::std::unique_ptr<ContentAreaSettings> New ()
void Encode (::fidl::Encoder * _encoder, size_t _offset, std::optional< ::fidl::HandleInformation> maybe_handle_info)
void Decode (::fidl::Decoder * _decoder, ContentAreaSettings * _value, size_t _offset)
zx_status_t Clone (ContentAreaSettings * _result)