| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/ui/views/apps/app_window_native_widget_mac.h" | 5 #include "chrome/browser/ui/views/apps/app_window_native_widget_mac.h" |
| 6 | 6 |
| 7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
| 8 | 8 |
| 9 #import "chrome/browser/ui/cocoa/apps/titlebar_background_view.h" | 9 #import "chrome/browser/ui/cocoa/apps/titlebar_background_view.h" |
| 10 #import "chrome/browser/ui/views/frame/native_widget_mac_frameless_nswindow.h" | 10 #import "chrome/browser/ui/views/frame/native_widget_mac_frameless_nswindow.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 // NSTexturedBackgroundWindowMask is needed to implement draggable window | 38 // NSTexturedBackgroundWindowMask is needed to implement draggable window |
| 39 // regions. | 39 // regions. |
| 40 NSUInteger style_mask = NSTexturedBackgroundWindowMask | NSTitledWindowMask | | 40 NSUInteger style_mask = NSTexturedBackgroundWindowMask | NSTitledWindowMask | |
| 41 NSClosableWindowMask | NSMiniaturizableWindowMask | | 41 NSClosableWindowMask | NSMiniaturizableWindowMask | |
| 42 NSResizableWindowMask; | 42 NSResizableWindowMask; |
| 43 return [[[NativeWidgetMacFramelessNSWindow alloc] | 43 return [[[NativeWidgetMacFramelessNSWindow alloc] |
| 44 initWithContentRect:ui::kWindowSizeDeterminedLater | 44 initWithContentRect:ui::kWindowSizeDeterminedLater |
| 45 styleMask:style_mask | 45 styleMask:style_mask |
| 46 backing:NSBackingStoreBuffered | 46 backing:NSBackingStoreBuffered |
| 47 defer:YES] autorelease]; | 47 defer:NO] autorelease]; |
| 48 } | 48 } |
| OLD | NEW |