From 92397389c1bad32d714021a27db50c2681b9e1ff Mon Sep 17 00:00:00 2001 From: Chris Bracken Date: Sun, 24 Feb 2019 22:33:55 -0800 Subject: [PATCH] Correct FlutterSemanticsNode member name style (flutter/engine#7942) Correct struct members whose names were camelCase rather than snake_case. This is a breaking API change, but does not break ABI. --- .../shell/platform/embedder/embedder.h | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/engine/src/flutter/shell/platform/embedder/embedder.h b/engine/src/flutter/shell/platform/embedder/embedder.h index 28e4fb4d85..735d4ff97b 100644 --- a/engine/src/flutter/shell/platform/embedder/embedder.h +++ b/engine/src/flutter/shell/platform/embedder/embedder.h @@ -335,19 +335,19 @@ typedef struct { // The set of semantics actions applicable to this node. FlutterSemanticsAction actions; // The position at which the text selection originates. - int32_t textSelectionBase; + int32_t text_selection_base; // The position at which the text selection terminates. - int32_t textSelectionExtent; + int32_t text_selection_extent; // The total number of scrollable children that contribute to semantics. - int32_t scrollChildren; + int32_t scroll_child_count; // The index of the first visible semantic child of a scroll node. - int32_t scrollIndex; + int32_t scroll_index; // The current scrolling position in logical pixels if the node is scrollable. - double scrollPosition; + double scroll_position; // The maximum in-range value for |scrollPosition| if the node is scrollable. - double scrollExtentMax; + double scroll_extent_max; // The minimum in-range value for |scrollPosition| if the node is scrollable. - double scrollExtentMin; + double scroll_extent_min; // The elevation along the z-axis at which the rect of this semantics node is // located above its parent. double elevation; @@ -361,13 +361,13 @@ typedef struct { const char* value; // A value that |value| will have after a kFlutterSemanticsActionIncrease| // action has been performed. - const char* increasedValue; + const char* increased_value; // A value that |value| will have after a kFlutterSemanticsActionDecrease| // action has been performed. - const char* decreasedValue; + const char* decreased_value; // The reading direction for |label|, |value|, |hint|, |increasedValue|, and // |decreasedValue|. - FlutterTextDirection textDirection; + FlutterTextDirection text_direction; // The bounding box for this node in its coordinate system. FlutterRect rect; // The transform from this node's coordinate system to its parent's coordinate