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

Issue 2375593002: Fix compile error for MacOSX10.11.sdk using static_cast<CGEventFlags> (Closed)

Created:
4 years, 2 months ago by tikuta
Modified:
4 years, 2 months ago
CC:
chromium-reviews, tdresser+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix compile error for MacOSX10.11.sdk using static_cast<CGEventFlags> This CL fixes following error. ../../ui/events/test/cocoa_test_event_utils.mm:156:3: error: no matching function for call to 'CGEventSetFlags' CGEventSetFlags(scroll, 0); ^~~~~~~~~~~~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGEvent.h:175:16: note: candidate function not viable: no known conversion from 'int' to 'CGEventFlags' for 2nd argument CG_EXTERN void CGEventSetFlags(CGEventRef __nullable event, CGEventFlags flags) ^ 1 error generated. TBR=avi@chromium.org BUG= Committed: https://crrev.com/0ca7dfeb300b064706448a8d02bea8229cf815e1 Cr-Commit-Position: refs/heads/master@{#421134}

Patch Set 1 #

Total comments: 2

Patch Set 2 : use constant 0 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M ui/events/test/cocoa_test_event_utils.mm View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 13 (6 generated)
tikuta
This is small fix for MacOSX10.11 SDK. Please review this.
4 years, 2 months ago (2016-09-27 05:45:25 UTC) #2
tapted
dang it - too many SDKs.... lgtm with the below - thanks! And I would ...
4 years, 2 months ago (2016-09-27 06:40:16 UTC) #3
tikuta
Thank you for review. I commit this with TBR. https://codereview.chromium.org/2375593002/diff/1/ui/events/test/cocoa_test_event_utils.mm File ui/events/test/cocoa_test_event_utils.mm (right): https://codereview.chromium.org/2375593002/diff/1/ui/events/test/cocoa_test_event_utils.mm#newcode156 ui/events/test/cocoa_test_event_utils.mm:156: ...
4 years, 2 months ago (2016-09-27 06:49:03 UTC) #5
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/2375593002/20001
4 years, 2 months ago (2016-09-27 06:49:28 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 2 months ago (2016-09-27 07:16:03 UTC) #10
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/0ca7dfeb300b064706448a8d02bea8229cf815e1 Cr-Commit-Position: refs/heads/master@{#421134}
4 years, 2 months ago (2016-09-27 07:18:31 UTC) #12
Avi (use Gerrit)
4 years, 2 months ago (2016-09-27 15:22:46 UTC) #13
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698