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

Issue 1003283002: Enable chrome.automation.getDesktop on all aura platforms. (Closed)

Created:
5 years, 9 months ago by David Tseng
Modified:
5 years, 9 months ago
Reviewers:
dmazzoni, oshima, sky
CC:
chromium-reviews, extensions-reviews_chromium.org, je_julie(Not used), sadrul, nkostylev+watch_chromium.org, plundblad+watch_chromium.org, aboxhall+watch_chromium.org, nektar+watch_chromium.org, yuzo+watch_chromium.org, kalyank, arv+watch_chromium.org, oshima+watch_chromium.org, dtseng+watch_chromium.org, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, dmazzoni+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Enable chrome.automation.getDesktop on all aura platforms. - on Chrome OS, continue to enumerate all Aura windows when building the desktop tree via the Ash shell. - on all other Aura platforms, lazily hook up top level windows that have been created in our object cache. This works by only presenting cached windows as children of the desktop node. Since serialization walks up the tree, we are guaranteed windows in the cache whenever a descendant view has an event fired upon it. - allow ChromeVox to traverse the desktop automation tree on all platforms. TEST=build ChromeVox webstore extension. Run it on linux chromium. Verify views-based UI reads. Committed: https://crrev.com/35b188a996e59c65787207818c7b90d70007f03d Cr-Commit-Position: refs/heads/master@{#322666}

Patch Set 1 #

Total comments: 10

Patch Set 2 : enableFrame #

Patch Set 3 : Fix tests. #

Patch Set 4 : GetInstanceDontCreate #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Total comments: 1

Patch Set 8 : eliminiate shell #

Patch Set 9 : Move everything to c/b/u/aura/accessibility #

Patch Set 10 : Move tests back to c/b/u/ash/a #

Patch Set 11 : #

Total comments: 9

Patch Set 12 : Fix tests. #

Patch Set 13 : Fix tests and mac compile. #

Patch Set 14 : Fix desktop load tabs hopefully... #

Patch Set 15 : Make things not flake. #

Patch Set 16 : Use aura #

