template <typename BuilderImpl>

class WireTableBaseBuilder

Defined at line 2570 of file fidling/gen/sdk/fidl/fuchsia.web/fuchsia.web/cpp/fidl/fuchsia.web/cpp/wire_types.h

Public Methods

::fuchsia_web::wire::ContentAreaSettings Build ()

Build and return the table. The builder should not be used after this.

bool has_hide_scrollbars ()
void clear_hide_scrollbars ()

Clears the hide_scrollbars field.

This method should be used sparingly, such as only during tests, as it has

O(number_of_fields) complexity.

bool & hide_scrollbars ()

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

BuilderImpl & hide_scrollbars (bool elem)

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

bool has_autoplay_policy ()
void clear_autoplay_policy ()

Clears the autoplay_policy field.

This method should be used sparingly, such as only during tests, as it has

O(number_of_fields) complexity.

::fuchsia_web::wire::AutoplayPolicy & autoplay_policy ()

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

`REQUIRE_USER_ACTIVATION`.

BuilderImpl & autoplay_policy (::fuchsia_web::wire::AutoplayPolicy elem)

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

`REQUIRE_USER_ACTIVATION`.

bool has_theme ()
void clear_theme ()

Clears the theme field.

This method should be used sparingly, such as only during tests, as it has

O(number_of_fields) complexity.

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

BuilderImpl & theme (::fuchsia_settings::wire::ThemeType elem)

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_page_scale ()
void clear_page_scale ()

Clears the page_scale field.

This method should be used sparingly, such as only during tests, as it has

O(number_of_fields) complexity.

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

BuilderImpl & page_scale (float elem)

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

Protected Methods

void WireTableBaseBuilder< ::fuchsia_web::wire::ContentAreaSettings, BuilderImpl> (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_web::wire::ContentAreaSettings>> && frame)

Records