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

Issue 203753002: Implement actions for Automation API. (Closed)

Created:
6 years, 9 months ago by David Tseng
Modified:
6 years, 8 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, joi+watch-content_chromium.org, darin-cc_chromium.org, chromium-apps-reviews_chromium.org, Peter Lundblad
Visibility:
Public.

Description

Implement actions for Automation API. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=261975 BUG=309681

Patch Set 1 #

Patch Set 2 : Initial patch. #

Total comments: 3

Patch Set 3 : Promote action IPC's up to public RWH header; add basic events. #

Patch Set 4 : Rebase. #

Patch Set 5 : Remove repricated API. #

Total comments: 40

Patch Set 6 : Address comments. #

Patch Set 7 : Remove braces #

Total comments: 3

Patch Set 8 : Rebase. #

Total comments: 16

Patch Set 9 : Lots of style cleanup. #

Total comments: 12

Patch Set 10 : Small js cleanup. #

Patch Set 11 : Rebase #

Patch Set 12 : Rebase again... #

Patch Set 13 : Fix bad merge. #

Patch Set 14 : Disable test on Mac. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+329 lines, -124 lines) Patch
M chrome/browser/extensions/api/automation/automation_apitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +7 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/automation_internal/automation_internal_api.h View 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/automation_internal/automation_internal_api.cc View 1 2 3 4 5 6 7 8 9 chunks +51 lines, -10 lines 0 comments Download
M chrome/common/extensions/api/automation.idl View 1 2 3 4 5 6 7 8 2 chunks +18 lines, -1 line 0 comments Download
M chrome/common/extensions/api/automation_internal.idl View 1 2 3 4 5 6 7 8 1 chunk +40 lines, -12 lines 0 comments Download
M chrome/renderer/resources/extensions/automation/automation_node.js View 1 2 3 4 5 6 7 8 9 3 chunks +78 lines, -14 lines 0 comments Download
M chrome/renderer/resources/extensions/automation/automation_tree.js View 1 2 3 4 5 6 7 8 5 chunks +29 lines, -33 lines 0 comments Download
M chrome/renderer/resources/extensions/automation_custom_bindings.js View 1 2 3 4 5 6 7 8 2 chunks +33 lines, -26 lines 0 comments Download
M chrome/test/data/extensions/api_test/automation/sanity_check/test.js View 1 2 1 chunk +16 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +5 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +9 lines, -24 lines 0 comments Download
M content/public/browser/ax_event_notification_details.h View 2 chunks +2 lines, -0 lines 0 comments Download
M content/public/browser/ax_event_notification_details.cc View 1 chunk +6 lines, -1 line 0 comments Download
M content/public/browser/render_widget_host.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +24 lines, -0 lines 0 comments Download
M extensions/browser/extension_function_histogram_value.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 65 (0 generated)
David Tseng
Still W.I.P. Sending out now with a question for @jam. Thanks. https://codereview.chromium.org/203753002/diff/20001/chrome/browser/extensions/api/automation_internal/automation_internal_api.cc File chrome/browser/extensions/api/automation_internal/automation_internal_api.cc (right): ...
6 years, 9 months ago (2014-03-24 22:46:37 UTC) #1
jam
https://codereview.chromium.org/203753002/diff/20001/chrome/browser/extensions/api/automation_internal/automation_internal_api.cc File chrome/browser/extensions/api/automation_internal/automation_internal_api.cc (right): https://codereview.chromium.org/203753002/diff/20001/chrome/browser/extensions/api/automation_internal/automation_internal_api.cc#newcode15 chrome/browser/extensions/api/automation_internal/automation_internal_api.cc:15: #include "content/browser/renderer_host/render_widget_host_impl.h" On 2014/03/24 22:46:37, David Tseng wrote: > ...
6 years, 9 months ago (2014-03-25 15:00:59 UTC) #2
David Tseng
https://codereview.chromium.org/203753002/diff/20001/chrome/browser/extensions/api/automation_internal/automation_internal_api.cc File chrome/browser/extensions/api/automation_internal/automation_internal_api.cc (right): https://codereview.chromium.org/203753002/diff/20001/chrome/browser/extensions/api/automation_internal/automation_internal_api.cc#newcode15 chrome/browser/extensions/api/automation_internal/automation_internal_api.cc:15: #include "content/browser/renderer_host/render_widget_host_impl.h" On 2014/03/25 15:01:00, jam wrote: > On ...
6 years, 9 months ago (2014-03-25 17:14:19 UTC) #3
David Tseng
@aboxhall and @dmazzoni, this is ready for a look/review. I had to add basic per ...
6 years, 8 months ago (2014-04-01 03:45:30 UTC) #4
dmazzoni
https://codereview.chromium.org/203753002/diff/100001/chrome/common/extensions/api/automation_internal.idl File chrome/common/extensions/api/automation_internal.idl (right): https://codereview.chromium.org/203753002/diff/100001/chrome/common/extensions/api/automation_internal.idl#newcode47 chrome/common/extensions/api/automation_internal.idl:47: // content/browser/accessibility/browser_accessibility_manager.h:BrowserAccessibilityDelegate nit: wrap to 80 chars https://codereview.chromium.org/203753002/diff/100001/chrome/common/extensions/api/automation_internal.idl#newcode69 chrome/common/extensions/api/automation_internal.idl:69: ...
6 years, 8 months ago (2014-04-01 17:05:24 UTC) #5
aboxhall
https://codereview.chromium.org/203753002/diff/100001/chrome/browser/extensions/api/automation_internal/automation_internal_api.cc File chrome/browser/extensions/api/automation_internal/automation_internal_api.cc (right): https://codereview.chromium.org/203753002/diff/100001/chrome/browser/extensions/api/automation_internal/automation_internal_api.cc#newcode90 chrome/browser/extensions/api/automation_internal/automation_internal_api.cc:90: int process_id = event.process_id; We may wish to consider ...
6 years, 8 months ago (2014-04-01 17:49:50 UTC) #6
aboxhall
https://codereview.chromium.org/203753002/diff/100001/content/browser/renderer_host/render_widget_host_impl.h File content/browser/renderer_host/render_widget_host_impl.h (right): https://codereview.chromium.org/203753002/diff/100001/content/browser/renderer_host/render_widget_host_impl.h#newcode422 content/browser/renderer_host/render_widget_host_impl.h:422: virtual void AccessibilitySetFocus(int object_id); Wait... where is the implementation ...
6 years, 8 months ago (2014-04-01 20:20:45 UTC) #7
aboxhall
On 2014/04/01 20:20:45, aboxhall wrote: > https://codereview.chromium.org/203753002/diff/100001/content/browser/renderer_host/render_widget_host_impl.h > File content/browser/renderer_host/render_widget_host_impl.h (right): > > https://codereview.chromium.org/203753002/diff/100001/content/browser/renderer_host/render_widget_host_impl.h#newcode422 > ...
6 years, 8 months ago (2014-04-01 20:21:42 UTC) #8
David Tseng
PTAL; thanks. https://codereview.chromium.org/203753002/diff/100001/chrome/browser/extensions/api/automation_internal/automation_internal_api.cc File chrome/browser/extensions/api/automation_internal/automation_internal_api.cc (right): https://codereview.chromium.org/203753002/diff/100001/chrome/browser/extensions/api/automation_internal/automation_internal_api.cc#newcode90 chrome/browser/extensions/api/automation_internal/automation_internal_api.cc:90: int process_id = event.process_id; On 2014/04/01 17:49:51, ...
6 years, 8 months ago (2014-04-01 21:27:14 UTC) #9
dmazzoni
lgtm
6 years, 8 months ago (2014-04-01 21:30:48 UTC) #10
aboxhall
lgtm https://codereview.chromium.org/203753002/diff/100001/chrome/test/data/extensions/api_test/automation/sanity_check/test.js File chrome/test/data/extensions/api_test/automation/sanity_check/test.js (right): https://codereview.chromium.org/203753002/diff/100001/chrome/test/data/extensions/api_test/automation/sanity_check/test.js#newcode100 chrome/test/data/extensions/api_test/automation/sanity_check/test.js:100: var okButton = tree.root.firstChild().firstChild(); On 2014/04/01 21:27:15, David ...
6 years, 8 months ago (2014-04-01 21:39:52 UTC) #11
David Tseng
https://codereview.chromium.org/203753002/diff/140001/chrome/common/extensions/api/automation_internal.idl File chrome/common/extensions/api/automation_internal.idl (right): https://codereview.chromium.org/203753002/diff/140001/chrome/common/extensions/api/automation_internal.idl#newcode71 chrome/common/extensions/api/automation_internal.idl:71: object opt_args); On 2014/04/01 21:39:52, aboxhall wrote: > Tabs ...
6 years, 8 months ago (2014-04-01 21:58:17 UTC) #12
aboxhall
lgtm https://codereview.chromium.org/203753002/diff/140001/chrome/common/extensions/api/automation_internal.idl File chrome/common/extensions/api/automation_internal.idl (right): https://codereview.chromium.org/203753002/diff/140001/chrome/common/extensions/api/automation_internal.idl#newcode71 chrome/common/extensions/api/automation_internal.idl:71: object opt_args); On 2014/04/01 21:58:18, David Tseng wrote: ...
6 years, 8 months ago (2014-04-01 22:05:08 UTC) #13
David Tseng
+ kalman kalman/jam, please take a look for OWNERS approval. @jam: content/* @kalman: I think ...
6 years, 8 months ago (2014-04-01 22:07:08 UTC) #14
not at google - send to devlin
sorry this took me so long https://codereview.chromium.org/203753002/diff/160001/chrome/browser/extensions/api/automation_internal/automation_internal_api.cc File chrome/browser/extensions/api/automation_internal/automation_internal_api.cc (right): https://codereview.chromium.org/203753002/diff/160001/chrome/browser/extensions/api/automation_internal/automation_internal_api.cc#newcode253 chrome/browser/extensions/api/automation_internal/automation_internal_api.cc:253: EXTENSION_FUNCTION_VALIDATE(args_->GetInteger(2, &automation_node_id)); the ...
6 years, 8 months ago (2014-04-02 21:52:14 UTC) #15
aboxhall
https://codereview.chromium.org/203753002/diff/160001/chrome/common/extensions/api/automation.idl File chrome/common/extensions/api/automation.idl (right): https://codereview.chromium.org/203753002/diff/160001/chrome/common/extensions/api/automation.idl#newcode11 chrome/common/extensions/api/automation.idl:11: // TODO(dtseng/aboxhall): Make this take an |automation.Event| param. On ...
6 years, 8 months ago (2014-04-02 21:57:25 UTC) #16
not at google - send to devlin
On 2014/04/02 21:57:25, aboxhall wrote: > https://codereview.chromium.org/203753002/diff/160001/chrome/common/extensions/api/automation.idl > File chrome/common/extensions/api/automation.idl (right): > > https://codereview.chromium.org/203753002/diff/160001/chrome/common/extensions/api/automation.idl#newcode11 > ...
6 years, 8 months ago (2014-04-02 21:59:33 UTC) #17
not at google - send to devlin
On 2014/04/02 21:59:33, kalman wrote: > On 2014/04/02 21:57:25, aboxhall wrote: > > > https://codereview.chromium.org/203753002/diff/160001/chrome/common/extensions/api/automation.idl ...
6 years, 8 months ago (2014-04-02 22:00:17 UTC) #18
aboxhall
https://codereview.chromium.org/203753002/diff/160001/chrome/renderer/resources/extensions/automation/automation_node.js File chrome/renderer/resources/extensions/automation/automation_node.js (right): https://codereview.chromium.org/203753002/diff/160001/chrome/renderer/resources/extensions/automation/automation_node.js#newcode82 chrome/renderer/resources/extensions/automation/automation_node.js:82: // TODO(dtseng/aboxhall): Check this impl against spec. On 2014/04/02 ...
6 years, 8 months ago (2014-04-02 22:01:14 UTC) #19
not at google - send to devlin
https://codereview.chromium.org/203753002/diff/160001/chrome/renderer/resources/extensions/automation/automation_node.js File chrome/renderer/resources/extensions/automation/automation_node.js (right): https://codereview.chromium.org/203753002/diff/160001/chrome/renderer/resources/extensions/automation/automation_node.js#newcode82 chrome/renderer/resources/extensions/automation/automation_node.js:82: // TODO(dtseng/aboxhall): Check this impl against spec. > That ...
6 years, 8 months ago (2014-04-02 22:09:39 UTC) #20
David Tseng
https://codereview.chromium.org/203753002/diff/160001/chrome/renderer/resources/extensions/automation/automation_node.js File chrome/renderer/resources/extensions/automation/automation_node.js (right): https://codereview.chromium.org/203753002/diff/160001/chrome/renderer/resources/extensions/automation/automation_node.js#newcode82 chrome/renderer/resources/extensions/automation/automation_node.js:82: // TODO(dtseng/aboxhall): Check this impl against spec. On 2014/04/02 ...
6 years, 8 months ago (2014-04-02 22:14:55 UTC) #21
David Tseng
https://codereview.chromium.org/203753002/diff/160001/chrome/browser/extensions/api/automation_internal/automation_internal_api.cc File chrome/browser/extensions/api/automation_internal/automation_internal_api.cc (right): https://codereview.chromium.org/203753002/diff/160001/chrome/browser/extensions/api/automation_internal/automation_internal_api.cc#newcode253 chrome/browser/extensions/api/automation_internal/automation_internal_api.cc:253: EXTENSION_FUNCTION_VALIDATE(args_->GetInteger(2, &automation_node_id)); On 2014/04/02 21:52:14, kalman wrote: > the ...
6 years, 8 months ago (2014-04-03 01:27:40 UTC) #22
jam
lgtm
6 years, 8 months ago (2014-04-03 17:24:33 UTC) #23
not at google - send to devlin
just trivial comments left, lgtm, though the changes to make the event structured isn't a ...
6 years, 8 months ago (2014-04-03 18:57:12 UTC) #24
aboxhall
https://codereview.chromium.org/203753002/diff/180001/chrome/browser/extensions/api/automation_internal/automation_internal_api.cc File chrome/browser/extensions/api/automation_internal/automation_internal_api.cc (right): https://codereview.chromium.org/203753002/diff/180001/chrome/browser/extensions/api/automation_internal/automation_internal_api.cc#newcode88 chrome/browser/extensions/api/automation_internal/automation_internal_api.cc:88: axTreeUpdate->SetString("eventType", ToString(iter->event_type)); On 2014/04/03 18:57:13, kalman wrote: > you ...
6 years, 8 months ago (2014-04-03 19:06:30 UTC) #25
not at google - send to devlin
https://codereview.chromium.org/203753002/diff/180001/chrome/browser/extensions/api/automation_internal/automation_internal_api.cc File chrome/browser/extensions/api/automation_internal/automation_internal_api.cc (right): https://codereview.chromium.org/203753002/diff/180001/chrome/browser/extensions/api/automation_internal/automation_internal_api.cc#newcode88 chrome/browser/extensions/api/automation_internal/automation_internal_api.cc:88: axTreeUpdate->SetString("eventType", ToString(iter->event_type)); > This seems outside of scope for ...
6 years, 8 months ago (2014-04-03 19:08:01 UTC) #26
David Tseng
https://codereview.chromium.org/203753002/diff/180001/chrome/browser/extensions/api/automation_internal/automation_internal_api.cc File chrome/browser/extensions/api/automation_internal/automation_internal_api.cc (right): https://codereview.chromium.org/203753002/diff/180001/chrome/browser/extensions/api/automation_internal/automation_internal_api.cc#newcode88 chrome/browser/extensions/api/automation_internal/automation_internal_api.cc:88: axTreeUpdate->SetString("eventType", ToString(iter->event_type)); On 2014/04/03 18:57:13, kalman wrote: > you ...
6 years, 8 months ago (2014-04-03 23:05:18 UTC) #27
David Tseng
The CQ bit was checked by dtseng@chromium.org
6 years, 8 months ago (2014-04-03 23:10:31 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dtseng@chromium.org/203753002/200001
6 years, 8 months ago (2014-04-03 23:10:40 UTC) #29
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-03 23:11:01 UTC) #30
commit-bot: I haz the power
Failed to apply patch for content/browser/renderer_host/render_view_host_impl.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 8 months ago (2014-04-03 23:11:03 UTC) #31
David Tseng
The CQ bit was checked by dtseng@chromium.org
6 years, 8 months ago (2014-04-03 23:21:03 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dtseng@chromium.org/203753002/220001
6 years, 8 months ago (2014-04-03 23:21:34 UTC) #33
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-03 23:46:32 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on win_chromium_compile_dbg
6 years, 8 months ago (2014-04-03 23:46:33 UTC) #35
David Tseng
The CQ bit was checked by dtseng@chromium.org
6 years, 8 months ago (2014-04-03 23:52:19 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dtseng@chromium.org/203753002/220001
6 years, 8 months ago (2014-04-03 23:53:05 UTC) #37
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-03 23:59:54 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on win_chromium_compile_dbg
6 years, 8 months ago (2014-04-03 23:59:54 UTC) #39
David Tseng
The CQ bit was checked by dtseng@chromium.org
6 years, 8 months ago (2014-04-04 12:03:00 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dtseng@chromium.org/203753002/220001
6 years, 8 months ago (2014-04-04 12:03:25 UTC) #41
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-04 12:03:55 UTC) #42
commit-bot: I haz the power
Failed to apply patch for extensions/browser/extension_function_histogram_value.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 8 months ago (2014-04-04 12:03:56 UTC) #43
David Tseng
The CQ bit was checked by dtseng@chromium.org
6 years, 8 months ago (2014-04-04 16:18:51 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dtseng@chromium.org/203753002/240001
6 years, 8 months ago (2014-04-04 16:20:50 UTC) #45
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-04 16:27:21 UTC) #46
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on win_chromium_compile_dbg
6 years, 8 months ago (2014-04-04 16:27:21 UTC) #47
not at google - send to devlin
(still lgtm, just following up) https://codereview.chromium.org/203753002/diff/180001/chrome/browser/extensions/api/automation_internal/automation_internal_api.cc File chrome/browser/extensions/api/automation_internal/automation_internal_api.cc (right): https://codereview.chromium.org/203753002/diff/180001/chrome/browser/extensions/api/automation_internal/automation_internal_api.cc#newcode88 chrome/browser/extensions/api/automation_internal/automation_internal_api.cc:88: axTreeUpdate->SetString("eventType", ToString(iter->event_type)); On 2014/04/03 ...
6 years, 8 months ago (2014-04-04 16:30:55 UTC) #48
not at google - send to devlin
(still lgtm, just following up)
6 years, 8 months ago (2014-04-04 16:30:58 UTC) #49
David Tseng
https://codereview.chromium.org/203753002/diff/180001/chrome/browser/extensions/api/automation_internal/automation_internal_api.cc File chrome/browser/extensions/api/automation_internal/automation_internal_api.cc (right): https://codereview.chromium.org/203753002/diff/180001/chrome/browser/extensions/api/automation_internal/automation_internal_api.cc#newcode88 chrome/browser/extensions/api/automation_internal/automation_internal_api.cc:88: axTreeUpdate->SetString("eventType", ToString(iter->event_type)); On 2014/04/04 16:30:57, kalman wrote: > On ...
6 years, 8 months ago (2014-04-04 17:02:24 UTC) #50
David Tseng
The CQ bit was checked by dtseng@chromium.org
6 years, 8 months ago (2014-04-04 17:06:56 UTC) #51
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dtseng@chromium.org/203753002/240001
6 years, 8 months ago (2014-04-04 17:07:01 UTC) #52
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-04 17:46:09 UTC) #53
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on mac_chromium_rel
6 years, 8 months ago (2014-04-04 17:46:10 UTC) #54
David Tseng
The CQ bit was checked by dtseng@chromium.org
6 years, 8 months ago (2014-04-04 17:55:20 UTC) #55
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dtseng@chromium.org/203753002/260001
6 years, 8 months ago (2014-04-04 17:55:31 UTC) #56
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-04 20:18:52 UTC) #57
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on mac_chromium_rel
6 years, 8 months ago (2014-04-04 20:18:53 UTC) #58
David Tseng
The CQ bit was checked by dtseng@chromium.org
6 years, 8 months ago (2014-04-04 22:06:40 UTC) #59
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dtseng@chromium.org/203753002/260001
6 years, 8 months ago (2014-04-04 22:06:48 UTC) #60
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-05 00:29:58 UTC) #61
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on mac_chromium_rel
6 years, 8 months ago (2014-04-05 00:29:59 UTC) #62
David Tseng
The CQ bit was checked by dtseng@chromium.org
6 years, 8 months ago (2014-04-05 01:50:38 UTC) #63
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dtseng@chromium.org/203753002/280001
6 years, 8 months ago (2014-04-05 01:50:49 UTC) #64
commit-bot: I haz the power
6 years, 8 months ago (2014-04-05 07:27:11 UTC) #65
Message was sent while issue was closed.
Change committed as 261975

Powered by Google App Engine
This is Rietveld 408576698