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

Issue 1151523009: Forward accessibility events to the automation extension process. (Closed)

Created:
5 years, 6 months ago by dmazzoni
Modified:
5 years, 6 months ago
CC:
aboxhall+watch_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, darin-cc_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, extensions-reviews_chromium.org, jam, je_julie, nektar+watch_chromium.org, plundblad+watch_chromium.org, yuzo+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@step1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Forward accessibility events to the automation extension process. See bug for context. This patch adds code to keep track of extensions using the automation API that want to subscribe to accessibility events and implements an IPC to forward the accessibility events. The next CL will complete the implementation based on this new IPC and delete the code that forwards accessibility events using the extension event router. BUG=495323 Committed: https://crrev.com/a6ea68fcf2fb2de16fbe59fa731fb2b75b96c14d Cr-Commit-Position: refs/heads/master@{#333616}

Patch Set 1 #

Total comments: 24

Patch Set 2 : Address feedback, switch to message filter #

Patch Set 3 : Fix include order #

Patch Set 4 : Own a message filter rather than inheriting #

Total comments: 28

Patch Set 5 : Rebase #

Patch Set 6 : Address feedback #

Total comments: 2

Patch Set 7 : Fix one more lambda capture #

Patch Set 8 : Fix typo in GetSchemaAdditions #

Patch Set 9 : Handle case where RenderThread destroys AutomationMessageFilter first #

