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

Unified Diff: ui/events/test/cocoa_test_event_utils.mm

Issue 2375593002: Fix compile error for MacOSX10.11.sdk using static_cast<CGEventFlags> (Closed)
Patch Set: use constant 0 Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/test/cocoa_test_event_utils.mm
diff --git a/ui/events/test/cocoa_test_event_utils.mm b/ui/events/test/cocoa_test_event_utils.mm
index b225710adc61099936f04e5b7c03d0714c0481cb..c62c482f42bbb85a5330168ffff3b22cc2955a29 100644
--- a/ui/events/test/cocoa_test_event_utils.mm
+++ b/ui/events/test/cocoa_test_event_utils.mm
@@ -153,7 +153,7 @@ NSEvent* TestScrollEvent(NSPoint window_point,
// Always set event flags, otherwise +[NSEvent eventWithCGEvent:] populates
// flags from current keyboard state which can make tests flaky.
- CGEventSetFlags(scroll, 0);
+ CGEventSetFlags(scroll, static_cast<CGEventFlags>(0));
if (has_precise_deltas) {
// kCGScrollWheelEventIsContinuous is -[NSEvent hasPreciseScrollingDeltas].
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698