From a522d83c4b48f8ba4bb1b559573a3c949a2039d3 Mon Sep 17 00:00:00 2001 From: Michael Goderbauer Date: Mon, 16 Jul 2018 13:23:58 -0700 Subject: [PATCH] Roll buildroot to 7b5fd64b26afe194fa49463bad204b2cfba47fb6 (flutter/engine#5769) --- DEPS | 2 +- .../darwin/desktop/flutter_application_delegate.mm | 6 +++--- .../shell/platform/darwin/desktop/flutter_window.mm | 10 +++++----- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/DEPS b/DEPS index 8cc5e96989..a47a48dbf4 100644 --- a/DEPS +++ b/DEPS @@ -114,7 +114,7 @@ allowed_hosts = [ ] deps = { - 'src': 'https://github.com/flutter/buildroot.git' + '@' + 'fc7d5af92fe6f12b0622e4c3082d9bed8ad01c4b', + 'src': 'https://github.com/flutter/buildroot.git' + '@' + '7b5fd64b26afe194fa49463bad204b2cfba47fb6', # Fuchsia compatibility # diff --git a/engine/src/flutter/shell/platform/darwin/desktop/flutter_application_delegate.mm b/engine/src/flutter/shell/platform/darwin/desktop/flutter_application_delegate.mm index 03076b848b..50670cf25b 100644 --- a/engine/src/flutter/shell/platform/darwin/desktop/flutter_application_delegate.mm +++ b/engine/src/flutter/shell/platform/darwin/desktop/flutter_application_delegate.mm @@ -26,20 +26,20 @@ action:@selector(onNewFlutterWindow:) keyEquivalent:@""] autorelease]; newEngineItem.keyEquivalent = @"n"; - newEngineItem.keyEquivalentModifierMask = NSCommandKeyMask; + newEngineItem.keyEquivalentModifierMask = NSEventModifierFlagCommand; NSMenuItem* shutdownEngineItem = [[[NSMenuItem alloc] initWithTitle:@"Shutdown Engine" action:@selector(onShutdownFlutterWindow:) keyEquivalent:@""] autorelease]; shutdownEngineItem.keyEquivalent = @"w"; - shutdownEngineItem.keyEquivalentModifierMask = NSCommandKeyMask; + shutdownEngineItem.keyEquivalentModifierMask = NSEventModifierFlagCommand; NSMenuItem* quitItem = [[[NSMenuItem alloc] initWithTitle:@"Quit" action:@selector(onQuitFlutterApplication:) keyEquivalent:@""] autorelease]; quitItem.keyEquivalent = @"q"; - quitItem.keyEquivalentModifierMask = NSCommandKeyMask; + quitItem.keyEquivalentModifierMask = NSEventModifierFlagCommand; [mainMenu addItem:engineItem]; [engineItem setSubmenu:engineMenu]; diff --git a/engine/src/flutter/shell/platform/darwin/desktop/flutter_window.mm b/engine/src/flutter/shell/platform/darwin/desktop/flutter_window.mm index 097b71a560..d6e19dec13 100644 --- a/engine/src/flutter/shell/platform/darwin/desktop/flutter_window.mm +++ b/engine/src/flutter/shell/platform/darwin/desktop/flutter_window.mm @@ -52,11 +52,11 @@ static inline blink::PointerData::Change PointerChangeFromNSEventPhase(NSEventPh } - (instancetype)init { - self = - [super initWithContentRect:NSMakeRect(10.0, 10.0, 800.0, 600.0) - styleMask:NSTitledWindowMask | NSClosableWindowMask | NSResizableWindowMask - backing:NSBackingStoreBuffered - defer:YES]; + self = [super initWithContentRect:NSMakeRect(10.0, 10.0, 800.0, 600.0) + styleMask:NSWindowStyleMaskTitled | NSWindowStyleMaskClosable | + NSWindowStyleMaskResizable + backing:NSBackingStoreBuffered + defer:YES]; if (self) { self.delegate = self; [self setupRenderSurface];