From e5fb8512b00f9b75dfd6e009fc21561946a3a1ee Mon Sep 17 00:00:00 2001 From: Avi Drissman Date: Wed, 11 May 2022 16:24:15 -0400 Subject: [PATCH] Update to non-deprecated constants When Apple introduced Swift, they renamed all the AppKit Objective-C constants to have a shared prefix for ease of bridging, and deprecated all the old names. These new names were introduced in the macOS 10.12 and 10.14 SDKs, but compile down to the same constant values so they can be deployed all the way back to 10.0. Bug: chromium:1322548 Change-Id: Ib3cacbe493e97ca43dd180047eacbd2866d70016 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/262180 Reviewed-by: Artem Titov Commit-Queue: Artem Titov Reviewed-by: Mark Foltz Auto-Submit: Avi Drissman Cr-Commit-Position: refs/heads/main@{#36874} --- test/mac/video_renderer_mac.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/mac/video_renderer_mac.mm b/test/mac/video_renderer_mac.mm index 56bf360986..7103375383 100644 --- a/test/mac/video_renderer_mac.mm +++ b/test/mac/video_renderer_mac.mm @@ -61,7 +61,7 @@ NSInteger yOrigin = nextYOrigin_; NSRect windowFrame = NSMakeRect(xOrigin, yOrigin, width_, height_); window_ = [[NSWindow alloc] initWithContentRect:windowFrame - styleMask:NSTitledWindowMask + styleMask:NSWindowStyleMaskTitled backing:NSBackingStoreBuffered defer:NO];