Patch Set 17 : Actions. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+226 lines, -906 lines) Patch
M chrome/browser/chromeos/input_method/accessibility.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/existing_user_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/automation/automation_apitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +16 lines, -3 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 10 11 12 13 14 15 5 chunks +9 lines, -12 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs View 1 2 3 4 5 6 7 1 chunk +0 lines, -23 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/manifest.json.jinja2 View 2 chunks +1 line, -5 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/tools/publish_webstore_extension.py View 1 chunk +0 lines, -1 line 0 comments Download
D chrome/browser/ui/ash/accessibility/automation_manager_ash.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -83 lines 0 comments Download
D chrome/browser/ui/ash/accessibility/automation_manager_ash.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -129 lines 0 comments Download
D chrome/browser/ui/ash/accessibility/ax_root_obj_wrapper.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -43 lines 0 comments Download
M chrome/browser/ui/ash/accessibility/ax_root_obj_wrapper.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -72 lines 0 comments Download
D chrome/browser/ui/ash/accessibility/ax_tree_source_ash.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -58 lines 0 comments Download
D chrome/browser/ui/ash/accessibility/ax_tree_source_ash.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -130 lines 0 comments Download
D chrome/browser/ui/ash/accessibility/ax_tree_source_ash_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -163 lines 0 comments Download
A + chrome/browser/ui/ash/accessibility/ax_tree_source_aura_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +44 lines, -44 lines 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate_chromeos.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -3 lines 0 comments Download
A + chrome/browser/ui/aura/accessibility/OWNERS View 1 2 3 4 5 6 7 8 9 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/browser/ui/aura/accessibility/automation_manager_aura.h View 1 2 3 4 5 6 7 8 4 chunks +18 lines, -14 lines 0 comments Download
A + chrome/browser/ui/aura/accessibility/automation_manager_aura.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +41 lines, -29 lines 0 comments Download
A + chrome/browser/ui/aura/accessibility/ax_root_obj_wrapper.h View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -3 lines 0 comments Download
A + chrome/browser/ui/aura/accessibility/ax_root_obj_wrapper.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -15 lines 0 comments Download
A + chrome/browser/ui/aura/accessibility/ax_tree_source_aura.h View 1 2 3 4 5 6 7 8 3 chunks +8 lines, -9 lines 0 comments Download
A + chrome/browser/ui/aura/accessibility/ax_tree_source_aura.cc View 1 2 3 4 5 6 7 8 3 chunks +23 lines, -23 lines 0 comments Download
M chrome/browser/ui/views/chrome_views_delegate.cc View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +6 lines, -6 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/automation/tests/desktop/common.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +22 lines, -8 lines 0 comments Download
M chrome/test/data/extensions/api_test/automation/tests/desktop/desktop.js View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/automation/tests/desktop/load_tabs.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +8 lines, -22 lines 0 comments Download
M chrome/test/data/extensions/api_test/automation/tests/desktop/manifest.json View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/accessibility/ax_aura_obj_cache.h View 1 2 3 4 5 6 2 chunks +4 lines, -0 lines 0 comments Download
M ui/views/accessibility/ax_aura_obj_cache.cc View 1 2 3 4 5 6 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (5 generated)
David Tseng
Ready for an initial look. There's an issue with the EnvObserver such that we don't ...
5 years, 9 months ago (2015-03-13 18:53:22 UTC) #2
dmazzoni
looks fine, just one question https://codereview.chromium.org/1003283002/diff/1/chrome/browser/ui/ash/accessibility/ax_root_obj_wrapper.cc File chrome/browser/ui/ash/accessibility/ax_root_obj_wrapper.cc (right): https://codereview.chromium.org/1003283002/diff/1/chrome/browser/ui/ash/accessibility/ax_root_obj_wrapper.cc#newcode85 chrome/browser/ui/ash/accessibility/ax_root_obj_wrapper.cc:85: host_ = host; Can't ...
5 years, 9 months ago (2015-03-13 20:01:43 UTC) #3
sadrul
+oshima@ https://codereview.chromium.org/1003283002/diff/1/chrome/browser/ui/ash/accessibility/ax_root_obj_wrapper.cc File chrome/browser/ui/ash/accessibility/ax_root_obj_wrapper.cc (right): https://codereview.chromium.org/1003283002/diff/1/chrome/browser/ui/ash/accessibility/ax_root_obj_wrapper.cc#newcode56 chrome/browser/ui/ash/accessibility/ax_root_obj_wrapper.cc:56: return; This essentially means a WindowTreeHost was created ...
5 years, 9 months ago (2015-03-13 20:07:01 UTC) #5
oshima
https://codereview.chromium.org/1003283002/diff/1/chrome/browser/ui/ash/accessibility/ax_root_obj_wrapper.cc File chrome/browser/ui/ash/accessibility/ax_root_obj_wrapper.cc (right): https://codereview.chromium.org/1003283002/diff/1/chrome/browser/ui/ash/accessibility/ax_root_obj_wrapper.cc#newcode56 chrome/browser/ui/ash/accessibility/ax_root_obj_wrapper.cc:56: return; On 2015/03/13 20:07:01, sadrul wrote: > This essentially ...
5 years, 9 months ago (2015-03-13 20:40:03 UTC) #6
David Tseng
https://codereview.chromium.org/1003283002/diff/1/chrome/browser/ui/ash/accessibility/ax_root_obj_wrapper.cc File chrome/browser/ui/ash/accessibility/ax_root_obj_wrapper.cc (right): https://codereview.chromium.org/1003283002/diff/1/chrome/browser/ui/ash/accessibility/ax_root_obj_wrapper.cc#newcode56 chrome/browser/ui/ash/accessibility/ax_root_obj_wrapper.cc:56: return; On 2015/03/13 20:40:03, oshima wrote: > On 2015/03/13 ...
5 years, 9 months ago (2015-03-13 21:33:53 UTC) #7
oshima
https://codereview.chromium.org/1003283002/diff/1/chrome/browser/ui/ash/accessibility/ax_root_obj_wrapper.cc File chrome/browser/ui/ash/accessibility/ax_root_obj_wrapper.cc (right): https://codereview.chromium.org/1003283002/diff/1/chrome/browser/ui/ash/accessibility/ax_root_obj_wrapper.cc#newcode56 chrome/browser/ui/ash/accessibility/ax_root_obj_wrapper.cc:56: return; On 2015/03/13 21:33:53, David Tseng wrote: > On ...
5 years, 9 months ago (2015-03-13 21:58:47 UTC) #8
David Tseng
https://codereview.chromium.org/1003283002/diff/1/chrome/browser/ui/ash/accessibility/ax_root_obj_wrapper.cc File chrome/browser/ui/ash/accessibility/ax_root_obj_wrapper.cc (right): https://codereview.chromium.org/1003283002/diff/1/chrome/browser/ui/ash/accessibility/ax_root_obj_wrapper.cc#newcode85 chrome/browser/ui/ash/accessibility/ax_root_obj_wrapper.cc:85: host_ = host; On 2015/03/13 21:58:47, oshima wrote: > ...
5 years, 9 months ago (2015-03-16 17:00:52 UTC) #9
David Tseng
https://codereview.chromium.org/1003283002/diff/1/chrome/browser/ui/ash/accessibility/ax_root_obj_wrapper.cc File chrome/browser/ui/ash/accessibility/ax_root_obj_wrapper.cc (right): https://codereview.chromium.org/1003283002/diff/1/chrome/browser/ui/ash/accessibility/ax_root_obj_wrapper.cc#newcode56 chrome/browser/ui/ash/accessibility/ax_root_obj_wrapper.cc:56: return; On 2015/03/13 21:58:47, oshima wrote: > On 2015/03/13 ...
5 years, 9 months ago (2015-03-16 17:28:48 UTC) #10
oshima
On 2015/03/16 17:28:48, David Tseng wrote: > https://codereview.chromium.org/1003283002/diff/1/chrome/browser/ui/ash/accessibility/ax_root_obj_wrapper.cc > File chrome/browser/ui/ash/accessibility/ax_root_obj_wrapper.cc (right): > > https://codereview.chromium.org/1003283002/diff/1/chrome/browser/ui/ash/accessibility/ax_root_obj_wrapper.cc#newcode56 ...
5 years, 9 months ago (2015-03-17 18:38:26 UTC) #11
David Tseng
PTAL.
5 years, 9 months ago (2015-03-19 21:13:15 UTC) #12
oshima
https://codereview.chromium.org/1003283002/diff/120001/chrome/browser/ui/ash/accessibility/ax_root_obj_wrapper.cc File chrome/browser/ui/ash/accessibility/ax_root_obj_wrapper.cc (right): https://codereview.chromium.org/1003283002/diff/120001/chrome/browser/ui/ash/accessibility/ax_root_obj_wrapper.cc#newcode52 chrome/browser/ui/ash/accessibility/ax_root_obj_wrapper.cc:52: #if defined(OS_CHROMEOS) I still don't quite understand why you ...
5 years, 9 months ago (2015-03-20 22:31:43 UTC) #13
David Tseng
Linux Aura. [16251:16251:0320/155716:FATAL:shell.cc(202)] Check failed: instance_. #0 0x7f8ac784392e base::debug::StackTrace::StackTrace() #1 0x7f8ac96e75d3 ash::Shell::GetInstance() #2 0x7f8ac956253d AXRootObjWrapper::GetChildren() ...
5 years, 9 months ago (2015-03-20 22:59:10 UTC) #14
oshima
On 2015/03/20 22:59:10, David Tseng wrote: > Linux Aura. > > [16251:16251:0320/155716:FATAL:shell.cc(202)] Check failed: instance_. ...
5 years, 9 months ago (2015-03-20 23:16:47 UTC) #15
David Tseng
oshima@chromium.org writes: > On 2015/03/20 22:59:10, David Tseng wrote: >> Linux Aura. > >> [16251:16251:0320/155716:FATAL:shell.cc(202)] ...
5 years, 9 months ago (2015-03-23 16:04:22 UTC) #16
oshima
On 2015/03/23 16:04:22, David Tseng wrote: > mailto:oshima@chromium.org writes: > > > On 2015/03/20 22:59:10, ...
5 years, 9 months ago (2015-03-23 19:21:49 UTC) #17
chromium-reviews
PTAL. I went ahead and used your concerns as an excuse to eliminate AutomationManagerAsh's dependency ...
5 years, 9 months ago (2015-03-24 18:31:06 UTC) #18
David Tseng
PTAL. Went ahead and moved c/b/u/ash/a/* to c/b/u/aura/a/ and renamed accordingly. A few notes: - ...
5 years, 9 months ago (2015-03-25 18:05:54 UTC) #19
oshima
looks good to me overall. On 2015/03/25 18:05:54, David Tseng wrote: > PTAL. Went ahead ...
5 years, 9 months ago (2015-03-25 22:16:53 UTC) #20
David Tseng
oshima, Moved test files back to c/b/u/ash/accessibility. + sky for c/b/u/v. dmazzoni, think we're ready ...
5 years, 9 months ago (2015-03-26 16:25:17 UTC) #22
sky
chrome/browser/ui/views/chrome_views_delegate.cc LGTM
5 years, 9 months ago (2015-03-26 17:47:59 UTC) #23
dmazzoni
https://codereview.chromium.org/1003283002/diff/200001/chrome/browser/extensions/api/automation/automation_apitest.cc File chrome/browser/extensions/api/automation/automation_apitest.cc (right): https://codereview.chromium.org/1003283002/diff/200001/chrome/browser/extensions/api/automation/automation_apitest.cc#newcode170 chrome/browser/extensions/api/automation/automation_apitest.cc:170: // http://crbug.com/435449 nit: remove this line since the test ...
5 years, 9 months ago (2015-03-26 18:44:58 UTC) #24
David Tseng
https://codereview.chromium.org/1003283002/diff/200001/chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs File chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs (left): https://codereview.chromium.org/1003283002/diff/200001/chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs#oldcode73 chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs:73: TEST_F('BackgroundTest', 'DesktopFocus', function() { On 2015/03/26 18:44:58, dmazzoni wrote: ...
5 years, 9 months ago (2015-03-26 23:20:48 UTC) #25
dmazzoni
lgtm https://codereview.chromium.org/1003283002/diff/200001/chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs File chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs (left): https://codereview.chromium.org/1003283002/diff/200001/chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs#oldcode73 chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs:73: TEST_F('BackgroundTest', 'DesktopFocus', function() { On 2015/03/26 23:20:47, David ...
5 years, 9 months ago (2015-03-26 23:32:04 UTC) #26
David Tseng
https://codereview.chromium.org/1003283002/diff/200001/chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs File chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs (left): https://codereview.chromium.org/1003283002/diff/200001/chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs#oldcode73 chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs:73: TEST_F('BackgroundTest', 'DesktopFocus', function() { On 2015/03/26 23:32:04, dmazzoni wrote: ...
5 years, 9 months ago (2015-03-27 17:04:38 UTC) #27
dmazzoni
> > How about if we add a helper binding that can focus the status ...
5 years, 9 months ago (2015-03-27 18:56:33 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1003283002/310001
5 years, 9 months ago (2015-03-27 20:56:01 UTC) #31
commit-bot: I haz the power
Committed patchset #17 (id:310001)
5 years, 9 months ago (2015-03-27 22:56:37 UTC) #32
commit-bot: I haz the power
Patchset 17 (id:??) landed as https://crrev.com/35b188a996e59c65787207818c7b90d70007f03d Cr-Commit-Position: refs/heads/master@{#322666}
5 years, 9 months ago (2015-03-27 22:57:37 UTC) #33
scheib
5 years, 9 months ago (2015-03-28 00:23:41 UTC) #34
Message was sent while issue was closed.
On 2015/03/27 22:57:37, I haz the power (commit-bot) wrote:
> Patchset 17 (id:??) landed as
> https://crrev.com/35b188a996e59c65787207818c7b90d70007f03d
> Cr-Commit-Position: refs/heads/master@{#322666}

Manually reverted in https://codereview.chromium.org/1040863002/

Powered by Google App Engine
This is Rietveld 408576698