Add PRESUMIT for accessibility_mode_enums values |
||
Issue descriptionValues in content/common/accessibility_mode_enums.h need to be kept in sync with content/browser/resources/accessibility/accessibility.js. It's easy to forget and we should have a PRESUBMIT guarding against mistakes. This came up in https://codereview.chromium.org/2690653004/ and dmazzoni wrote: Things that need to be kept in sync are always a maintenance burden - especially when they cross language boundaries like this. How about doing one of the following two things: 1. Add a PRESUBMIT that fails if you try to modify content/common/accessibility_mode_enums.h without also modifying this file to match. You can use the one in ui/accessibility/ as a good example to copy. 2. Alternatively, have accessibility.js load the list of enums from C++ code in JSON, for example it would get
,
Jun 27 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/48db56bc090cfeb1b2f1a556f0d5f21413627dd3 commit 48db56bc090cfeb1b2f1a556f0d5f21413627dd3 Author: dougt <dougt@chromium.org> Date: Tue Jun 27 22:49:47 2017 Move AX Role predicates into ax_role_properties.h. In prep of moving more code from BrowserAccessibility to AXPlatformNode, there are a number of AXRole tests in the form of "Is this role a ____" hanging off of BrowserAccessibility and in BrowserAccessibilityManagerMac. What this CL does is adds a few more predicates in the UI:: namespace for this sort of testing. BUG= 692087 Review-Url: https://codereview.chromium.org/2962453002 Cr-Commit-Position: refs/heads/master@{#482770} [modify] https://crrev.com/48db56bc090cfeb1b2f1a556f0d5f21413627dd3/content/browser/accessibility/browser_accessibility.cc [modify] https://crrev.com/48db56bc090cfeb1b2f1a556f0d5f21413627dd3/content/browser/accessibility/browser_accessibility.h [modify] https://crrev.com/48db56bc090cfeb1b2f1a556f0d5f21413627dd3/content/browser/accessibility/browser_accessibility_android.cc [modify] https://crrev.com/48db56bc090cfeb1b2f1a556f0d5f21413627dd3/content/browser/accessibility/browser_accessibility_cocoa.mm [modify] https://crrev.com/48db56bc090cfeb1b2f1a556f0d5f21413627dd3/content/browser/accessibility/browser_accessibility_com_win.cc [modify] https://crrev.com/48db56bc090cfeb1b2f1a556f0d5f21413627dd3/content/browser/accessibility/browser_accessibility_manager_mac.mm [modify] https://crrev.com/48db56bc090cfeb1b2f1a556f0d5f21413627dd3/content/browser/accessibility/one_shot_accessibility_tree_search.cc [modify] https://crrev.com/48db56bc090cfeb1b2f1a556f0d5f21413627dd3/ui/accessibility/ax_role_properties.cc [modify] https://crrev.com/48db56bc090cfeb1b2f1a556f0d5f21413627dd3/ui/accessibility/ax_role_properties.h
,
Jul 13 2017
|
||
►
Sign in to add a comment |
||
Comment 1 by bugdroid1@chromium.org
, Jun 25 2017