Skip to content

Commit b086ea3

Browse files
authored
Sync Flutter 3.44.1 source code (#177)
1 parent 5f4302a commit b086ea3

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

flutter/shell/platform/embedder/embedder.h

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,13 @@ typedef enum {
107107
kFlutterAccessibilityFeatureOnOffSwitchLabels = 1 << 6,
108108
/// Indicate the platform does not support announcements.
109109
kFlutterAccessibilityFeatureNoAnnounce = 1 << 7,
110+
/// Indicate the platform disallows auto-playing animated images.
111+
kFlutterAccessibilityFeatureNoAutoPlayAnimatedImages = 1 << 8,
112+
/// Indicate the platform disallows auto-playing videos.
113+
kFlutterAccessibilityFeatureNoAutoPlayVideos = 1 << 9,
114+
/// Request to show deterministic (non-blinking) cursor in editable text
115+
/// fields.
116+
kFlutterAccessibilityFeatureDeterministicCursor = 1 << 10,
110117
} FlutterAccessibilityFeature;
111118

112119
/// The set of possible actions that can be conveyed to a semantics node.
@@ -1104,6 +1111,29 @@ typedef struct {
11041111
FlutterEngineDisplayId display_id;
11051112
/// The view that this event is describing.
11061113
int64_t view_id;
1114+
/// If `true`, the window has size constraints.
1115+
/// If `false`, the constraint values are ignored.
1116+
bool has_constraints;
1117+
/// Minimum physical width of the window.
1118+
///
1119+
/// If |has_constraints| is `true`, this must be less than or equal to
1120+
/// |max_width_constraint| and |width|.
1121+
size_t min_width_constraint;
1122+
/// Minimum physical height of the window.
1123+
///
1124+
/// If |has_constraints| is `true`, this must be less than or equal to
1125+
/// |max_height_constraint| and |height|.
1126+
size_t min_height_constraint;
1127+
/// Maximum physical width of the window.
1128+
///
1129+
/// If |has_constraints| is `true`, this must be greater than or equal to
1130+
/// |min_width_constraint| and |width|.
1131+
size_t max_width_constraint;
1132+
/// Maximum physical height of the window.
1133+
///
1134+
/// If |has_constraints| is `true`, this must be greater than or equal to
1135+
/// |min_height_constraint| and |height|.
1136+
size_t max_height_constraint;
11071137
} FlutterWindowMetricsEvent;
11081138

11091139
typedef struct {
@@ -1378,6 +1408,14 @@ typedef struct {
13781408
double rotation;
13791409
/// The identifier of the view that received the pointer event.
13801410
FlutterViewId view_id;
1411+
/// The pressure of the current pointer, where 0.0 is the default value.
1412+
double pressure;
1413+
/// The minimum bound of the pressure of the current pointer, where 0.0 is the
1414+
/// default minimum bound.
1415+
double pressure_min;
1416+
/// The maximum bound of the pressure of the current pointer, where 0.0 is the
1417+
/// default maximum bound.
1418+
double pressure_max;
13811419
} FlutterPointerEvent;
13821420

13831421
typedef enum {
@@ -2800,6 +2838,10 @@ typedef struct {
28002838
/// `PlatformDispatcher.instance.engineId`. Can be used in native code to
28012839
/// retrieve the engine instance that is running the Dart code.
28022840
int64_t engine_id;
2841+
2842+
/// If true, the engine will decode images in wide gamut color spaces
2843+
/// (Display P3) when supported. If false, images are decoded to sRGB.
2844+
bool enable_wide_gamut;
28032845
} FlutterProjectArgs;
28042846

28052847
typedef struct {

0 commit comments

Comments
 (0)