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

Issue 2795543002: Add GetScreenBoundsRect to ui::AXPlatformNodeDelegate (Closed)

Created:
3 years, 8 months ago by dougt
Modified:
3 years, 8 months ago
Reviewers:
dmazzoni
CC:
chromium-reviews, aboxhall+watch_chromium.org, nektar+watch_chromium.org, jam, yuzo+watch_chromium.org, dougt+watch_chromium.org, darin-cc_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, tfarina, je_julie
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add GetScreenBoundsRect() to ui::AXPlatformNodeDelegate In converting accLocation() in BrowserAccessibility to use AXPlatformNode, we found that the simple model of using local coordinates plus a global offset just doesn't work. In Views we've been able to get away with this simple model because Views do not have the same nested transformations that the web can like rotation and scaling. This change also allows us to remove GetGlobalCoordinateOffset() as the x.() and y.() of the result of GetScreenBoundsRect() can be used instead. BUG=703369 Review-Url: https://codereview.chromium.org/2795543002 Cr-Commit-Position: refs/heads/master@{#462971} Committed: https://chromium.googlesource.com/chromium/src/+/365c1380f2e6f346ec267b48f9e238fce309ac38

Patch Set 1 #

Total comments: 1

Patch Set 2 : Remove GetGlobalCoordinateOffset #

Total comments: 3

Patch Set 3 : Add GetScreenBoundsRect() to ui::AXPlatformNodeDelegate #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -35 lines) Patch
M content/browser/accessibility/browser_accessibility.h View 1 2 2 chunks +1 line, -4 lines 0 comments Download
M content/browser/accessibility/browser_accessibility.cc View 1 2 2 chunks +8 lines, -13 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_win.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ui/accessibility/platform/ax_platform_node_base.cc View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M ui/accessibility/platform/ax_platform_node_delegate.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M ui/accessibility/platform/ax_platform_node_win.cc View 1 2 1 chunk +2 lines, -3 lines 0 comments Download
M ui/accessibility/platform/test_ax_node_wrapper.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ui/accessibility/platform/test_ax_node_wrapper.cc View 1 2 2 chunks +5 lines, -2 lines 0 comments Download
M ui/views/accessibility/native_view_accessibility_auralinux.cc View 1 2 1 chunk +1 line, -3 lines 1 comment Download
M ui/views/accessibility/native_view_accessibility_base.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ui/views/accessibility/native_view_accessibility_base.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M ui/views/accessibility/native_view_accessibility_unittest.cc View 1 2 1 chunk +3 lines, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 26 (17 generated)
dougt
dmazzoni, ptal.
3 years, 8 months ago (2017-04-01 04:32:47 UTC) #4
dougt
Oh, I should also say that I left most of the GetScreenBoundsRect() implementations empty. I ...
3 years, 8 months ago (2017-04-01 04:37:25 UTC) #5
dmazzoni
The name sounds great, but I'd prefer this to be a complete change that gets ...
3 years, 8 months ago (2017-04-03 05:19:56 UTC) #8
dougt
On 2017/04/03 05:19:56, dmazzoni wrote: > The name sounds great, but I'd prefer this to ...
3 years, 8 months ago (2017-04-04 00:13:21 UTC) #12
dmazzoni
I think we might have a misunderstanding still. I'm all in favor of getting there ...
3 years, 8 months ago (2017-04-04 15:05:19 UTC) #15
dmazzoni
Thanks, latest patchset lgtm! https://codereview.chromium.org/2795543002/diff/40001/ui/views/accessibility/native_view_accessibility_auralinux.cc File ui/views/accessibility/native_view_accessibility_auralinux.cc (right): https://codereview.chromium.org/2795543002/diff/40001/ui/views/accessibility/native_view_accessibility_auralinux.cc#newcode94 ui/views/accessibility/native_view_accessibility_auralinux.cc:94: gfx::Rect GetScreenBoundsRect() const override { ...
3 years, 8 months ago (2017-04-07 18:24:40 UTC) #20
dougt
On 2017/04/07 18:24:40, dmazzoni wrote: > Thanks, latest patchset lgtm! > > https://codereview.chromium.org/2795543002/diff/40001/ui/views/accessibility/native_view_accessibility_auralinux.cc > File ...
3 years, 8 months ago (2017-04-07 19:22:25 UTC) #21
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/2795543002/40001
3 years, 8 months ago (2017-04-07 19:23:27 UTC) #23
commit-bot: I haz the power
3 years, 8 months ago (2017-04-07 19:51:10 UTC) #26
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/365c1380f2e6f346ec267b48f9e2...

Powered by Google App Engine
This is Rietveld 408576698