From 2fa727154492c923d0ff7284a2b35d62f7442104 Mon Sep 17 00:00:00 2001 From: Chris Bracken Date: Thu, 7 Mar 2019 13:33:23 -0800 Subject: [PATCH] Update a11y word forward/back enum names This updates the FlutterSemanticsAction enumerator identifiers for the 'move cursor forward/back one word' actions (added in flutter/engine#8033) for consistency with the 'move cusor forward/back on character' identifiers. ABI compatibility is unaffected, but this with require the following change in any embedder making use of these fields: Rename: kFlutterSemanticsActionMoveCursorForwardByWordIndex to: kFlutterSemanticsActionMoveCursorForwardByWord Rename: kFlutterSemanticsActionMoveCursorBackwardByWordIndex to: kFlutterSemanticsActionMoveCursorBackwardByWord --- shell/platform/embedder/embedder.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shell/platform/embedder/embedder.h b/shell/platform/embedder/embedder.h index 103da739a2147..f3fa36d814505 100644 --- a/shell/platform/embedder/embedder.h +++ b/shell/platform/embedder/embedder.h @@ -98,9 +98,9 @@ typedef enum { // A request that the node should be dismissed. kFlutterSemanticsActionDismiss = 1 << 18, // Move the cursor forward by one word. - kFlutterSemanticsActionMoveCursorForwardByWordIndex = 1 << 19, + kFlutterSemanticsActionMoveCursorForwardByWord = 1 << 19, // Move the cursor backward by one word. - kFlutterSemanticsActionMoveCursorBackwardByWordIndex = 1 << 20, + kFlutterSemanticsActionMoveCursorBackwardByWord = 1 << 20, } FlutterSemanticsAction; // The set of properties that may be associated with a semantics node.