|
|
Chromium Code Reviews|
Created:
4 years, 3 months ago by David Tseng Modified:
4 years, 2 months ago Reviewers:
dmazzoni CC:
aboxhall+watch_chromium.org, alemate+watch_chromium.org, arv+watch_chromium.org, chromium-reviews, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, je_julie, nektar+watch_chromium.org, oshima+watch_chromium.org, yuzo+watch_chromium.org Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionClean up AutomationPredicate
- widen what's a combobox
- define form fields in terms of other predicates (e.g. edit text, which picks up on content editables)
- add region as landmark
- remove some roles e.g. date/date time from form fields (we want to jump to their descendant controls).
BUG=647466, 623341
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
Committed: https://crrev.com/e22e1b6c0228978b6f3cb4bd5f1c52c53cf35af0
Cr-Commit-Position: refs/heads/master@{#422127}
Patch Set 1 : m #
Total comments: 2
Patch Set 2 : Address feedback. #Patch Set 3 : m #Patch Set 4 : Remove group from landmark predicate (too noisy...e.g. gmail). #Messages
Total messages: 21 (14 generated)
Description was changed from ========== Clean up AutomationPredicate ========== to ========== Clean up AutomationPredicate CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation ==========
Patchset #2 (id:20001) has been deleted
Patchset #1 (id:1) has been deleted
Description was changed from ========== Clean up AutomationPredicate CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation ========== to ========== Clean up AutomationPredicate - widen what's a combobox - define form fields in terms of other predicates (e.g. edit text, which picks up on content editables) - add group and region as landmarks - remove some roles e.g. date/date time from form fields (we want to jump to their descendant controls). BUG=647466 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation ==========
dtseng@chromium.org changed reviewers: + dmazzoni@chromium.org
https://codereview.chromium.org/2367883002/diff/40001/chrome/browser/resource... File chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_predicate.js (right): https://codereview.chromium.org/2367883002/diff/40001/chrome/browser/resource... chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_predicate.js:41: AutomationPredicate.roles_ = function(roles) { I think it's a little surprising to have a function called roles_ that can take predicates too. I don't want to hurt the nice brevity that this achieves, but it might be nice to do it in a way that's a bit more explicit. How about this idea: AutomationPredicate.roles_ matches one role or an array of roles (that doesn't seem unclear to me) AutomationPredicate.anyPredicate_ matches if any of the predicates match Then you could write formField like this: AutomationPredicate.formField = AutomationPredicate.anyPredicate_( AutomationPredicate.button, AutomationPredicate.comboBox, AutomationPredicate.editText, AutomationPredicate.roles_( [Role.checkBox, Role.listBox, Role.slider, Role.tab, Role.tree])); I think that'd be just as concise but a little easier to read. https://codereview.chromium.org/2367883002/diff/40001/chrome/browser/resource... chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_predicate.js:279: (node.role == Role.client || This looks like a great opportunity to make it more concise by using AutomationPredicate.roles_().
PTAL. Added AutomationPredicate.match which takes a object dict; can extend this as we go/as needed. -- You received this message because you are subscribed to the Google Groups "Chromium-reviews" group. To unsubscribe from this group and stop receiving emails from it, send an email to chromium-reviews+unsubscribe@chromium.org.
Description was changed from ========== Clean up AutomationPredicate - widen what's a combobox - define form fields in terms of other predicates (e.g. edit text, which picks up on content editables) - add group and region as landmarks - remove some roles e.g. date/date time from form fields (we want to jump to their descendant controls). BUG=647466 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation ========== to ========== Clean up AutomationPredicate - widen what's a combobox - define form fields in terms of other predicates (e.g. edit text, which picks up on content editables) - add group and region as landmarks - remove some roles e.g. date/date time from form fields (we want to jump to their descendant controls). BUG=647466,623341 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation ==========
Description was changed from ========== Clean up AutomationPredicate - widen what's a combobox - define form fields in terms of other predicates (e.g. edit text, which picks up on content editables) - add group and region as landmarks - remove some roles e.g. date/date time from form fields (we want to jump to their descendant controls). BUG=647466,623341 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation ========== to ========== Clean up AutomationPredicate - widen what's a combobox - define form fields in terms of other predicates (e.g. edit text, which picks up on content editables) - add region as landmark - remove some roles e.g. date/date time from form fields (we want to jump to their descendant controls). BUG=647466,623341 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation ==========
The CQ bit was checked by dtseng@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
lgtm
The CQ bit was checked by dtseng@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== Clean up AutomationPredicate - widen what's a combobox - define form fields in terms of other predicates (e.g. edit text, which picks up on content editables) - add region as landmark - remove some roles e.g. date/date time from form fields (we want to jump to their descendant controls). BUG=647466,623341 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation ========== to ========== Clean up AutomationPredicate - widen what's a combobox - define form fields in terms of other predicates (e.g. edit text, which picks up on content editables) - add region as landmark - remove some roles e.g. date/date time from form fields (we want to jump to their descendant controls). BUG=647466,623341 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation ==========
Message was sent while issue was closed.
Committed patchset #4 (id:90001)
Message was sent while issue was closed.
Description was changed from ========== Clean up AutomationPredicate - widen what's a combobox - define form fields in terms of other predicates (e.g. edit text, which picks up on content editables) - add region as landmark - remove some roles e.g. date/date time from form fields (we want to jump to their descendant controls). BUG=647466,623341 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation ========== to ========== Clean up AutomationPredicate - widen what's a combobox - define form fields in terms of other predicates (e.g. edit text, which picks up on content editables) - add region as landmark - remove some roles e.g. date/date time from form fields (we want to jump to their descendant controls). BUG=647466,623341 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/e22e1b6c0228978b6f3cb4bd5f1c52c53cf35af0 Cr-Commit-Position: refs/heads/master@{#422127} ==========
Message was sent while issue was closed.
Patchset 4 (id:??) landed as https://crrev.com/e22e1b6c0228978b6f3cb4bd5f1c52c53cf35af0 Cr-Commit-Position: refs/heads/master@{#422127} |
