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

Issue 2207573002: Implement 3 Mac accessibility parameterized attributes (Closed)

Created:
4 years, 4 months ago by dmazzoni
Modified:
4 years, 4 months ago
Reviewers:
nektarios, nektar
CC:
aboxhall+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, jam, je_julie, nektar+watch_chromium.org, yuzo+watch_chromium.org, Peter Beverloo
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement 3 Mac accessibility parameterized attributes This change implements support for AXBoundsForTextMarkerRange, AXTextMarkerRangeForUnorderedTextMarkers, and AXIndexForChildUIElement. The noticeable benefit of this change is that VoiceOver now draws its bounding box around the cursor or selection when you're typing or selecting in a text field. BUG=633598 Committed: https://crrev.com/958086533d06dfbd0f172405036e78be79ba283f Cr-Commit-Position: refs/heads/master@{#409712}

Patch Set 1 #

Patch Set 2 : Address feedback #

Patch Set 3 : Fix NSNumber return and indentation #

Patch Set 4 : Switched to enum #

Unified diffs Side-by-side diffs Delta from patch set Stats (+346 lines, -10 lines) Patch
M content/browser/accessibility/browser_accessibility_cocoa.mm View 1 2 3 6 chunks +105 lines, -10 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_manager.h View 1 2 3 2 chunks +13 lines, -0 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_manager.cc View 1 2 3 2 chunks +88 lines, -0 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_manager_unittest.cc View 1 2 3 2 chunks +132 lines, -0 lines 0 comments Download
M ui/accessibility/ax_enums.idl View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (20 generated)
dmazzoni
4 years, 4 months ago (2016-08-02 15:59:49 UTC) #3
nektarios
+ if ([attribute isEqualToString: + NSAccessibilityBoundsForTextMarkerRangeParameterizedAttribute]) { Is the indentation wrong here? + BrowserAccessibility* start_object; ...
4 years, 4 months ago (2016-08-03 15:28:14 UTC) #7
nektarios
+ if ([attribute isEqualToString: + NSAccessibilityTextMarkerRangeForUnorderedTextMarkersParameterizedAttribute]) { + if (![parameter isKindOfClass:[NSArray self]]) + return nil; ...
4 years, 4 months ago (2016-08-03 15:32:19 UTC) #8
nektarios
Re: AXIndexForChildUIElement I can't find it in the WebKit source code. git grep .*IndexForChildUIElement.*" I ...
4 years, 4 months ago (2016-08-03 15:42:03 UTC) #9
dmazzoni
On 2016/08/03 at 15:28:14, nektar wrote: > + if ([attribute isEqualToString: > + NSAccessibilityBoundsForTextMarkerRangeParameterizedAttribute]) { ...
4 years, 4 months ago (2016-08-03 18:28:39 UTC) #10
nektarios
+ BrowserAccessibilityCocoa* childCocoaObj = + (BrowserAccessibilityCocoa*)parameter; + BrowserAccessibility* child = [childCocoaObj browserAccessibility]; + if (!child) ...
4 years, 4 months ago (2016-08-03 19:13:15 UTC) #13
chromium-reviews
On 8/3/2016 2:28 PM, dmazzoni@chromium.org wrote: > On 2016/08/03 at 15:28:14, nektar wrote: > > ...
4 years, 4 months ago (2016-08-03 19:16:51 UTC) #14
chromium-reviews
> > BrowserAccessibilityManager::IsBeforeInTreeOrder > > Should we return an int here that will signify the ...
4 years, 4 months ago (2016-08-03 19:26:20 UTC) #15
dmazzoni
Take a look, I fixed the indentation and switched to an enum
4 years, 4 months ago (2016-08-03 20:55:42 UTC) #21
nektarios
+ + if ([attribute isEqualToString: + NSAccessibilityTextMarkerRangeForUnorderedTextMarkersParameterizedAttribute]) { + if (![parameter isKindOfClass:[NSArray class]]) + return ...
4 years, 4 months ago (2016-08-03 22:25:56 UTC) #26
nektarios
lgtm
4 years, 4 months ago (2016-08-03 22:26:05 UTC) #28
dmazzoni
Latest version has this line immediately after the one you commented on: if (2 != ...
4 years, 4 months ago (2016-08-04 03:11:13 UTC) #29
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/2207573002/60001
4 years, 4 months ago (2016-08-04 03:11:32 UTC) #31
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 4 months ago (2016-08-04 03:17:32 UTC) #32
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/958086533d06dfbd0f172405036e78be79ba283f Cr-Commit-Position: refs/heads/master@{#409712}
4 years, 4 months ago (2016-08-04 03:20:02 UTC) #34
Peter Beverloo
I'm seeing the following non-fatal error in my local build after this CL: [528/29014] ACTION ...
4 years, 4 months ago (2016-08-04 11:01:47 UTC) #35
dmazzoni
4 years, 4 months ago (2016-08-04 15:44:00 UTC) #37
Message was sent while issue was closed.
Trying this: https://codereview.chromium.org/2207643005


On Thu, Aug 4, 2016 at 4:01 AM <peter@chromium.org> wrote:

> I'm seeing the following non-fatal error in my local build after this CL:
>
> [528/29014] ACTION
>
> //ui/accessibility:ax_gen_schema_generator(//build/toolchain/linux:clang_x64)
> ../../ui/accessibility/ax_enums.idl(522) : Error : Unexpected comment after
> symbol after.
>
> I can also see this in the log files of the build bots, i.e.
>
>
>
https://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium...
>
> So presumable everyone will get it. Would you mind moving the comment or
> fixing
> the IDL parser to mute the build output? (It's the only line when building
> "all"
> for me.)
>
> https://codereview.chromium.org/2207573002/
>
> --
> You received this message because you are subscribed to the Google Groups
> "Chromium-reviews" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to chromium-reviews+unsubscribe@chromium.org.
>

-- 
You received this message because you are subscribed to the Google Groups
"Chromium-reviews" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698