DescriptionFix 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 #Messages
Total messages: 13 (6 generated)
|