class ContentAreaSettings

Defined at line 1817 of file fidling/gen/sdk/fidl/fuchsia.web/fuchsia.web/cpp/fidl/fuchsia.web/cpp/natural_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 (Storage_ storage)
void ContentAreaSettings ()

Defined at line 1822 of file fidling/gen/sdk/fidl/fuchsia.web/fuchsia.web/cpp/fidl/fuchsia.web/cpp/natural_types.h

void ContentAreaSettings (ContentAreaSettings && )

Defined at line 1823 of file fidling/gen/sdk/fidl/fuchsia.web/fuchsia.web/cpp/fidl/fuchsia.web/cpp/natural_types.h

void ContentAreaSettings (const ContentAreaSettings & other)
ContentAreaSettings & operator= (ContentAreaSettings && )

Defined at line 1824 of file fidling/gen/sdk/fidl/fuchsia.web/fuchsia.web/cpp/fidl/fuchsia.web/cpp/natural_types.h

ContentAreaSettings & operator= (const ContentAreaSettings & other)
bool operator== (const ContentAreaSettings & other)
bool operator!= (const ContentAreaSettings & other)
bool IsEmpty ()
const std::optional<bool> & hide_scrollbars ()

Specifies whether scrollbars are hidden for the Frame. If omitted, the default is false.

::std::optional<bool> & hide_scrollbars ()

Specifies whether scrollbars are hidden for the Frame. If omitted, the default is false.

ContentAreaSettings & hide_scrollbars (std::optional<bool> value)

Specifies whether scrollbars are hidden for the Frame. If omitted, the default is false.

const std::optional< ::fuchsia_web::AutoplayPolicy> & autoplay_policy ()

Specifies the autoplay policy for the Frame. If omitted, the default policy is

`REQUIRE_USER_ACTIVATION`.

::std::optional< ::fuchsia_web::AutoplayPolicy> & autoplay_policy ()

Specifies the autoplay policy for the Frame. If omitted, the default policy is

`REQUIRE_USER_ACTIVATION`.

ContentAreaSettings & autoplay_policy (std::optional< ::fuchsia_web::AutoplayPolicy> value)

Specifies the autoplay policy for the Frame. If omitted, the default policy is

`REQUIRE_USER_ACTIVATION`.

const std::optional< ::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`.

::std::optional< ::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`.

ContentAreaSettings & theme (std::optional< ::fuchsia_settings::ThemeType> value)

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`.

const std::optional<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`]).

::std::optional<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`]).

ContentAreaSettings & page_scale (std::optional<float> value)

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`]).

void ContentAreaSettings (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )

Friends

class MemberVisitor
class NaturalTableCodingTraits