Exploit databaseDownload repository ZIP
GH-839c07bcf7b2d736ed82c382de889ad5
valencenavy/isolatedanarchy-public
Sources for CVE-2026-87492
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files48
valencenavy/isolatedanarchy-publicRevision 826a1554d9bc
- ↑..Parent directory
- internal/
- animation.mojom.m.js
- begin_frame_args.mojom.m.js
- bitmap_in_shared_memory.mojom.m.js
- blit_request.mojom.m.js
- compositing_mode_watcher.mojom.m.js
- compositor_frame.mojom.m.js
- compositor_frame_metadata.mojom.m.js
- compositor_frame_sink.mojom.m.js
- compositor_frame_transition_directive.mojom.m.js
- compositor_render_pass.mojom.m.js
- compositor_render_pass_id.mojom.m.js
- copy_output_request.mojom.m.js
- copy_output_result.mojom.m.js
- filter_operation.mojom.m.js
- filter_operations.mojom.m.js
- frame_deadline.mojom.m.js
- frame_interval_inputs.mojom.m.js
- frame_sink_bundle.mojom.m.js
- frame_sink_bundle_id.mojom.m.js
- frame_sink_id.mojom.m.js
- frame_timing_details.mojom.m.js
- layer.mojom.m.js
- layer_context.mojom.m.js
- local_surface_id.mojom.m.js
- offset_tag.mojom.m.js
- paint_filter.mojom.m.js
- quads.mojom.m.js
- region_capture_bounds.mojom.m.js
- resource_id.mojom.m.js
- returned_resource.mojom.m.js
- selection.mojom.m.js
- shared_image_format.mojom.m.js
- shared_quad_state.mojom.m.js
- subtree_capture_id.mojom.m.js
- surface_id.mojom.m.js
- surface_info.mojom.m.js
- surface_range.mojom.m.js
- texture_releaser.mojom.m.js
- thread.mojom.m.js
- tiling.mojom.m.js
- tracked_element_rects.mojom.m.js
- transferable_resource.mojom.m.js
- trees_in_viz_timing.mojom.m.js
- vertical_scroll_direction.mojom.m.js
- video_detector_observer.mojom.m.js
- view_transition_element_resource_id.mojom.m.js
- view_transition_request.mojom.m.js
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
gen/services/viz/public/mojom/compositing/layer.mojom.m.js
JavaScript · 68,762 bytes// services/viz/public/mojom/compositing/layer.mojom.m.js is auto generated by mojom_bindings_generator.py, do not edit
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {mojo} from '../../../../../mojo/public/js/bindings.js';
import {
ElementId as cc_mojom_ElementId,
ElementIdSpec as cc_mojom_ElementIdSpec
} from '../../../../../cc/mojom/element_id.mojom.m.js';
import {
HitTestOpaqueness as cc_mojom_HitTestOpaqueness,
HitTestOpaquenessSpec as cc_mojom_HitTestOpaquenessSpec
} from '../../../../../cc/mojom/hit_test_opaqueness.mojom.m.js';
import {
LayerType as cc_mojom_LayerType,
LayerTypeSpec as cc_mojom_LayerTypeSpec
} from '../../../../../cc/mojom/layer_type.mojom.m.js';
import {
FilterQuality as cc_mojom_FilterQuality,
FilterQualitySpec as cc_mojom_FilterQualitySpec,
DynamicRangeLimit as cc_mojom_DynamicRangeLimit,
DynamicRangeLimitSpec as cc_mojom_DynamicRangeLimitSpec
} from '../../../../../cc/mojom/paint_flags.mojom.m.js';
import {
RenderSurfaceReason as cc_mojom_RenderSurfaceReason,
RenderSurfaceReasonSpec as cc_mojom_RenderSurfaceReasonSpec
} from '../../../../../cc/mojom/render_surface_reason.mojom.m.js';
import {
SyncedScrollOffset as cc_mojom_SyncedScrollOffset,
SyncedScrollOffsetSpec as cc_mojom_SyncedScrollOffsetSpec
} from '../../../../../cc/mojom/synced_scroll_offset.mojom.m.js';
import {
UIResourceId as cc_mojom_UIResourceId,
UIResourceIdSpec as cc_mojom_UIResourceIdSpec
} from '../../../../../cc/mojom/ui_resource_id.mojom.m.js';
import {
SkColor4f as skia_mojom_SkColor4f,
SkColor4fSpec as skia_mojom_SkColor4fSpec
} from '../../../../../skia/public/mojom/skcolor4f.mojom.m.js';
import {
SkPath as skia_mojom_SkPath,
SkPathSpec as skia_mojom_SkPathSpec
} from '../../../../../skia/public/mojom/skpath.mojom.m.js';
import {
Point3F as gfx_mojom_Point3F,
Point3FSpec as gfx_mojom_Point3FSpec,
PointF as gfx_mojom_PointF,
PointFSpec as gfx_mojom_PointFSpec,
Rect as gfx_mojom_Rect,
RectSpec as gfx_mojom_RectSpec,
RectF as gfx_mojom_RectF,
RectFSpec as gfx_mojom_RectFSpec,
Size as gfx_mojom_Size,
SizeSpec as gfx_mojom_SizeSpec,
Vector2d as gfx_mojom_Vector2d,
Vector2dSpec as gfx_mojom_Vector2dSpec,
Vector2dF as gfx_mojom_Vector2dF,
Vector2dFSpec as gfx_mojom_Vector2dFSpec
} from '../../../../../ui/gfx/geometry/mojom/geometry.mojom.m.js';
import {
ContentColorUsage as gfx_mojom_ContentColorUsage,
ContentColorUsageSpec as gfx_mojom_ContentColorUsageSpec
} from '../../../../../ui/gfx/mojom/display_color_spaces.mojom.m.js';
import {
MaskFilterInfo as gfx_mojom_MaskFilterInfo,
MaskFilterInfoSpec as gfx_mojom_MaskFilterInfoSpec
} from '../../../../../ui/gfx/mojom/mask_filter_info.mojom.m.js';
import {
Transform as gfx_mojom_Transform,
TransformSpec as gfx_mojom_TransformSpec
} from '../../../../../ui/gfx/mojom/transform.mojom.m.js';
import {
CopyOutputRequest as viz_mojom_CopyOutputRequest,
CopyOutputRequestSpec as viz_mojom_CopyOutputRequestSpec
} from './copy_output_request.mojom.m.js';
import {
FilterOperations as viz_mojom_FilterOperations,
FilterOperationsSpec as viz_mojom_FilterOperationsSpec
} from './filter_operations.mojom.m.js';
import {
RegionCaptureBounds as viz_mojom_RegionCaptureBounds,
RegionCaptureBoundsSpec as viz_mojom_RegionCaptureBoundsSpec
} from './region_capture_bounds.mojom.m.js';
import {
SubtreeCaptureId as viz_mojom_SubtreeCaptureId,
SubtreeCaptureIdSpec as viz_mojom_SubtreeCaptureIdSpec
} from './subtree_capture_id.mojom.m.js';
import {
SurfaceRange as viz_mojom_SurfaceRange,
SurfaceRangeSpec as viz_mojom_SurfaceRangeSpec
} from './surface_range.mojom.m.js';
import {
TransferableResource as viz_mojom_TransferableResource,
TransferableResourceSpec as viz_mojom_TransferableResourceSpec
} from './transferable_resource.mojom.m.js';
import {
ViewTransitionElementResourceId as viz_mojom_ViewTransitionElementResourceId,
ViewTransitionElementResourceIdSpec as viz_mojom_ViewTransitionElementResourceIdSpec
} from './view_transition_element_resource_id.mojom.m.js';
/**
* @const { {$:!mojo.internal.MojomType}}
*/
export const RarePropertiesSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
/**
* @const { {$:!mojo.internal.MojomType}}
*/
export const MirrorLayerExtraSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
/**
* @const { {$:!mojo.internal.MojomType}}
*/
export const SurfaceLayerExtraSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
/**
* @const { {$:!mojo.internal.MojomType}}
*/
export const TextureLayerExtraSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
/**
* @const { {$:!mojo.internal.MojomType}}
*/
export const UIResourceLayerExtraSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
/**
* @const { {$:!mojo.internal.MojomType}}
*/
export const TileDisplayLayerExtraSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
/**
* @const { {$:!mojo.internal.MojomType}}
*/
export const ScrollbarLayerBaseExtraSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
/**
* @const { {$:!mojo.internal.MojomType}}
*/
export const NinePatchThumbScrollbarLayerExtraSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
/**
* @const { {$:!mojo.internal.MojomType}}
*/
export const PaintedScrollbarLayerExtraSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
/**
* @const { {$:!mojo.internal.MojomType}}
*/
export const SolidColorScrollbarLayerExtraSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
/**
* @const { {$:!mojo.internal.MojomType}}
*/
export const ViewTransitionContentLayerExtraSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
/**
* @const { {$:!mojo.internal.MojomType}}
*/
export const NinePatchLayerExtraSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
/**
* @const { {$:!mojo.internal.MojomType}}
*/
export const LayerGeneralPropertiesSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
/**
* @const { {$:!mojo.internal.MojomType}}
*/
export const LayerSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
/**
* @const { {$:!mojo.internal.MojomType}}
*/
export const AnchorPositionScrollDataSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
/**
* @const { {$:!mojo.internal.MojomType}}
*/
export const StickyPositionNodeDataSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
/**
* @const { {$:!mojo.internal.MojomType}}
*/
export const TransformTreeUpdateSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
/**
* @const { {$:!mojo.internal.MojomType}}
*/
export const TransformNodeSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
/**
* @const { {$:!mojo.internal.MojomType}}
*/
export const ClipNodeSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
/**
* @const { {$:!mojo.internal.MojomType}}
*/
export const EffectNodeSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
/**
* @const { {$:!mojo.internal.MojomType}}
*/
export const ScrollTreeUpdateSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
/**
* @const { {$:!mojo.internal.MojomType}}
*/
export const ScrollNodeSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
/**
* @const { {$:!mojo.internal.MojomType} }
*/
export const LayerExtraSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
mojo.internal.Struct(
RarePropertiesSpec.$,
'RareProperties',
[
mojo.internal.StructField(
'filterQuality', 0,
0,
cc_mojom_FilterQualitySpec.$,
cc_mojom_FilterQuality.kLow,
false /* nullable */,
0,
),
mojo.internal.StructField(
'dynamicRangeLimit', 8,
0,
cc_mojom_DynamicRangeLimitSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'captureBounds', 16,
0,
viz_mojom_RegionCaptureBoundsSpec.$,
null,
false /* nullable */,
0,
),
],
[[0, 32],]);
/**
* @record
*/
export class RareProperties {
constructor() {
/** @type { !cc_mojom_FilterQuality } */
this.filterQuality;
/** @type { !cc_mojom_DynamicRangeLimit } */
this.dynamicRangeLimit;
/** @type { !viz_mojom_RegionCaptureBounds } */
this.captureBounds;
}
}
mojo.internal.Struct(
MirrorLayerExtraSpec.$,
'MirrorLayerExtra',
[
mojo.internal.StructField(
'mirroredLayerId', 0,
0,
mojo.internal.Int32,
0,
false /* nullable */,
0,
),
],
[[0, 16],]);
/**
* @record
*/
export class MirrorLayerExtra {
constructor() {
/** @type { !number } */
this.mirroredLayerId;
}
}
mojo.internal.Struct(
SurfaceLayerExtraSpec.$,
'SurfaceLayerExtra',
[
mojo.internal.StructField(
'surfaceRange', 0,
0,
viz_mojom_SurfaceRangeSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'deadline_in_frames_$flag', 8,
0,
mojo.internal.Bool,
false,
false /* nullable */,
0,
{
isPrimary: true,
linkedValueFieldName: "deadline_in_frames_$value",
originalFieldName: "deadlineInFrames",
}
),
mojo.internal.StructField(
'deadline_in_frames_$value', 12,
0,
mojo.internal.Uint32,
0,
false /* nullable */,
0,
{
isPrimary: false,
originalFieldName: "deadlineInFrames",
}
),
mojo.internal.StructField(
'stretchContentToFillBounds', 8,
1,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'surfaceHitTestable', 8,
2,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'hasPointerEventsNone', 8,
3,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'isReflection', 8,
4,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'willDrawNeedsReset', 8,
5,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'overrideChildPaintFlags', 8,
6,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
],
[[0, 24],]);
/**
* @record
*/
export class SurfaceLayerExtra {
constructor() {
/** @type { !viz_mojom_SurfaceRange } */
this.surfaceRange;
/** @type { (number|undefined) } */
this.deadlineInFrames;
/** @type { !boolean } */
this.stretchContentToFillBounds;
/** @type { !boolean } */
this.surfaceHitTestable;
/** @type { !boolean } */
this.hasPointerEventsNone;
/** @type { !boolean } */
this.isReflection;
/** @type { !boolean } */
this.willDrawNeedsReset;
/** @type { !boolean } */
this.overrideChildPaintFlags;
}
}
mojo.internal.Struct(
TextureLayerExtraSpec.$,
'TextureLayerExtra',
[
mojo.internal.StructField(
'blendBackgroundColor', 0,
0,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'forceTextureToOpaque', 0,
1,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'uvTopLeft', 8,
0,
gfx_mojom_PointFSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'uvBottomRight', 16,
0,
gfx_mojom_PointFSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'updateTransferableResource', 0,
2,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'transferableResource', 24,
0,
viz_mojom_TransferableResourceSpec.$,
null,
true /* nullable */,
0,
),
],
[[0, 40],]);
/**
* @record
*/
export class TextureLayerExtra {
constructor() {
/** @type { !boolean } */
this.blendBackgroundColor;
/** @type { !boolean } */
this.forceTextureToOpaque;
/** @type { !gfx_mojom_PointF } */
this.uvTopLeft;
/** @type { !gfx_mojom_PointF } */
this.uvBottomRight;
/** @type { !boolean } */
this.updateTransferableResource;
/** @type { (viz_mojom_TransferableResource|undefined) } */
this.transferableResource;
}
}
mojo.internal.Struct(
UIResourceLayerExtraSpec.$,
'UIResourceLayerExtra',
[
mojo.internal.StructField(
'uiResourceId', 0,
0,
cc_mojom_UIResourceIdSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'imageBounds', 8,
0,
gfx_mojom_SizeSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'uvTopLeft', 16,
0,
gfx_mojom_PointFSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'uvBottomRight', 24,
0,
gfx_mojom_PointFSpec.$,
null,
false /* nullable */,
0,
),
],
[[0, 40],]);
/**
* @record
*/
export class UIResourceLayerExtra {
constructor() {
/** @type { !cc_mojom_UIResourceId } */
this.uiResourceId;
/** @type { !gfx_mojom_Size } */
this.imageBounds;
/** @type { !gfx_mojom_PointF } */
this.uvTopLeft;
/** @type { !gfx_mojom_PointF } */
this.uvBottomRight;
}
}
mojo.internal.Struct(
TileDisplayLayerExtraSpec.$,
'TileDisplayLayerExtra',
[
mojo.internal.StructField(
'solidColor', 0,
0,
skia_mojom_SkColor4fSpec.$,
null,
true /* nullable */,
0,
),
mojo.internal.StructField(
'isBackdropFilterMask', 8,
0,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'isDirectlyCompositedImage', 8,
1,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'nearestNeighbor', 8,
2,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'contentColorUsage', 12,
0,
gfx_mojom_ContentColorUsageSpec.$,
0,
false /* nullable */,
0,
),
mojo.internal.StructField(
'recordedBounds', 16,
0,
gfx_mojom_RectSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'proposedTilingScalesForDeletion', 24,
0,
mojo.internal.Array(mojo.internal.Float, false),
null,
false /* nullable */,
0,
),
],
[[0, 40],]);
/**
* @record
*/
export class TileDisplayLayerExtra {
constructor() {
/** @type { (skia_mojom_SkColor4f|undefined) } */
this.solidColor;
/** @type { !boolean } */
this.isBackdropFilterMask;
/** @type { !boolean } */
this.isDirectlyCompositedImage;
/** @type { !boolean } */
this.nearestNeighbor;
/** @type { !gfx_mojom_ContentColorUsage } */
this.contentColorUsage;
/** @type { !gfx_mojom_Rect } */
this.recordedBounds;
/** @type { !Array<!number> } */
this.proposedTilingScalesForDeletion;
}
}
mojo.internal.Struct(
ScrollbarLayerBaseExtraSpec.$,
'ScrollbarLayerBaseExtra',
[
mojo.internal.StructField(
'scrollElementId', 0,
0,
cc_mojom_ElementIdSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'isOverlayScrollbar', 8,
0,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'isWebTest', 8,
1,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'thumbThicknessScaleFactor', 12,
0,
mojo.internal.Float,
0,
false /* nullable */,
0,
),
mojo.internal.StructField(
'currentPos', 16,
0,
mojo.internal.Float,
0,
false /* nullable */,
0,
),
mojo.internal.StructField(
'clipLayerLength', 20,
0,
mojo.internal.Float,
0,
false /* nullable */,
0,
),
mojo.internal.StructField(
'scrollLayerLength', 24,
0,
mojo.internal.Float,
0,
false /* nullable */,
0,
),
mojo.internal.StructField(
'isHorizontalOrientation', 8,
2,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'isLeftSideVerticalScrollbar', 8,
3,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'verticalAdjust', 28,
0,
mojo.internal.Float,
0,
false /* nullable */,
0,
),
mojo.internal.StructField(
'hasFindInPageTickmarks', 8,
4,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
],
[[0, 40],]);
/**
* @record
*/
export class ScrollbarLayerBaseExtra {
constructor() {
/** @type { !cc_mojom_ElementId } */
this.scrollElementId;
/** @type { !boolean } */
this.isOverlayScrollbar;
/** @type { !boolean } */
this.isWebTest;
/** @type { !number } */
this.thumbThicknessScaleFactor;
/** @type { !number } */
this.currentPos;
/** @type { !number } */
this.clipLayerLength;
/** @type { !number } */
this.scrollLayerLength;
/** @type { !boolean } */
this.isHorizontalOrientation;
/** @type { !boolean } */
this.isLeftSideVerticalScrollbar;
/** @type { !number } */
this.verticalAdjust;
/** @type { !boolean } */
this.hasFindInPageTickmarks;
}
}
mojo.internal.Struct(
NinePatchThumbScrollbarLayerExtraSpec.$,
'NinePatchThumbScrollbarLayerExtra',
[
mojo.internal.StructField(
'scrollbarBaseExtra', 0,
0,
ScrollbarLayerBaseExtraSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'thumbThickness', 8,
0,
mojo.internal.Int32,
0,
false /* nullable */,
0,
),
mojo.internal.StructField(
'minimumThumbLength', 12,
0,
mojo.internal.Int32,
0,
false /* nullable */,
0,
),
mojo.internal.StructField(
'trackStart', 16,
0,
mojo.internal.Int32,
0,
false /* nullable */,
0,
),
mojo.internal.StructField(
'trackLength', 20,
0,
mojo.internal.Int32,
0,
false /* nullable */,
0,
),
mojo.internal.StructField(
'imageBounds', 24,
0,
gfx_mojom_SizeSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'aperture', 32,
0,
gfx_mojom_RectSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'thumbUiResourceId', 40,
0,
cc_mojom_UIResourceIdSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'trackAndButtonsUiResourceId', 48,
0,
cc_mojom_UIResourceIdSpec.$,
null,
false /* nullable */,
0,
),
],
[[0, 64],]);
/**
* @record
*/
export class NinePatchThumbScrollbarLayerExtra {
constructor() {
/** @type { !ScrollbarLayerBaseExtra } */
this.scrollbarBaseExtra;
/** @type { !number } */
this.thumbThickness;
/** @type { !number } */
this.minimumThumbLength;
/** @type { !number } */
this.trackStart;
/** @type { !number } */
this.trackLength;
/** @type { !gfx_mojom_Size } */
this.imageBounds;
/** @type { !gfx_mojom_Rect } */
this.aperture;
/** @type { !cc_mojom_UIResourceId } */
this.thumbUiResourceId;
/** @type { !cc_mojom_UIResourceId } */
this.trackAndButtonsUiResourceId;
}
}
mojo.internal.Struct(
PaintedScrollbarLayerExtraSpec.$,
'PaintedScrollbarLayerExtra',
[
mojo.internal.StructField(
'scrollbarBaseExtra', 0,
0,
ScrollbarLayerBaseExtraSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'internalContentsScale', 8,
0,
mojo.internal.Float,
0,
false /* nullable */,
0,
),
mojo.internal.StructField(
'internalContentBounds', 16,
0,
gfx_mojom_SizeSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'jumpOnTrackClick', 12,
0,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'supportsDragSnapBack', 12,
1,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'thumbThickness', 24,
0,
mojo.internal.Int32,
0,
false /* nullable */,
0,
),
mojo.internal.StructField(
'minimumThumbLength', 28,
0,
mojo.internal.Int32,
0,
false /* nullable */,
0,
),
mojo.internal.StructField(
'backButtonRect', 32,
0,
gfx_mojom_RectSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'forwardButtonRect', 40,
0,
gfx_mojom_RectSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'trackRect', 48,
0,
gfx_mojom_RectSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'thumbColor', 56,
0,
skia_mojom_SkColor4fSpec.$,
null,
true /* nullable */,
0,
),
mojo.internal.StructField(
'usesNinePatchTrackAndButtons', 12,
2,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'trackAndButtonsImageBounds', 64,
0,
gfx_mojom_SizeSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'trackAndButtonsAperture', 72,
0,
gfx_mojom_RectSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'paintedOpacity', 80,
0,
mojo.internal.Float,
0,
false /* nullable */,
0,
),
mojo.internal.StructField(
'trackAndButtonsUiResourceId', 88,
0,
cc_mojom_UIResourceIdSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'thumbUiResourceId', 96,
0,
cc_mojom_UIResourceIdSpec.$,
null,
false /* nullable */,
0,
),
],
[[0, 112],]);
/**
* @record
*/
export class PaintedScrollbarLayerExtra {
constructor() {
/** @type { !ScrollbarLayerBaseExtra } */
this.scrollbarBaseExtra;
/** @type { !number } */
this.internalContentsScale;
/** @type { !gfx_mojom_Size } */
this.internalContentBounds;
/** @type { !boolean } */
this.jumpOnTrackClick;
/** @type { !boolean } */
this.supportsDragSnapBack;
/** @type { !number } */
this.thumbThickness;
/** @type { !number } */
this.minimumThumbLength;
/** @type { !gfx_mojom_Rect } */
this.backButtonRect;
/** @type { !gfx_mojom_Rect } */
this.forwardButtonRect;
/** @type { !gfx_mojom_Rect } */
this.trackRect;
/** @type { (skia_mojom_SkColor4f|undefined) } */
this.thumbColor;
/** @type { !boolean } */
this.usesNinePatchTrackAndButtons;
/** @type { !gfx_mojom_Size } */
this.trackAndButtonsImageBounds;
/** @type { !gfx_mojom_Rect } */
this.trackAndButtonsAperture;
/** @type { !number } */
this.paintedOpacity;
/** @type { !cc_mojom_UIResourceId } */
this.trackAndButtonsUiResourceId;
/** @type { !cc_mojom_UIResourceId } */
this.thumbUiResourceId;
}
}
mojo.internal.Struct(
SolidColorScrollbarLayerExtraSpec.$,
'SolidColorScrollbarLayerExtra',
[
mojo.internal.StructField(
'scrollbarBaseExtra', 0,
0,
ScrollbarLayerBaseExtraSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'thumbThickness', 8,
0,
mojo.internal.Int32,
0,
false /* nullable */,
0,
),
mojo.internal.StructField(
'trackStart', 12,
0,
mojo.internal.Int32,
0,
false /* nullable */,
0,
),
mojo.internal.StructField(
'color', 16,
0,
skia_mojom_SkColor4fSpec.$,
null,
false /* nullable */,
0,
),
],
[[0, 32],]);
/**
* @record
*/
export class SolidColorScrollbarLayerExtra {
constructor() {
/** @type { !ScrollbarLayerBaseExtra } */
this.scrollbarBaseExtra;
/** @type { !number } */
this.thumbThickness;
/** @type { !number } */
this.trackStart;
/** @type { !skia_mojom_SkColor4f } */
this.color;
}
}
mojo.internal.Struct(
ViewTransitionContentLayerExtraSpec.$,
'ViewTransitionContentLayerExtra',
[
mojo.internal.StructField(
'resourceId', 0,
0,
viz_mojom_ViewTransitionElementResourceIdSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'isLiveContentLayer', 8,
0,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'maxExtentsRect', 16,
0,
gfx_mojom_RectFSpec.$,
null,
false /* nullable */,
0,
),
],
[[0, 32],]);
/**
* @record
*/
export class ViewTransitionContentLayerExtra {
constructor() {
/** @type { !viz_mojom_ViewTransitionElementResourceId } */
this.resourceId;
/** @type { !boolean } */
this.isLiveContentLayer;
/** @type { !gfx_mojom_RectF } */
this.maxExtentsRect;
}
}
mojo.internal.Struct(
NinePatchLayerExtraSpec.$,
'NinePatchLayerExtra',
[
mojo.internal.StructField(
'imageAperture', 0,
0,
gfx_mojom_RectSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'border', 8,
0,
gfx_mojom_RectSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'layerOcclusion', 16,
0,
gfx_mojom_RectSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'fillCenter', 24,
0,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'uiResourceId', 32,
0,
cc_mojom_UIResourceIdSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'imageBounds', 40,
0,
gfx_mojom_SizeSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'uvTopLeft', 48,
0,
gfx_mojom_PointFSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'uvBottomRight', 56,
0,
gfx_mojom_PointFSpec.$,
null,
false /* nullable */,
0,
),
],
[[0, 72],]);
/**
* @record
*/
export class NinePatchLayerExtra {
constructor() {
/** @type { !gfx_mojom_Rect } */
this.imageAperture;
/** @type { !gfx_mojom_Rect } */
this.border;
/** @type { !gfx_mojom_Rect } */
this.layerOcclusion;
/** @type { !boolean } */
this.fillCenter;
/** @type { !cc_mojom_UIResourceId } */
this.uiResourceId;
/** @type { !gfx_mojom_Size } */
this.imageBounds;
/** @type { !gfx_mojom_PointF } */
this.uvTopLeft;
/** @type { !gfx_mojom_PointF } */
this.uvBottomRight;
}
}
mojo.internal.Struct(
LayerGeneralPropertiesSpec.$,
'LayerGeneralProperties',
[
mojo.internal.StructField(
'bounds', 0,
0,
gfx_mojom_SizeSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'contentsOpaque', 8,
0,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'contentsOpaqueForText', 8,
1,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'isDrawable', 8,
2,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'layerPropertyChangedNotFromPropertyTrees', 8,
3,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'layerPropertyChangedFromPropertyTrees', 8,
4,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'hitTestOpaqueness', 12,
0,
cc_mojom_HitTestOpaquenessSpec.$,
0,
false /* nullable */,
0,
),
mojo.internal.StructField(
'backgroundColor', 16,
0,
skia_mojom_SkColor4fSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'safeOpaqueBackgroundColor', 24,
0,
skia_mojom_SkColor4fSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'elementId', 32,
0,
cc_mojom_ElementIdSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'updateRect', 40,
0,
gfx_mojom_RectSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'offsetToTransformParent', 48,
0,
gfx_mojom_Vector2dFSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'shouldCheckBackfaceVisibility', 8,
5,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'rareProperties', 56,
0,
RarePropertiesSpec.$,
null,
true /* nullable */,
0,
),
mojo.internal.StructField(
'layerExtra', 64,
0,
LayerExtraSpec.$,
null,
true /* nullable */,
0,
),
],
[[0, 88],]);
/**
* @record
*/
export class LayerGeneralProperties {
constructor() {
/** @type { !gfx_mojom_Size } */
this.bounds;
/** @type { !boolean } */
this.contentsOpaque;
/** @type { !boolean } */
this.contentsOpaqueForText;
/** @type { !boolean } */
this.isDrawable;
/** @type { !boolean } */
this.layerPropertyChangedNotFromPropertyTrees;
/** @type { !boolean } */
this.layerPropertyChangedFromPropertyTrees;
/** @type { !cc_mojom_HitTestOpaqueness } */
this.hitTestOpaqueness;
/** @type { !skia_mojom_SkColor4f } */
this.backgroundColor;
/** @type { !skia_mojom_SkColor4f } */
this.safeOpaqueBackgroundColor;
/** @type { !cc_mojom_ElementId } */
this.elementId;
/** @type { !gfx_mojom_Rect } */
this.updateRect;
/** @type { !gfx_mojom_Vector2dF } */
this.offsetToTransformParent;
/** @type { !boolean } */
this.shouldCheckBackfaceVisibility;
/** @type { (RareProperties|undefined) } */
this.rareProperties;
/** @type { (LayerExtra|undefined) } */
this.layerExtra;
}
}
mojo.internal.Struct(
LayerSpec.$,
'Layer',
[
mojo.internal.StructField(
'id', 0,
0,
mojo.internal.Int64,
BigInt(0),
false /* nullable */,
0,
),
mojo.internal.StructField(
'type', 8,
0,
cc_mojom_LayerTypeSpec.$,
0,
false /* nullable */,
0,
),
mojo.internal.StructField(
'transformTreeIndex', 12,
0,
mojo.internal.Int32,
0,
false /* nullable */,
0,
),
mojo.internal.StructField(
'clipTreeIndex', 16,
0,
mojo.internal.Int32,
0,
false /* nullable */,
0,
),
mojo.internal.StructField(
'effectTreeIndex', 20,
0,
mojo.internal.Int32,
0,
false /* nullable */,
0,
),
mojo.internal.StructField(
'scrollTreeIndex', 24,
0,
mojo.internal.Int32,
0,
false /* nullable */,
0,
),
mojo.internal.StructField(
'generalProperties', 32,
0,
LayerGeneralPropertiesSpec.$,
null,
true /* nullable */,
0,
),
],
[[0, 48],]);
/**
* @record
*/
export class Layer {
constructor() {
/** @type { !bigint } */
this.id;
/** @type { !cc_mojom_LayerType } */
this.type;
/** @type { !number } */
this.transformTreeIndex;
/** @type { !number } */
this.clipTreeIndex;
/** @type { !number } */
this.effectTreeIndex;
/** @type { !number } */
this.scrollTreeIndex;
/** @type { (LayerGeneralProperties|undefined) } */
this.generalProperties;
}
}
mojo.internal.Struct(
AnchorPositionScrollDataSpec.$,
'AnchorPositionScrollData',
[
mojo.internal.StructField(
'adjustmentContainerIds', 0,
0,
mojo.internal.Array(cc_mojom_ElementIdSpec.$, false),
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'accumulatedScrollOrigin', 8,
0,
gfx_mojom_Vector2dSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'needsScrollAdjustmentInX', 16,
0,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'needsScrollAdjustmentInY', 16,
1,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
],
[[0, 32],]);
/**
* @record
*/
export class AnchorPositionScrollData {
constructor() {
/** @type { !Array<!cc_mojom_ElementId> } */
this.adjustmentContainerIds;
/** @type { !gfx_mojom_Vector2d } */
this.accumulatedScrollOrigin;
/** @type { !boolean } */
this.needsScrollAdjustmentInX;
/** @type { !boolean } */
this.needsScrollAdjustmentInY;
}
}
mojo.internal.Struct(
StickyPositionNodeDataSpec.$,
'StickyPositionNodeData',
[
mojo.internal.StructField(
'xScrollAncestor', 0,
0,
mojo.internal.Int32,
0,
false /* nullable */,
0,
),
mojo.internal.StructField(
'yScrollAncestor', 4,
0,
mojo.internal.Int32,
0,
false /* nullable */,
0,
),
mojo.internal.StructField(
'isAnchoredLeft', 8,
0,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'isAnchoredRight', 8,
1,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'isAnchoredTop', 8,
2,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'isAnchoredBottom', 8,
3,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'leftOffset', 12,
0,
mojo.internal.Float,
0,
false /* nullable */,
0,
),
mojo.internal.StructField(
'rightOffset', 16,
0,
mojo.internal.Float,
0,
false /* nullable */,
0,
),
mojo.internal.StructField(
'topOffset', 20,
0,
mojo.internal.Float,
0,
false /* nullable */,
0,
),
mojo.internal.StructField(
'bottomOffset', 24,
0,
mojo.internal.Float,
0,
false /* nullable */,
0,
),
mojo.internal.StructField(
'constraintBoxRect', 32,
0,
gfx_mojom_RectFSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'scrollContainerRelativeStickyBoxRect', 40,
0,
gfx_mojom_RectFSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'scrollContainerRelativeContainingBlockRect', 48,
0,
gfx_mojom_RectFSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'pixelSnapOffset', 56,
0,
gfx_mojom_Vector2dFSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'nearestNodeShiftingStickyBox', 28,
0,
mojo.internal.Int32,
0,
false /* nullable */,
0,
),
mojo.internal.StructField(
'nearestNodeShiftingContainingBlock', 64,
0,
mojo.internal.Int32,
0,
false /* nullable */,
0,
),
mojo.internal.StructField(
'totalStickyBoxStickyOffset', 72,
0,
gfx_mojom_Vector2dFSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'totalContainingBlockStickyOffset', 80,
0,
gfx_mojom_Vector2dFSpec.$,
null,
false /* nullable */,
0,
),
],
[[0, 96],]);
/**
* @record
*/
export class StickyPositionNodeData {
constructor() {
/** @type { !number } */
this.xScrollAncestor;
/** @type { !number } */
this.yScrollAncestor;
/** @type { !boolean } */
this.isAnchoredLeft;
/** @type { !boolean } */
this.isAnchoredRight;
/** @type { !boolean } */
this.isAnchoredTop;
/** @type { !boolean } */
this.isAnchoredBottom;
/** @type { !number } */
this.leftOffset;
/** @type { !number } */
this.rightOffset;
/** @type { !number } */
this.topOffset;
/** @type { !number } */
this.bottomOffset;
/** @type { !gfx_mojom_RectF } */
this.constraintBoxRect;
/** @type { !gfx_mojom_RectF } */
this.scrollContainerRelativeStickyBoxRect;
/** @type { !gfx_mojom_RectF } */
this.scrollContainerRelativeContainingBlockRect;
/** @type { !gfx_mojom_Vector2dF } */
this.pixelSnapOffset;
/** @type { !number } */
this.nearestNodeShiftingStickyBox;
/** @type { !number } */
this.nearestNodeShiftingContainingBlock;
/** @type { !gfx_mojom_Vector2dF } */
this.totalStickyBoxStickyOffset;
/** @type { !gfx_mojom_Vector2dF } */
this.totalContainingBlockStickyOffset;
}
}
mojo.internal.Struct(
TransformTreeUpdateSpec.$,
'TransformTreeUpdate',
[
mojo.internal.StructField(
'pageScaleFactor', 0,
0,
mojo.internal.Float,
1.0,
false /* nullable */,
0,
),
mojo.internal.StructField(
'deviceScaleFactor', 4,
0,
mojo.internal.Float,
1.0,
false /* nullable */,
0,
),
mojo.internal.StructField(
'deviceTransformScaleFactor', 8,
0,
mojo.internal.Float,
1.0,
false /* nullable */,
0,
),
mojo.internal.StructField(
'nodesAffectedByOuterViewportBoundsDelta', 16,
0,
mojo.internal.Array(mojo.internal.Int32, false),
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'nodesAffectedBySafeAreaBottom', 24,
0,
mojo.internal.Array(mojo.internal.Int32, false),
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'stickyPositionData', 32,
0,
mojo.internal.Array(StickyPositionNodeDataSpec.$, false),
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'anchorPositionScrollData', 40,
0,
mojo.internal.Array(AnchorPositionScrollDataSpec.$, false),
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'drawnElasticOverscroll', 48,
0,
mojo.internal.Map(cc_mojom_ElementIdSpec.$, gfx_mojom_Vector2dFSpec.$, false),
null,
false /* nullable */,
0,
),
],
[[0, 64],]);
/**
* @record
*/
export class TransformTreeUpdate {
constructor() {
/** @type { !number } */
this.pageScaleFactor;
/** @type { !number } */
this.deviceScaleFactor;
/** @type { !number } */
this.deviceTransformScaleFactor;
/** @type { !Array<!number> } */
this.nodesAffectedByOuterViewportBoundsDelta;
/** @type { !Array<!number> } */
this.nodesAffectedBySafeAreaBottom;
/** @type { !Array<!StickyPositionNodeData> } */
this.stickyPositionData;
/** @type { !Array<!AnchorPositionScrollData> } */
this.anchorPositionScrollData;
/** @type { !Map<!cc_mojom_ElementId, !gfx_mojom_Vector2dF> } */
this.drawnElasticOverscroll;
}
}
mojo.internal.Struct(
TransformNodeSpec.$,
'TransformNode',
[
mojo.internal.StructField(
'id', 0,
0,
mojo.internal.Int32,
0,
false /* nullable */,
0,
),
mojo.internal.StructField(
'parentId', 4,
0,
mojo.internal.Int32,
0,
false /* nullable */,
0,
),
mojo.internal.StructField(
'parentFrameId', 8,
0,
mojo.internal.Int32,
0,
false /* nullable */,
0,
),
mojo.internal.StructField(
'elementId', 16,
0,
cc_mojom_ElementIdSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'local', 24,
0,
gfx_mojom_TransformSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'origin', 32,
0,
gfx_mojom_Point3FSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'postTranslation', 40,
0,
gfx_mojom_Vector2dFSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'toParent', 48,
0,
gfx_mojom_TransformSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'scrollOffset', 56,
0,
gfx_mojom_PointFSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'snapAmount', 64,
0,
gfx_mojom_Vector2dFSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'sticky_position_constraint_id_$flag', 12,
0,
mojo.internal.Bool,
false,
false /* nullable */,
0,
{
isPrimary: true,
linkedValueFieldName: "sticky_position_constraint_id_$value",
originalFieldName: "stickyPositionConstraintId",
}
),
mojo.internal.StructField(
'sticky_position_constraint_id_$value', 72,
0,
mojo.internal.Uint32,
0,
false /* nullable */,
0,
{
isPrimary: false,
originalFieldName: "stickyPositionConstraintId",
}
),
mojo.internal.StructField(
'anchor_position_scroll_data_id_$flag', 12,
1,
mojo.internal.Bool,
false,
false /* nullable */,
0,
{
isPrimary: true,
linkedValueFieldName: "anchor_position_scroll_data_id_$value",
originalFieldName: "anchorPositionScrollDataId",
}
),
mojo.internal.StructField(
'anchor_position_scroll_data_id_$value', 76,
0,
mojo.internal.Uint32,
0,
false /* nullable */,
0,
{
isPrimary: false,
originalFieldName: "anchorPositionScrollDataId",
}
),
mojo.internal.StructField(
'sortingContextId', 80,
0,
mojo.internal.Int32,
0,
false /* nullable */,
0,
),
mojo.internal.StructField(
'hasPotentialAnimation', 12,
2,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'isCurrentlyAnimating', 12,
3,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'flattensInheritedTransform', 12,
4,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'scrolls', 12,
5,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'shouldUndoOverscroll', 12,
6,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'shouldBeSnapped', 12,
7,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'movedByOuterViewportBoundsDeltaY', 13,
0,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'inSubtreeOfPageScaleLayer', 13,
1,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'transformChanged', 13,
2,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'delegatesToParentForBackface', 13,
3,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'willChangeTransform', 13,
4,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'maximumAnimationScale', 84,
0,
mojo.internal.Float,
0,
false /* nullable */,
0,
),
mojo.internal.StructField(
'nodeAndAncestorsAreAnimatedOrInvertible', 13,
5,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'isInvertible', 13,
6,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'ancestorsAreInvertible', 13,
7,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'nodeAndAncestorsAreFlat', 14,
0,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'nodeOrAncestorsWillChangeTransform', 14,
1,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'visibleFrameElementId', 88,
0,
cc_mojom_ElementIdSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'damageReasonsBitMask', 96,
0,
mojo.internal.Uint64,
BigInt(0),
false /* nullable */,
0,
),
mojo.internal.StructField(
'movedBySafeAreaBottom', 14,
2,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
],
[[0, 112],]);
/**
* @record
*/
export class TransformNode {
constructor() {
/** @type { !number } */
this.id;
/** @type { !number } */
this.parentId;
/** @type { !number } */
this.parentFrameId;
/** @type { !cc_mojom_ElementId } */
this.elementId;
/** @type { !gfx_mojom_Transform } */
this.local;
/** @type { !gfx_mojom_Point3F } */
this.origin;
/** @type { !gfx_mojom_Vector2dF } */
this.postTranslation;
/** @type { !gfx_mojom_Transform } */
this.toParent;
/** @type { !gfx_mojom_PointF } */
this.scrollOffset;
/** @type { !gfx_mojom_Vector2dF } */
this.snapAmount;
/** @type { (number|undefined) } */
this.stickyPositionConstraintId;
/** @type { (number|undefined) } */
this.anchorPositionScrollDataId;
/** @type { !number } */
this.sortingContextId;
/** @type { !boolean } */
this.hasPotentialAnimation;
/** @type { !boolean } */
this.isCurrentlyAnimating;
/** @type { !boolean } */
this.flattensInheritedTransform;
/** @type { !boolean } */
this.scrolls;
/** @type { !boolean } */
this.shouldUndoOverscroll;
/** @type { !boolean } */
this.shouldBeSnapped;
/** @type { !boolean } */
this.movedByOuterViewportBoundsDeltaY;
/** @type { !boolean } */
this.inSubtreeOfPageScaleLayer;
/** @type { !boolean } */
this.transformChanged;
/** @type { !boolean } */
this.delegatesToParentForBackface;
/** @type { !boolean } */
this.willChangeTransform;
/** @type { !number } */
this.maximumAnimationScale;
/** @type { !boolean } */
this.nodeAndAncestorsAreAnimatedOrInvertible;
/** @type { !boolean } */
this.isInvertible;
/** @type { !boolean } */
this.ancestorsAreInvertible;
/** @type { !boolean } */
this.nodeAndAncestorsAreFlat;
/** @type { !boolean } */
this.nodeOrAncestorsWillChangeTransform;
/** @type { !cc_mojom_ElementId } */
this.visibleFrameElementId;
/** @type { !bigint } */
this.damageReasonsBitMask;
/** @type { !boolean } */
this.movedBySafeAreaBottom;
}
}
mojo.internal.Struct(
ClipNodeSpec.$,
'ClipNode',
[
mojo.internal.StructField(
'id', 0,
0,
mojo.internal.Int32,
0,
false /* nullable */,
0,
),
mojo.internal.StructField(
'parentId', 4,
0,
mojo.internal.Int32,
0,
false /* nullable */,
0,
),
mojo.internal.StructField(
'transformId', 8,
0,
mojo.internal.Int32,
0,
false /* nullable */,
0,
),
mojo.internal.StructField(
'clip', 16,
0,
gfx_mojom_RectFSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'pixelMovingFilterId', 12,
0,
mojo.internal.Int32,
0,
false /* nullable */,
0,
),
],
[[0, 32],]);
/**
* @record
*/
export class ClipNode {
constructor() {
/** @type { !number } */
this.id;
/** @type { !number } */
this.parentId;
/** @type { !number } */
this.transformId;
/** @type { !gfx_mojom_RectF } */
this.clip;
/** @type { !number } */
this.pixelMovingFilterId;
}
}
mojo.internal.Struct(
EffectNodeSpec.$,
'EffectNode',
[
mojo.internal.StructField(
'id', 0,
0,
mojo.internal.Int32,
0,
false /* nullable */,
0,
),
mojo.internal.StructField(
'parentId', 4,
0,
mojo.internal.Int32,
0,
false /* nullable */,
0,
),
mojo.internal.StructField(
'transformId', 8,
0,
mojo.internal.Int32,
0,
false /* nullable */,
0,
),
mojo.internal.StructField(
'clipId', 12,
0,
mojo.internal.Int32,
0,
false /* nullable */,
0,
),
mojo.internal.StructField(
'elementId', 16,
0,
cc_mojom_ElementIdSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'opacity', 24,
0,
mojo.internal.Float,
0,
false /* nullable */,
0,
),
mojo.internal.StructField(
'renderSurfaceReason', 28,
0,
cc_mojom_RenderSurfaceReasonSpec.$,
0,
false /* nullable */,
0,
),
mojo.internal.StructField(
'surfaceContentsScale', 32,
0,
gfx_mojom_Vector2dFSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'subtreeCaptureId', 40,
0,
viz_mojom_SubtreeCaptureIdSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'subtreeSize', 48,
0,
gfx_mojom_SizeSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'blendMode', 56,
0,
mojo.internal.Uint32,
0,
false /* nullable */,
0,
),
mojo.internal.StructField(
'targetId', 60,
0,
mojo.internal.Int32,
0,
false /* nullable */,
0,
),
mojo.internal.StructField(
'viewTransitionTargetId', 64,
0,
mojo.internal.Int32,
0,
false /* nullable */,
0,
),
mojo.internal.StructField(
'closestAncestorWithCachedRenderSurfaceId', 68,
0,
mojo.internal.Int32,
0,
false /* nullable */,
0,
),
mojo.internal.StructField(
'closestAncestorWithCopyRequestId', 72,
0,
mojo.internal.Int32,
0,
false /* nullable */,
0,
),
mojo.internal.StructField(
'closestAncestorBeingCapturedId', 76,
0,
mojo.internal.Int32,
0,
false /* nullable */,
0,
),
mojo.internal.StructField(
'closestAncestorWithSharedElementId', 80,
0,
mojo.internal.Int32,
0,
false /* nullable */,
0,
),
mojo.internal.StructField(
'viewTransitionElementResourceId', 88,
0,
viz_mojom_ViewTransitionElementResourceIdSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'filters', 96,
0,
viz_mojom_FilterOperationsSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'backdropFilters', 104,
0,
viz_mojom_FilterOperationsSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'backdropFilterBounds', 112,
0,
skia_mojom_SkPathSpec.$,
null,
true /* nullable */,
0,
),
mojo.internal.StructField(
'backdropFilterQuality', 84,
0,
mojo.internal.Float,
1.0,
false /* nullable */,
0,
),
mojo.internal.StructField(
'backdropMaskElementId', 120,
0,
cc_mojom_ElementIdSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'maskFilterInfo', 128,
0,
gfx_mojom_MaskFilterInfoSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'cacheRenderSurface', 136,
0,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'doubleSided', 136,
1,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'trilinearFiltering', 136,
2,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'subtreeHidden', 136,
3,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'hasPotentialFilterAnimation', 136,
4,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'hasPotentialBackdropFilterAnimation', 136,
5,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'hasPotentialOpacityAnimation', 136,
6,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'effectChanged', 136,
7,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'subtreeHasCopyRequest', 137,
0,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'isFastRoundedCorner', 137,
1,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'mayHaveBackdropEffect', 137,
2,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'needsEffectFor2dScaleTransform', 137,
3,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'onlyDrawsVisibleContent', 137,
4,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'copyOutputRequests', 144,
0,
mojo.internal.Array(viz_mojom_CopyOutputRequestSpec.$, false),
null,
false /* nullable */,
0,
),
],
[[0, 160],]);
/**
* @record
*/
export class EffectNode {
constructor() {
/** @type { !number } */
this.id;
/** @type { !number } */
this.parentId;
/** @type { !number } */
this.transformId;
/** @type { !number } */
this.clipId;
/** @type { !cc_mojom_ElementId } */
this.elementId;
/** @type { !number } */
this.opacity;
/** @type { !cc_mojom_RenderSurfaceReason } */
this.renderSurfaceReason;
/** @type { !gfx_mojom_Vector2dF } */
this.surfaceContentsScale;
/** @type { !viz_mojom_SubtreeCaptureId } */
this.subtreeCaptureId;
/** @type { !gfx_mojom_Size } */
this.subtreeSize;
/** @type { !number } */
this.blendMode;
/** @type { !number } */
this.targetId;
/** @type { !number } */
this.viewTransitionTargetId;
/** @type { !number } */
this.closestAncestorWithCachedRenderSurfaceId;
/** @type { !number } */
this.closestAncestorWithCopyRequestId;
/** @type { !number } */
this.closestAncestorBeingCapturedId;
/** @type { !number } */
this.closestAncestorWithSharedElementId;
/** @type { !viz_mojom_ViewTransitionElementResourceId } */
this.viewTransitionElementResourceId;
/** @type { !viz_mojom_FilterOperations } */
this.filters;
/** @type { !viz_mojom_FilterOperations } */
this.backdropFilters;
/** @type { (skia_mojom_SkPath|undefined) } */
this.backdropFilterBounds;
/** @type { !number } */
this.backdropFilterQuality;
/** @type { !cc_mojom_ElementId } */
this.backdropMaskElementId;
/** @type { !gfx_mojom_MaskFilterInfo } */
this.maskFilterInfo;
/** @type { !boolean } */
this.cacheRenderSurface;
/** @type { !boolean } */
this.doubleSided;
/** @type { !boolean } */
this.trilinearFiltering;
/** @type { !boolean } */
this.subtreeHidden;
/** @type { !boolean } */
this.hasPotentialFilterAnimation;
/** @type { !boolean } */
this.hasPotentialBackdropFilterAnimation;
/** @type { !boolean } */
this.hasPotentialOpacityAnimation;
/** @type { !boolean } */
this.effectChanged;
/** @type { !boolean } */
this.subtreeHasCopyRequest;
/** @type { !boolean } */
this.isFastRoundedCorner;
/** @type { !boolean } */
this.mayHaveBackdropEffect;
/** @type { !boolean } */
this.needsEffectFor2dScaleTransform;
/** @type { !boolean } */
this.onlyDrawsVisibleContent;
/** @type { !Array<!viz_mojom_CopyOutputRequest> } */
this.copyOutputRequests;
}
}
mojo.internal.Struct(
ScrollTreeUpdateSpec.$,
'ScrollTreeUpdate',
[
mojo.internal.StructField(
'syncedScrollOffsets', 0,
0,
mojo.internal.Map(cc_mojom_ElementIdSpec.$, cc_mojom_SyncedScrollOffsetSpec.$, false),
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'scrollingContentsCullRects', 8,
0,
mojo.internal.Map(cc_mojom_ElementIdSpec.$, gfx_mojom_RectSpec.$, false),
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'elasticOverscroll', 16,
0,
mojo.internal.Map(cc_mojom_ElementIdSpec.$, gfx_mojom_Vector2dFSpec.$, false),
null,
false /* nullable */,
0,
),
],
[[0, 32],]);
/**
* @record
*/
export class ScrollTreeUpdate {
constructor() {
/** @type { !Map<!cc_mojom_ElementId, !cc_mojom_SyncedScrollOffset> } */
this.syncedScrollOffsets;
/** @type { !Map<!cc_mojom_ElementId, !gfx_mojom_Rect> } */
this.scrollingContentsCullRects;
/** @type { !Map<!cc_mojom_ElementId, !gfx_mojom_Vector2dF> } */
this.elasticOverscroll;
}
}
mojo.internal.Struct(
ScrollNodeSpec.$,
'ScrollNode',
[
mojo.internal.StructField(
'id', 0,
0,
mojo.internal.Int32,
0,
false /* nullable */,
0,
),
mojo.internal.StructField(
'parentId', 4,
0,
mojo.internal.Int32,
0,
false /* nullable */,
0,
),
mojo.internal.StructField(
'transformId', 8,
0,
mojo.internal.Int32,
0,
false /* nullable */,
0,
),
mojo.internal.StructField(
'containerBounds', 16,
0,
gfx_mojom_SizeSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'bounds', 24,
0,
gfx_mojom_SizeSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'elementId', 32,
0,
cc_mojom_ElementIdSpec.$,
null,
false /* nullable */,
0,
),
mojo.internal.StructField(
'maxScrollOffsetAffectedByPageScale', 12,
0,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'scrollsInnerViewport', 12,
1,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'scrollsOuterViewport', 12,
2,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'preventViewportScrollingFromInner', 12,
3,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'userScrollableHorizontal', 12,
4,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'userScrollableVertical', 12,
5,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
mojo.internal.StructField(
'isComposited', 12,
6,
mojo.internal.Bool,
false,
false /* nullable */,
0,
),
],
[[0, 48],]);
/**
* @record
*/
export class ScrollNode {
constructor() {
/** @type { !number } */
this.id;
/** @type { !number } */
this.parentId;
/** @type { !number } */
this.transformId;
/** @type { !gfx_mojom_Size } */
this.containerBounds;
/** @type { !gfx_mojom_Size } */
this.bounds;
/** @type { !cc_mojom_ElementId } */
this.elementId;
/** @type { !boolean } */
this.maxScrollOffsetAffectedByPageScale;
/** @type { !boolean } */
this.scrollsInnerViewport;
/** @type { !boolean } */
this.scrollsOuterViewport;
/** @type { !boolean } */
this.preventViewportScrollingFromInner;
/** @type { !boolean } */
this.userScrollableHorizontal;
/** @type { !boolean } */
this.userScrollableVertical;
/** @type { !boolean } */
this.isComposited;
}
}
mojo.internal.Union(
LayerExtraSpec.$, 'LayerExtra',
{
'mirrorLayerExtra': {
'ordinal': 0,
'type': MirrorLayerExtraSpec.$,
},
'ninePatchThumbScrollbarLayerExtra': {
'ordinal': 1,
'type': NinePatchThumbScrollbarLayerExtraSpec.$,
},
'paintedScrollbarLayerExtra': {
'ordinal': 2,
'type': PaintedScrollbarLayerExtraSpec.$,
},
'solidColorScrollbarLayerExtra': {
'ordinal': 3,
'type': SolidColorScrollbarLayerExtraSpec.$,
},
'surfaceLayerExtra': {
'ordinal': 4,
'type': SurfaceLayerExtraSpec.$,
},
'textureLayerExtra': {
'ordinal': 5,
'type': TextureLayerExtraSpec.$,
},
'uiResourceLayerExtra': {
'ordinal': 6,
'type': UIResourceLayerExtraSpec.$,
},
'tileDisplayLayerExtra': {
'ordinal': 7,
'type': TileDisplayLayerExtraSpec.$,
},
'viewTransitionContentLayerExtra': {
'ordinal': 8,
'type': ViewTransitionContentLayerExtraSpec.$,
},
'ninePatchLayerExtra': {
'ordinal': 9,
'type': NinePatchLayerExtraSpec.$,
},
});
/**
* @typedef { {
* mirrorLayerExtra: (!MirrorLayerExtra|undefined),
* ninePatchThumbScrollbarLayerExtra: (!NinePatchThumbScrollbarLayerExtra|undefined),
* paintedScrollbarLayerExtra: (!PaintedScrollbarLayerExtra|undefined),
* solidColorScrollbarLayerExtra: (!SolidColorScrollbarLayerExtra|undefined),
* surfaceLayerExtra: (!SurfaceLayerExtra|undefined),
* textureLayerExtra: (!TextureLayerExtra|undefined),
* uiResourceLayerExtra: (!UIResourceLayerExtra|undefined),
* tileDisplayLayerExtra: (!TileDisplayLayerExtra|undefined),
* viewTransitionContentLayerExtra: (!ViewTransitionContentLayerExtra|undefined),
* ninePatchLayerExtra: (!NinePatchLayerExtra|undefined),
* } }
*/
export const LayerExtra = {};