Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions flutter/shell/platform/embedder/embedder.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,13 @@ typedef enum {
kFlutterAccessibilityFeatureOnOffSwitchLabels = 1 << 6,
/// Indicate the platform does not support announcements.
kFlutterAccessibilityFeatureNoAnnounce = 1 << 7,
/// Indicate the platform disallows auto-playing animated images.
kFlutterAccessibilityFeatureNoAutoPlayAnimatedImages = 1 << 8,
/// Indicate the platform disallows auto-playing videos.
kFlutterAccessibilityFeatureNoAutoPlayVideos = 1 << 9,
/// Request to show deterministic (non-blinking) cursor in editable text
/// fields.
kFlutterAccessibilityFeatureDeterministicCursor = 1 << 10,
} FlutterAccessibilityFeature;

/// The set of possible actions that can be conveyed to a semantics node.
Expand Down Expand Up @@ -1104,6 +1111,29 @@ typedef struct {
FlutterEngineDisplayId display_id;
/// The view that this event is describing.
int64_t view_id;
/// If `true`, the window has size constraints.
/// If `false`, the constraint values are ignored.
bool has_constraints;
/// Minimum physical width of the window.
///
/// If |has_constraints| is `true`, this must be less than or equal to
/// |max_width_constraint| and |width|.
size_t min_width_constraint;
/// Minimum physical height of the window.
///
/// If |has_constraints| is `true`, this must be less than or equal to
/// |max_height_constraint| and |height|.
size_t min_height_constraint;
/// Maximum physical width of the window.
///
/// If |has_constraints| is `true`, this must be greater than or equal to
/// |min_width_constraint| and |width|.
size_t max_width_constraint;
/// Maximum physical height of the window.
///
/// If |has_constraints| is `true`, this must be greater than or equal to
/// |min_height_constraint| and |height|.
size_t max_height_constraint;
} FlutterWindowMetricsEvent;

typedef struct {
Expand Down Expand Up @@ -1378,6 +1408,14 @@ typedef struct {
double rotation;
/// The identifier of the view that received the pointer event.
FlutterViewId view_id;
/// The pressure of the current pointer, where 0.0 is the default value.
double pressure;
/// The minimum bound of the pressure of the current pointer, where 0.0 is the
/// default minimum bound.
double pressure_min;
/// The maximum bound of the pressure of the current pointer, where 0.0 is the
/// default maximum bound.
double pressure_max;
Comment thread
JSUYA marked this conversation as resolved.
} FlutterPointerEvent;

typedef enum {
Expand Down Expand Up @@ -2800,6 +2838,10 @@ typedef struct {
/// `PlatformDispatcher.instance.engineId`. Can be used in native code to
/// retrieve the engine instance that is running the Dart code.
int64_t engine_id;

/// If true, the engine will decode images in wide gamut color spaces
/// (Display P3) when supported. If false, images are decoded to sRGB.
bool enable_wide_gamut;
} FlutterProjectArgs;

typedef struct {
Expand Down
Loading