Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(309)

Issue 2873373005: Add custom action support (Closed)

Created:
3 years, 7 months ago by yawano
Modified:
3 years, 6 months ago
CC:
chromium-reviews, elijahtaylor+arcwatch_chromium.org, dtseng+watch_chromium.org, oshima+watch_chromium.org, yusukes+watch_chromium.org, extensions-reviews_chromium.org, aboxhall+watch_chromium.org, jam, hidehiko+watch_chromium.org, nektar+watch_chromium.org, yuzo+watch_chromium.org, darin-cc_chromium.org, dougt+watch_chromium.org, lhchavez+watch_chromium.org, dmazzoni+watch_chromium.org, victorhsieh+watch_chromium.org, chromium-apps-reviews_chromium.org, je_julie, davemoore+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add custom action support - This CL extends chrome.automation API to support custom actions. - Proposal to extend chrome.automation API: https://docs.google.com/document/d/1Gw-2kyCF5AoPotX9V3A0sWtrrSlatVxEdtFOEnSGM_U/edit - This CL implements custom action support in Android windows. Note that we need to land Android side CL as well. BUG=702659 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2873373005 Cr-Commit-Position: refs/heads/master@{#482187} Committed: https://chromium.googlesource.com/chromium/src/+/b87aed4000a7e2824a8146891cc733bba653879c

Patch Set 1 #

Patch Set 2 : Rebase. #

Total comments: 8

Patch Set 3 : Rebase. #

Patch Set 4 : Implement the rest part. #

Patch Set 5 : Address comments. #

Patch Set 6 : Fix a few files. #

Total comments: 12

Patch Set 7 : Rebase. #

Patch Set 8 : Address comments. #

Patch Set 9 : A few fixes. #

Patch Set 10 : Do not show actions menu if there is no custom action. #

Patch Set 11 : Fix format. #

Total comments: 13

Patch Set 12 : Address comments. #

Patch Set 13 : Update an extern for automation.idl. #

Patch Set 14 : Remove unused enum value. #

Total comments: 5

Patch Set 15 : Move node_id into AccessibilityActionData. #

Patch Set 16 : Removed MinVersion from struct. #

Total comments: 6

Patch Set 17 : Address comments. #

Patch Set 18 : Add annotations. #

Total comments: 4

Patch Set 19 : Address comments. #

Total comments: 2

Patch Set 20 : Rebase. #

