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

Issue 1365433002: Add setSelection function to automation API. (Closed)

Created:
5 years, 3 months ago by Peter Lundblad
Modified:
5 years, 2 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, sadrul, plundblad+watch_chromium.org, mlamouri+watch-content_chromium.org, aboxhall+watch_chromium.org, jam, creis+watch_chromium.org, nasko+codewatch_chromium.org, nektar+watch_chromium.org, yuzo+watch_chromium.org, je_julie, darin-cc_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, kalyank, mkwst+moarreviews-renderer_chromium.org, chromium-apps-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@nobrailleautostartintests
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add setSelection function to automation API. The new chrome.automation.setSelection function takes two (node, offset) pairs, allowing selection to be set over a range in a tree. BUG=523099 Committed: https://crrev.com/96201023fc5bcabb1f409d9d23fb9b53fcc44262 Cr-Commit-Position: refs/heads/master@{#352339}

Patch Set 1 #

Patch Set 2 : Fix Mac and unit test build. #

Patch Set 3 : rebase #

Total comments: 20

Patch Set 4 : git cl format #

Patch Set 5 : Addressed many comments from David. #

Patch Set 6 : git cl format #

Patch Set 7 : Fix inverted logic. #

Patch Set 8 : Fix style and remove console.log #

Total comments: 1

Patch Set 9 : Change setDocumentSelection to take named arguments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+279 lines, -116 lines) Patch
M chrome/browser/extensions/api/automation/automation_apitest.cc View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/automation_internal/automation_action_adapter.h View 1 chunk +6 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/automation_internal/automation_internal_api.cc View 1 2 3 2 chunks +9 lines, -5 lines 0 comments Download
M chrome/browser/ui/aura/accessibility/automation_manager_aura.h View 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/ui/aura/accessibility/automation_manager_aura.cc View 1 2 3 4 1 chunk +9 lines, -2 lines 0 comments Download
M chrome/common/extensions/api/automation.idl View 1 2 3 4 5 6 7 8 4 chunks +37 lines, -1 line 0 comments Download
M chrome/common/extensions/api/automation_internal.idl View 1 2 3 4 1 chunk +6 lines, -3 lines 0 comments Download
M chrome/renderer/resources/extensions/automation/automation_node.js View 1 2 3 4 5 6 7 1 chunk +6 lines, -3 lines 0 comments Download
M chrome/renderer/resources/extensions/automation_custom_bindings.js View 1 2 3 4 5 6 7 8 1 chunk +17 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/api_test/automation/sites/document_selection.html View 1 2 3 4 5 6 7 1 chunk +3 lines, -6 lines 0 comments Download
M chrome/test/data/extensions/api_test/automation/tests/desktop/actions.js View 1 2 3 4 2 chunks +1 line, -9 lines 0 comments Download
M chrome/test/data/extensions/api_test/automation/tests/desktop/common.js View 1 2 3 4 1 chunk +10 lines, -24 lines 0 comments Download
M chrome/test/data/extensions/api_test/automation/tests/desktop/load_tabs.js View 1 2 3 4 2 chunks +29 lines, -26 lines 0 comments Download
M chrome/test/data/extensions/api_test/automation/tests/tabs/common.js View 1 2 3 4 5 6 1 chunk +8 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/api_test/automation/tests/tabs/document_selection.html View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
A chrome/test/data/extensions/api_test/automation/tests/tabs/document_selection.js View 1 2 3 4 5 6 7 8 1 chunk +66 lines, -0 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_cocoa.mm View 1 2 3 4 5 6 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_manager.h View 1 chunk +4 lines, -2 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_manager.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_manager_unittest.cc View 1 1 chunk +4 lines, -3 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.h View 1 2 3 4 5 6 1 chunk +4 lines, -3 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 6 1 chunk +9 lines, -4 lines 0 comments Download
M content/common/accessibility_messages.h View 1 chunk +6 lines, -5 lines 0 comments Download
M content/public/browser/render_frame_host.h View 1 chunk +4 lines, -2 lines 0 comments Download
M content/renderer/accessibility/renderer_accessibility.h View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M content/renderer/accessibility/renderer_accessibility.cc View 1 2 3 4 5 6 2 chunks +20 lines, -7 lines 0 comments Download

Messages

