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

Issue 2739783002: MacViews/a11y: Typedef gfx::NativeViewAccessible to id for all of Mac & iOS. (Closed)

Created:
3 years, 9 months ago by Patti Lor
Modified:
3 years, 9 months ago
Reviewers:
tapted, Nico, Dirk Pranke
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MacViews/a11y: Typedef gfx::NativeViewAccessible to id for all of Mac & iOS. Currently on Mac and iOS, gfx::NativeViewAccessible is 'typedef'ed to void* or id depending on whether the file it's used in is an Objective C file or not (i.e. if __OBJC__ is defined or not). Previously, when it was only ever used as a return type on these platforms, this was fine. But in order to implement AXPlatformNode::FromNativeViewAccessible() on Mac where gfx::NativeViewAccessible is used as an method argument, this no longer works -- .cc and .mm files see different method signatures, and linking these together fails (since the .mm file will declare an overload that doesn't exist). To fix, typedef gfx::NativeViewAccessible to id. BUG=610589 Review-Url: https://codereview.chromium.org/2739783002 Cr-Commit-Position: refs/heads/master@{#456594} Committed: https://chromium.googlesource.com/chromium/src/+/df7b70bca50665b8ea628e8012aa1a49c63bd001

Patch Set 1 #

Total comments: 2

Patch Set 2 : Review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -11 lines) Patch
M testing/platform_test.h View 1 1 chunk +1 line, -3 lines 0 comments Download
M ui/gfx/native_widget_types.h View 2 chunks +2 lines, -8 lines 0 comments Download

Messages

Total messages: 23 (15 generated)
Patti Lor
Thanks Trent :)
3 years, 9 months ago (2017-03-10 03:02:30 UTC) #6
tapted
lgtm with the following (pretty sure it will work!) Thanks https://codereview.chromium.org/2739783002/diff/1/testing/platform_test.h File testing/platform_test.h (right): https://codereview.chromium.org/2739783002/diff/1/testing/platform_test.h#newcode12 ...
3 years, 9 months ago (2017-03-10 03:55:05 UTC) #7
Patti Lor
Hi thakis@ - PTAL. Thanks! https://codereview.chromium.org/2739783002/diff/1/testing/platform_test.h File testing/platform_test.h (right): https://codereview.chromium.org/2739783002/diff/1/testing/platform_test.h#newcode12 testing/platform_test.h:12: typedef struct objc_object* id; ...
3 years, 9 months ago (2017-03-10 05:42:03 UTC) #11
Nico
lgtm
3 years, 9 months ago (2017-03-10 16:30:23 UTC) #14
Patti Lor
Thanks for the review! dpranke@, PTAL for testing/?
3 years, 9 months ago (2017-03-12 23:57:24 UTC) #16
Dirk Pranke
lgtm
3 years, 9 months ago (2017-03-13 21:17:05 UTC) #17
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/2739783002/20001
3 years, 9 months ago (2017-03-14 01:48:03 UTC) #20
commit-bot: I haz the power
3 years, 9 months ago (2017-03-14 02:52:12 UTC) #23
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/df7b70bca50665b8ea628e8012aa...

Powered by Google App Engine
This is Rietveld 408576698