Patch Set 21 : Migrate to DataObjectBuilder. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+323 lines, -13 lines) Patch
M chrome/browser/chromeos/arc/accessibility/arc_accessibility_helper_bridge.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +12 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/arc/accessibility/ax_tree_source_arc.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +50 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/automation_internal/automation_internal_api.cc View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/cvox2/background/panel.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/strings/chromevox_strings.grd View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/automation.idl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +11 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/automation_internal.idl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +10 lines, -3 lines 0 comments Download
M chrome/common/extensions/chrome_extension_messages.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/extensions/automation_internal_custom_bindings.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +29 lines, -0 lines 0 comments Download
M chrome/renderer/resources/extensions/automation/automation_node.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 5 chunks +18 lines, -0 lines 0 comments Download
M components/arc/common/accessibility_helper.mojom View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 6 chunks +36 lines, -6 lines 0 comments Download
M content/public/common/common_param_traits_macros.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/accessibility/render_accessibility_impl.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M third_party/closure_compiler/externs/automation.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +23 lines, -0 lines 0 comments Download
M ui/accessibility/ax_action_data.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M ui/accessibility/ax_action_data.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M ui/accessibility/ax_enums.idl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +15 lines, -1 line 0 comments Download
M ui/accessibility/ax_node_data.h View 1 2 3 chunks +10 lines, -0 lines 0 comments Download
M ui/accessibility/ax_node_data.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 8 chunks +59 lines, -0 lines 0 comments Download
M ui/accessibility/ax_tree.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +6 lines, -0 lines 0 comments Download
M ui/accessibility/ax_tree.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 61 (18 generated)
yawano
This is a WIP CL to add support for custom actions. I'm uploading WIP CL ...
3 years, 7 months ago (2017-05-11 10:39:41 UTC) #2
David Tseng
Here's a quick first pass. I'll rebase on top of everything once I get the ...
3 years, 7 months ago (2017-05-15 15:20:00 UTC) #3
yawano
Thank you! https://codereview.chromium.org/2873373005/diff/20001/ui/accessibility/ax_enums.idl File ui/accessibility/ax_enums.idl (right): https://codereview.chromium.org/2873373005/diff/20001/ui/accessibility/ax_enums.idl#newcode541 ui/accessibility/ax_enums.idl:541: custom_action_descriptions I think adding string list attribute ...
3 years, 7 months ago (2017-05-15 23:18:16 UTC) #4
David Tseng
https://codereview.chromium.org/2873373005/diff/20001/chrome/common/extensions/api/automation.idl File chrome/common/extensions/api/automation.idl (right): https://codereview.chromium.org/2873373005/diff/20001/chrome/common/extensions/api/automation.idl#newcode455 chrome/common/extensions/api/automation.idl:455: // An array of custom actions. We'll also need ...
3 years, 7 months ago (2017-05-16 22:18:55 UTC) #5
David Tseng
https://codereview.chromium.org/2873373005/diff/20001/chrome/renderer/extensions/automation_internal_custom_bindings.cc File chrome/renderer/extensions/automation_internal_custom_bindings.cc (right): https://codereview.chromium.org/2873373005/diff/20001/chrome/renderer/extensions/automation_internal_custom_bindings.cc#newcode757 chrome/renderer/extensions/automation_internal_custom_bindings.cc:757: result.SetUndefined(); I would actually NOTREACHED here.
3 years, 7 months ago (2017-05-16 22:33:23 UTC) #6
yawano
This CL is now ready for review. PTAL. Thank you! FYI: API review for this ...
3 years, 6 months ago (2017-06-02 09:02:39 UTC) #9
dmazzoni
https://codereview.chromium.org/2873373005/diff/100001/chrome/browser/resources/chromeos/chromevox/strings/chromevox_strings.grd File chrome/browser/resources/chromeos/chromevox/strings/chromevox_strings.grd (right): https://codereview.chromium.org/2873373005/diff/100001/chrome/browser/resources/chromeos/chromevox/strings/chromevox_strings.grd#newcode2519 chrome/browser/resources/chromeos/chromevox/strings/chromevox_strings.grd:2519: Custom actions This is fine for this change, but ...
3 years, 6 months ago (2017-06-06 03:06:00 UTC) #10
dmazzoni
Note: you may need to rebase automation_internal_custom_bindings when this change lands: https://chromium-review.googlesource.com/c/524243
3 years, 6 months ago (2017-06-06 03:17:01 UTC) #11
David Tseng
https://codereview.chromium.org/2873373005/diff/100001/chrome/browser/resources/chromeos/chromevox/cvox2/background/panel.js File chrome/browser/resources/chromeos/chromevox/cvox2/background/panel.js (right): https://codereview.chromium.org/2873373005/diff/100001/chrome/browser/resources/chromeos/chromevox/cvox2/background/panel.js#newcode456 chrome/browser/resources/chromeos/chromevox/cvox2/background/panel.js:456: } else { I would prefer not adding the ...
3 years, 6 months ago (2017-06-06 18:12:39 UTC) #12
yawano
https://codereview.chromium.org/2873373005/diff/100001/chrome/browser/resources/chromeos/chromevox/strings/chromevox_strings.grd File chrome/browser/resources/chromeos/chromevox/strings/chromevox_strings.grd (right): https://codereview.chromium.org/2873373005/diff/100001/chrome/browser/resources/chromeos/chromevox/strings/chromevox_strings.grd#newcode2519 chrome/browser/resources/chromeos/chromevox/strings/chromevox_strings.grd:2519: Custom actions On 2017/06/06 18:12:39, David Tseng wrote: > ...
3 years, 6 months ago (2017-06-07 09:30:05 UTC) #13
yawano
https://codereview.chromium.org/2873373005/diff/100001/chrome/browser/resources/chromeos/chromevox/cvox2/background/panel.js File chrome/browser/resources/chromeos/chromevox/cvox2/background/panel.js (right): https://codereview.chromium.org/2873373005/diff/100001/chrome/browser/resources/chromeos/chromevox/cvox2/background/panel.js#newcode456 chrome/browser/resources/chromeos/chromevox/cvox2/background/panel.js:456: } else { On 2017/06/06 18:12:39, David Tseng wrote: ...
3 years, 6 months ago (2017-06-08 09:25:29 UTC) #14
David Tseng
https://codereview.chromium.org/2873373005/diff/200001/chrome/common/extensions/api/automation.idl File chrome/common/extensions/api/automation.idl (right): https://codereview.chromium.org/2873373005/diff/200001/chrome/common/extensions/api/automation.idl#newcode722 chrome/common/extensions/api/automation.idl:722: static void performCustomAction(CustomAction customAction); Wait, this is the _public_ ...
3 years, 6 months ago (2017-06-08 17:21:59 UTC) #15
yawano
https://codereview.chromium.org/2873373005/diff/200001/chrome/common/extensions/api/automation.idl File chrome/common/extensions/api/automation.idl (right): https://codereview.chromium.org/2873373005/diff/200001/chrome/common/extensions/api/automation.idl#newcode722 chrome/common/extensions/api/automation.idl:722: static void performCustomAction(CustomAction customAction); Yes, this is public API. ...
3 years, 6 months ago (2017-06-09 01:05:14 UTC) #16
yawano
https://codereview.chromium.org/2873373005/diff/200001/components/arc/common/accessibility_helper.mojom File components/arc/common/accessibility_helper.mojom (right): https://codereview.chromium.org/2873373005/diff/200001/components/arc/common/accessibility_helper.mojom#newcode211 components/arc/common/accessibility_helper.mojom:211: [MinVersion=3]PerformCustomAction@3(int32 id, int32 custom_action_id); I would prefer to keep ...
3 years, 6 months ago (2017-06-09 08:03:02 UTC) #17
David Tseng
https://codereview.chromium.org/2873373005/diff/200001/components/arc/common/accessibility_helper.mojom File components/arc/common/accessibility_helper.mojom (right): https://codereview.chromium.org/2873373005/diff/200001/components/arc/common/accessibility_helper.mojom#newcode211 components/arc/common/accessibility_helper.mojom:211: [MinVersion=3]PerformCustomAction@3(int32 id, int32 custom_action_id); On 2017/06/09 08:03:01, yawano wrote: ...
3 years, 6 months ago (2017-06-09 18:01:32 UTC) #18
David Tseng
https://codereview.chromium.org/2873373005/diff/200001/chrome/common/extensions/api/automation.idl File chrome/common/extensions/api/automation.idl (right): https://codereview.chromium.org/2873373005/diff/200001/chrome/common/extensions/api/automation.idl#newcode722 chrome/common/extensions/api/automation.idl:722: static void performCustomAction(CustomAction customAction); On 2017/06/09 01:05:14, yawano wrote: ...
3 years, 6 months ago (2017-06-09 18:09:54 UTC) #19
yawano
https://codereview.chromium.org/2873373005/diff/200001/components/arc/common/accessibility_helper.mojom File components/arc/common/accessibility_helper.mojom (right): https://codereview.chromium.org/2873373005/diff/200001/components/arc/common/accessibility_helper.mojom#newcode211 components/arc/common/accessibility_helper.mojom:211: [MinVersion=3]PerformCustomAction@3(int32 id, int32 custom_action_id); My point was that it ...
3 years, 6 months ago (2017-06-12 01:46:52 UTC) #20
David Tseng
https://codereview.chromium.org/2873373005/diff/200001/components/arc/common/accessibility_helper.mojom File components/arc/common/accessibility_helper.mojom (right): https://codereview.chromium.org/2873373005/diff/200001/components/arc/common/accessibility_helper.mojom#newcode211 components/arc/common/accessibility_helper.mojom:211: [MinVersion=3]PerformCustomAction@3(int32 id, int32 custom_action_id); On 2017/06/12 01:46:52, yawano wrote: ...
3 years, 6 months ago (2017-06-12 16:55:01 UTC) #21
yawano
Changed automation.idl interface to take customActionId. Also changed PerformAction in mojom interface to take AccessibilityActionData. ...
3 years, 6 months ago (2017-06-13 06:58:47 UTC) #22
Luis Héctor Chávez
drive-by https://codereview.chromium.org/2873373005/diff/260001/components/arc/common/accessibility_helper.mojom File components/arc/common/accessibility_helper.mojom (right): https://codereview.chromium.org/2873373005/diff/260001/components/arc/common/accessibility_helper.mojom#newcode161 components/arc/common/accessibility_helper.mojom:161: [MinVersion=3]map<AccessibilityStringListProperty, array<string>>? string_list_properties; nit: 80col https://codereview.chromium.org/2873373005/diff/260001/components/arc/common/accessibility_helper.mojom#newcode220 components/arc/common/accessibility_helper.mojom:220: [MinVersion=3]PerformAction@3(int32 ...
3 years, 6 months ago (2017-06-13 15:00:22 UTC) #24
David Tseng
https://codereview.chromium.org/2873373005/diff/260001/components/arc/common/accessibility_helper.mojom File components/arc/common/accessibility_helper.mojom (right): https://codereview.chromium.org/2873373005/diff/260001/components/arc/common/accessibility_helper.mojom#newcode220 components/arc/common/accessibility_helper.mojom:220: [MinVersion=3]PerformAction@3(int32 node_id, AccessibilityActionData action_data); nit: Could just make node_id ...
3 years, 6 months ago (2017-06-13 17:02:05 UTC) #25
yawano
https://codereview.chromium.org/2873373005/diff/260001/components/arc/common/accessibility_helper.mojom File components/arc/common/accessibility_helper.mojom (right): https://codereview.chromium.org/2873373005/diff/260001/components/arc/common/accessibility_helper.mojom#newcode161 components/arc/common/accessibility_helper.mojom:161: [MinVersion=3]map<AccessibilityStringListProperty, array<string>>? string_list_properties; On 2017/06/13 15:00:22, Luis Héctor Chávez ...
3 years, 6 months ago (2017-06-14 01:13:07 UTC) #26
yawano
PTAL. meacer@: - chrome/common/extensions/chrome_extension_messages.h - components/arc/common/accessibility_helper.mojom - content/public/common/common_param_traits_macros.h rdevlin.cronin@: - chrome/common/extensions/api/automation.idl - chrome/common/extensions/api/automation_internal.idl - third_party/closure_compiler/externs/automation.js ...
3 years, 6 months ago (2017-06-14 01:59:48 UTC) #28
yawano
Uploaded a new patch set to remove MinVersion= from struct in accessibility_helper.mojom.
3 years, 6 months ago (2017-06-14 04:01:25 UTC) #29
Devlin
https://codereview.chromium.org/2873373005/diff/300001/chrome/common/extensions/api/automation_internal.idl File chrome/common/extensions/api/automation_internal.idl (right): https://codereview.chromium.org/2873373005/diff/300001/chrome/common/extensions/api/automation_internal.idl#newcode55 chrome/common/extensions/api/automation_internal.idl:55: dictionary PerformCustomActionParams { Is this used? https://codereview.chromium.org/2873373005/diff/300001/chrome/renderer/resources/extensions/automation/automation_node.js File chrome/renderer/resources/extensions/automation/automation_node.js ...
3 years, 6 months ago (2017-06-14 18:23:11 UTC) #30
yawano
https://codereview.chromium.org/2873373005/diff/300001/chrome/common/extensions/api/automation_internal.idl File chrome/common/extensions/api/automation_internal.idl (right): https://codereview.chromium.org/2873373005/diff/300001/chrome/common/extensions/api/automation_internal.idl#newcode55 chrome/common/extensions/api/automation_internal.idl:55: dictionary PerformCustomActionParams { On 2017/06/14 18:23:10, Devlin wrote: > ...
3 years, 6 months ago (2017-06-15 10:43:21 UTC) #31
David Tseng
lgtm Just a few few small comments; otherwise, good to go. https://codereview.chromium.org/2873373005/diff/340001/chrome/browser/chromeos/arc/accessibility/ax_tree_source_arc.cc File chrome/browser/chromeos/arc/accessibility/ax_tree_source_arc.cc (right): ...
3 years, 6 months ago (2017-06-15 16:02:24 UTC) #32
Devlin
automation.idl, automation_internal.idl, third_party/closure_compiler/externs/automation.js lgtm
3 years, 6 months ago (2017-06-15 22:39:21 UTC) #33
yawano
https://codereview.chromium.org/2873373005/diff/340001/chrome/browser/chromeos/arc/accessibility/ax_tree_source_arc.cc File chrome/browser/chromeos/arc/accessibility/ax_tree_source_arc.cc (right): https://codereview.chromium.org/2873373005/diff/340001/chrome/browser/chromeos/arc/accessibility/ax_tree_source_arc.cc#newcode397 chrome/browser/chromeos/arc/accessibility/ax_tree_source_arc.cc:397: using AXIntListProperty = arc::mojom::AccessibilityIntListProperty; On 2017/06/15 16:02:24, David Tseng ...
3 years, 6 months ago (2017-06-16 02:24:02 UTC) #34
yawano
meacer@: ping.
3 years, 6 months ago (2017-06-16 02:24:28 UTC) #35
meacer
Sorry for the delay. Can you please expand the CL description and mention that this ...
3 years, 6 months ago (2017-06-16 22:36:56 UTC) #36
yawano
https://codereview.chromium.org/2873373005/diff/360001/components/arc/common/accessibility_helper.mojom File components/arc/common/accessibility_helper.mojom (right): https://codereview.chromium.org/2873373005/diff/360001/components/arc/common/accessibility_helper.mojom#newcode73 components/arc/common/accessibility_helper.mojom:73: CONTEXT_CLICK, On 2017/06/16 22:36:55, meacer wrote: > Sorry, not ...
3 years, 6 months ago (2017-06-20 05:30:49 UTC) #39
yawano
On 2017/06/20 05:30:49, yawano wrote: > https://codereview.chromium.org/2873373005/diff/360001/components/arc/common/accessibility_helper.mojom > File components/arc/common/accessibility_helper.mojom (right): > > https://codereview.chromium.org/2873373005/diff/360001/components/arc/common/accessibility_helper.mojom#newcode73 > ...
3 years, 6 months ago (2017-06-22 01:09:17 UTC) #40
meacer
On 2017/06/22 01:09:17, yawano wrote: > On 2017/06/20 05:30:49, yawano wrote: > > > https://codereview.chromium.org/2873373005/diff/360001/components/arc/common/accessibility_helper.mojom ...
3 years, 6 months ago (2017-06-22 01:10:58 UTC) #41
yawano
On 2017/06/22 01:10:58, meacer wrote: > On 2017/06/22 01:09:17, yawano wrote: > > On 2017/06/20 ...
3 years, 6 months ago (2017-06-22 01:20:35 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2873373005/360001
3 years, 6 months ago (2017-06-22 01:54:12 UTC) #45
commit-bot: I haz the power
Try jobs failed on following builders: ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-xcode-clang/builds/123040) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 6 months ago (2017-06-22 01:56:48 UTC) #47
yawano
dtseng@: Rebased the CL and had to migrate to DataObjectBuilder. PTAL automation_internal_custom_bindings.cc. Thank you!
3 years, 6 months ago (2017-06-22 04:33:55 UTC) #50
dmazzoni
lgtm for changes to automation_internal_custom_bindings.cc (and lgtm in general)
3 years, 6 months ago (2017-06-23 18:22:13 UTC) #53
David Tseng
lgtm lgtm in for latest changes
3 years, 6 months ago (2017-06-23 18:28:52 UTC) #54
yawano
On 2017/06/23 18:28:52, David Tseng wrote: > lgtm > > lgtm in for latest changes ...
3 years, 6 months ago (2017-06-26 00:50:21 UTC) #55
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2873373005/400001
3 years, 6 months ago (2017-06-26 00:50:47 UTC) #58
commit-bot: I haz the power
3 years, 6 months ago (2017-06-26 02:55:47 UTC) #61
Message was sent while issue was closed.
Committed patchset #21 (id:400001) as
https://chromium.googlesource.com/chromium/src/+/b87aed4000a7e2824a8146891cc7...

Powered by Google App Engine
This is Rietveld 408576698