Total messages: 21 (5 generated)
Peter Lundblad
dtseng: for all of the cl. nasko: for content/browser/frame_host/... content/public/browser/render_frame_host.h content/common/accessibility_messages.h kalman: for the api ...
5 years, 3 months ago (2015-09-23 08:29:42 UTC) #2
nasko
I've only looked at content. The code looks good, but style is off. I would ...
5 years, 3 months ago (2015-09-23 16:08:35 UTC) #3
dmazzoni
lgtm
5 years, 3 months ago (2015-09-23 17:57:05 UTC) #5
David Tseng
https://codereview.chromium.org/1365433002/diff/40001/chrome/browser/extensions/api/automation/automation_apitest.cc File chrome/browser/extensions/api/automation/automation_apitest.cc (right): https://codereview.chromium.org/1365433002/diff/40001/chrome/browser/extensions/api/automation/automation_apitest.cc#newcode170 chrome/browser/extensions/api/automation/automation_apitest.cc:170: IN_PROC_BROWSER_TEST_F(AutomationApiTest, DesktopSelection) { FYI; I used desktop mainly to ...
5 years, 3 months ago (2015-09-23 17:57:42 UTC) #6
David Tseng
https://codereview.chromium.org/1365433002/diff/40001/chrome/renderer/resources/extensions/automation_custom_bindings.js File chrome/renderer/resources/extensions/automation_custom_bindings.js (right): https://codereview.chromium.org/1365433002/diff/40001/chrome/renderer/resources/extensions/automation_custom_bindings.js#newcode139 chrome/renderer/resources/extensions/automation_custom_bindings.js:139: (anchorNodeImpl.id !== focusNodeImpl.id)) { Also, forgot to add that ...
5 years, 3 months ago (2015-09-23 19:10:42 UTC) #7
Peter Lundblad
nasko@chromium.org writes: > I've only looked at content. The code looks good, but style is ...
5 years, 2 months ago (2015-09-25 14:45:48 UTC) #8
Peter Lundblad
dtseng@chromium.org via codereview.chromium.org writes: > > > > > https://codereview.chromium.org/1365433002/diff/40001/chrome/browser/extensions/api/automation/automation_apitest.cc > File chrome/browser/extensions/api/automation/automation_apitest.cc > (right): ...
5 years, 2 months ago (2015-09-25 14:59:40 UTC) #9
Peter Lundblad
dtseng@chromium.org writes: > > https://codereview.chromium.org/1365433002/diff/40001/chrome/renderer/resources/extensions/automation_custom_bindings.js > File chrome/renderer/resources/extensions/automation_custom_bindings.js > (right): > > https://codereview.chromium.org/1365433002/diff/40001/chrome/renderer/resources/extensions/automation_custom_bindings.js#newcode139 > chrome/renderer/resources/extensions/automation_custom_bindings.js:139: ...
5 years, 2 months ago (2015-09-25 15:03:38 UTC) #10
David Tseng
lgtm https://codereview.chromium.org/1365433002/diff/40001/chrome/common/extension... > chrome/common/extensions/api/automation.idl:431: long? focusOffset; > Please document all of these -- they get ...
5 years, 2 months ago (2015-09-29 22:17:16 UTC) #11
nasko
content/ LGTM
5 years, 2 months ago (2015-09-30 17:33:02 UTC) #12
Peter Lundblad
@kalman, could you have a look at the api changes in the idl file?
5 years, 2 months ago (2015-10-05 11:28:49 UTC) #14
not at google - send to devlin
lgtm with a suggested API change. https://codereview.chromium.org/1365433002/diff/140001/chrome/common/extensions/api/automation.idl File chrome/common/extensions/api/automation.idl (right): https://codereview.chromium.org/1365433002/diff/140001/chrome/common/extensions/api/automation.idl#newcode582 chrome/common/extensions/api/automation.idl:582: long focusOffset); I'd ...
5 years, 2 months ago (2015-10-05 12:56:02 UTC) #15
Peter Lundblad
kalman@chromium.org writes: > lgtm with a suggested API change. > > > https://codereview.chromium.org/1365433002/diff/140001/chrome/common/extensions/api/automation.idl > File ...
5 years, 2 months ago (2015-10-05 14:59:05 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1365433002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1365433002/160001
5 years, 2 months ago (2015-10-05 15:02:20 UTC) #19
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years, 2 months ago (2015-10-05 17:27:51 UTC) #20
commit-bot: I haz the power
5 years, 2 months ago (2015-10-05 17:28:37 UTC) #21
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/96201023fc5bcabb1f409d9d23fb9b53fcc44262
Cr-Commit-Position: refs/heads/master@{#352339}

Powered by Google App Engine
This is Rietveld 408576698