Unified diffs Side-by-side diffs Delta from patch set Stats (+454 lines, -46 lines) Patch
M chrome/browser/extensions/api/automation/automation_apitest.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
A chrome/browser/extensions/api/automation_internal/automation_event_router.h View 1 2 3 4 5 1 chunk +89 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/automation_internal/automation_event_router.cc View 1 2 3 4 5 6 1 chunk +139 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/automation_internal/automation_internal_api.cc View 1 2 3 4 5 5 chunks +21 lines, -2 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/automation_internal.idl View 1 2 chunks +10 lines, -2 lines 0 comments Download
M chrome/common/extensions/chrome_extension_messages.h View 1 2 3 4 5 2 chunks +26 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/automation_internal_custom_bindings.h View 1 2 3 3 chunks +17 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/automation_internal_custom_bindings.cc View 1 2 3 4 5 6 7 8 5 chunks +81 lines, -0 lines 0 comments Download
M chrome/renderer/resources/extensions/automation_custom_bindings.js View 1 2 3 4 5 6 7 4 chunks +19 lines, -10 lines 0 comments Download
M components/network_hints.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M components/network_hints/common/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M content/common/accessibility_messages.h View 1 chunk +0 lines, -29 lines 0 comments Download
M content/public/common/common_param_traits_macros.h View 2 chunks +32 lines, -0 lines 0 comments Download
M extensions/browser/extension_function.h View 1 2 3 4 5 2 chunks +11 lines, -0 lines 0 comments Download
M extensions/browser/extension_function.cc View 1 chunk +2 lines, -1 line 0 comments Download
M extensions/browser/extension_function_dispatcher.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 23 (8 generated)
dmazzoni
kalman, dtseng, aboxhall: Primary / all extensions and automation API code jam: components/ dcheng: chrome/common/extensions/chrome_extension_messages.h ...
5 years, 6 months ago (2015-06-02 21:54:32 UTC) #2
not at google - send to devlin
https://codereview.chromium.org/1151523009/diff/1/chrome/browser/extensions/api/automation_internal/automation_event_router.cc File chrome/browser/extensions/api/automation_internal/automation_event_router.cc (right): https://codereview.chromium.org/1151523009/diff/1/chrome/browser/extensions/api/automation_internal/automation_event_router.cc#newcode57 chrome/browser/extensions/api/automation_internal/automation_event_router.cc:57: AutomationListener* listener; it's nice to initialize pointers to nullptr ...
5 years, 6 months ago (2015-06-02 23:59:25 UTC) #3
jam
lgtm
5 years, 6 months ago (2015-06-03 04:05:55 UTC) #4
dmazzoni
https://codereview.chromium.org/1151523009/diff/1/chrome/browser/extensions/api/automation_internal/automation_event_router.cc File chrome/browser/extensions/api/automation_internal/automation_event_router.cc (right): https://codereview.chromium.org/1151523009/diff/1/chrome/browser/extensions/api/automation_internal/automation_event_router.cc#newcode57 chrome/browser/extensions/api/automation_internal/automation_event_router.cc:57: AutomationListener* listener; On 2015/06/02 23:59:24, kalman wrote: > it's ...
5 years, 6 months ago (2015-06-04 20:07:39 UTC) #5
not at google - send to devlin
lgtm with some minor factoring comments. https://codereview.chromium.org/1151523009/diff/60001/chrome/browser/extensions/api/automation_internal/automation_event_router.h File chrome/browser/extensions/api/automation_internal/automation_event_router.h (right): https://codereview.chromium.org/1151523009/diff/60001/chrome/browser/extensions/api/automation_internal/automation_event_router.h#newcode36 chrome/browser/extensions/api/automation_internal/automation_event_router.h:36: void AddListener(int listener_process_id, ...
5 years, 6 months ago (2015-06-04 23:03:29 UTC) #6
dcheng
https://codereview.chromium.org/1151523009/diff/60001/chrome/browser/extensions/api/automation_internal/automation_event_router.cc File chrome/browser/extensions/api/automation_internal/automation_event_router.cc (right): https://codereview.chromium.org/1151523009/diff/60001/chrome/browser/extensions/api/automation_internal/automation_event_router.cc#newcode50 chrome/browser/extensions/api/automation_internal/automation_event_router.cc:50: [=](AutomationListener& item) { We don't currently permit default captures: ...
5 years, 6 months ago (2015-06-06 00:00:52 UTC) #7
dmazzoni
https://codereview.chromium.org/1151523009/diff/60001/chrome/browser/extensions/api/automation_internal/automation_event_router.cc File chrome/browser/extensions/api/automation_internal/automation_event_router.cc (right): https://codereview.chromium.org/1151523009/diff/60001/chrome/browser/extensions/api/automation_internal/automation_event_router.cc#newcode50 chrome/browser/extensions/api/automation_internal/automation_event_router.cc:50: [=](AutomationListener& item) { On 2015/06/06 00:00:52, dcheng wrote: > ...
5 years, 6 months ago (2015-06-08 18:02:58 UTC) #8
dcheng
lgtm with a nit https://codereview.chromium.org/1151523009/diff/100001/chrome/browser/extensions/api/automation_internal/automation_event_router.cc File chrome/browser/extensions/api/automation_internal/automation_event_router.cc (right): https://codereview.chromium.org/1151523009/diff/100001/chrome/browser/extensions/api/automation_internal/automation_event_router.cc#newcode134 chrome/browser/extensions/api/automation_internal/automation_event_router.cc:134: [=](AutomationListener& item) { This lambda ...
5 years, 6 months ago (2015-06-08 18:07:05 UTC) #9
dmazzoni
https://codereview.chromium.org/1151523009/diff/100001/chrome/browser/extensions/api/automation_internal/automation_event_router.cc File chrome/browser/extensions/api/automation_internal/automation_event_router.cc (right): https://codereview.chromium.org/1151523009/diff/100001/chrome/browser/extensions/api/automation_internal/automation_event_router.cc#newcode134 chrome/browser/extensions/api/automation_internal/automation_event_router.cc:134: [=](AutomationListener& item) { On 2015/06/08 18:07:05, dcheng wrote: > ...
5 years, 6 months ago (2015-06-08 18:45:57 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1151523009/120001
5 years, 6 months ago (2015-06-08 18:48:13 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1151523009/140001
5 years, 6 months ago (2015-06-08 19:08:27 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/65411)
5 years, 6 months ago (2015-06-08 20:08:16 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1151523009/160001
5 years, 6 months ago (2015-06-09 22:52:31 UTC) #21
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years, 6 months ago (2015-06-10 00:17:17 UTC) #22
commit-bot: I haz the power
5 years, 6 months ago (2015-06-10 00:18:15 UTC) #23
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/a6ea68fcf2fb2de16fbe59fa731fb2b75b96c14d
Cr-Commit-Position: refs/heads/master@{#333616}

Powered by Google App Engine
This is Rietveld 408576698