Map scroll actions for native ARC support

Bug: 744715
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: Ib0a14452e833e09b6c63b328822fcacaf2954000
Reviewed-on: https://chromium-review.googlesource.com/611098
Reviewed-by: Ilya Sherman <[email protected]>
Reviewed-by: Jorge Lucangeli Obes <[email protected]>
Reviewed-by: Ken Rockot <[email protected]>
Reviewed-by: Michael Giuffrida <[email protected]>
Reviewed-by: Dominic Mazzoni <[email protected]>
Commit-Queue: David Tseng <[email protected]>
Cr-Commit-Position: refs/heads/master@{#496413}
diff --git a/ui/accessibility/PRESUBMIT.py b/ui/accessibility/PRESUBMIT.py
index ffd876cb..31b9a6e 100644
--- a/ui/accessibility/PRESUBMIT.py
+++ b/ui/accessibility/PRESUBMIT.py
@@ -88,6 +88,10 @@
   repo_root = input_api.change.RepositoryRoot()
   ax_enums = GetEnumsFromFile(os.path.join(repo_root, AX_IDL))
   automation_enums = GetEnumsFromFile(os.path.join(repo_root, AUTOMATION_IDL))
+
+  # Focused state only exists in automation.
+  automation_enums['StateType'].remove('focused')
+
   errs = []
   CheckMatchingEnum(ax_enums, 'AXRole', automation_enums, 'RoleType', errs,
                     output_api)