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

Side by Side Diff: chrome/browser/ui/views/apps/app_window_native_widget_mac.mm

Issue 1154013009: [OSX] Don't create deferred windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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 unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/web_dialog_window_controller.mm ('k') | chrome/browser/ui/views/frame/browser_frame_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698