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

Issue 2522543004: Add support for retrieving image thumbnails as part of the accessibility tree. (Closed)

Created:
4 years, 1 month ago by dmazzoni
Modified:
4 years ago
Reviewers:
Mike West, aboxhall
CC:
aboxhall+watch_chromium.org, aboxhall, blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, darin-cc_chromium.org, dglazkov+blink, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, haraken, jam, je_julie, kalyank, kinuko+watch, mlamouri+watch-content_chromium.org, nektar+watch_chromium.org, nektarios, sadrul, ultimatedbz, yuzo+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add support for retrieving image thumbnails as part of the accessibility tree. They're only fetched on demand for one element at a time, and they're scaled down to a given maximum size and then returned as a data url for simplicity. The intended purpose of this feature is for displaying graphics on a potentially future braille device, but it could be useful for other things too. BUG=655273 Committed: https://crrev.com/66181cb4955b94a6e7942fe785e6adad874459e7 Cr-Commit-Position: refs/heads/master@{#434227}

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Fix test failure and add automation apitest #

Total comments: 14

Patch Set 4 : Address feedback #

Patch Set 5 : Clarified maxSize #

Unified diffs Side-by-side diffs Delta from patch set Stats (+416 lines, -3 lines) Patch
M chrome/browser/extensions/api/automation/automation_apitest.cc View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/automation_internal/automation_internal_api.cc View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/browser/ui/aura/accessibility/automation_manager_aura.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/api/automation.idl View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/automation_internal.idl View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/renderer/resources/extensions/automation/automation_node.js View 1 2 3 chunks +8 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/automation/sites/image_data.html View 1 2 1 chunk +15 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/automation/tests/tabs/image_data.html View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/automation/tests/tabs/image_data.js View 1 2 1 chunk +52 lines, -0 lines 0 comments Download
M content/browser/accessibility/accessibility_action_browsertest.cc View 1 2 3 chunks +148 lines, -0 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_manager.h View 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_manager.cc View 1 1 chunk +13 lines, -0 lines 0 comments Download
M content/renderer/accessibility/blink_ax_tree_source.h View 1 2 3 2 chunks +19 lines, -2 lines 0 comments Download
M content/renderer/accessibility/blink_ax_tree_source.cc View 2 chunks +5 lines, -1 line 0 comments Download
M content/renderer/accessibility/render_accessibility_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/accessibility/render_accessibility_impl.cc View 1 2 2 chunks +20 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXLayoutObject.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp View 1 2 3 4 3 chunks +69 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXObject.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebAXObject.cpp View 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebAXObject.h View 3 chunks +4 lines, -0 lines 0 comments Download
M ui/accessibility/ax_enums.idl View 1 2 3 chunks +5 lines, -0 lines 0 comments Download
M ui/accessibility/ax_node_data.cc View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (20 generated)
dmazzoni
4 years, 1 month ago (2016-11-22 17:03:14 UTC) #12
aboxhall
https://codereview.chromium.org/2522543004/diff/40001/chrome/common/extensions/api/automation.idl File chrome/common/extensions/api/automation.idl (right): https://codereview.chromium.org/2522543004/diff/40001/chrome/common/extensions/api/automation.idl#newcode580 chrome/common/extensions/api/automation.idl:580: static void getImageData(long maxWidth, long maxHeight); As discussed, please ...
4 years, 1 month ago (2016-11-22 19:06:31 UTC) #13
dmazzoni
https://codereview.chromium.org/2522543004/diff/40001/chrome/common/extensions/api/automation.idl File chrome/common/extensions/api/automation.idl (right): https://codereview.chromium.org/2522543004/diff/40001/chrome/common/extensions/api/automation.idl#newcode580 chrome/common/extensions/api/automation.idl:580: static void getImageData(long maxWidth, long maxHeight); On 2016/11/22 19:06:31, ...
4 years, 1 month ago (2016-11-22 22:00:13 UTC) #17
aboxhall
lgtm https://codereview.chromium.org/2522543004/diff/40001/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp File third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp (right): https://codereview.chromium.org/2522543004/diff/40001/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp#newcode893 third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp:893: if (scale >= 1.0) On 2016/11/22 22:00:13, dmazzoni ...
4 years, 1 month ago (2016-11-22 22:04:51 UTC) #19
dmazzoni
https://codereview.chromium.org/2522543004/diff/40001/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp File third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp (right): https://codereview.chromium.org/2522543004/diff/40001/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp#newcode893 third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp:893: if (scale >= 1.0) On 2016/11/22 22:04:51, aboxhall wrote: ...
4 years, 1 month ago (2016-11-22 22:27:03 UTC) #20
dmazzoni
+mkwst for owners review
4 years, 1 month ago (2016-11-22 22:27:26 UTC) #22
Mike West
With the caveat that this doesn't seem like something we could reasonably expose to the ...
4 years ago (2016-11-23 13:04:07 UTC) #23
dmazzoni
On 2016/11/23 13:04:07, Mike West (slow) wrote: > With the caveat that this doesn't seem ...
4 years ago (2016-11-23 17:35:23 UTC) #24
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/2522543004/80001
4 years ago (2016-11-23 17:36:06 UTC) #27
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years ago (2016-11-23 19:45:27 UTC) #29
commit-bot: I haz the power
4 years ago (2016-11-23 19:48:14 UTC) #31
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/66181cb4955b94a6e7942fe785e6adad874459e7
Cr-Commit-Position: refs/heads/master@{#434227}

Powered by Google App Engine
This is Rietveld 408576698