OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_custom_wi
ndow.h" | 5 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_custom_wi
ndow.h" |
6 | 6 |
7 #import "base/memory/scoped_nsobject.h" | 7 #import "base/memory/scoped_nsobject.h" |
8 #import "chrome/browser/ui/chrome_style.h" | 8 #import "chrome/browser/ui/chrome_style.h" |
9 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_sheet_con
troller.h" | 9 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_sheet_con
troller.h" |
10 #import "chrome/browser/ui/constrained_window.h" | 10 #import "chrome/browser/ui/web_contents_modal_dialog.h" |
11 #include "skia/ext/skia_utils_mac.h" | 11 #include "skia/ext/skia_utils_mac.h" |
12 | 12 |
13 @implementation ConstrainedWindowCustomWindow | 13 @implementation ConstrainedWindowCustomWindow |
14 | 14 |
15 - (id)initWithContentRect:(NSRect)contentRect { | 15 - (id)initWithContentRect:(NSRect)contentRect { |
16 if ((self = [self initWithContentRect:contentRect | 16 if ((self = [self initWithContentRect:contentRect |
17 styleMask:NSBorderlessWindowMask | 17 styleMask:NSBorderlessWindowMask |
18 backing:NSBackingStoreBuffered | 18 backing:NSBackingStoreBuffered |
19 defer:NO])) { | 19 defer:NO])) { |
20 scoped_nsobject<NSView> contentView( | 20 scoped_nsobject<NSView> contentView( |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 xRadius:chrome_style::kBorderRadius | 72 xRadius:chrome_style::kBorderRadius |
73 yRadius:chrome_style::kBorderRadius]; | 73 yRadius:chrome_style::kBorderRadius]; |
74 [gfx::SkColorToCalibratedNSColor( | 74 [gfx::SkColorToCalibratedNSColor( |
75 chrome_style::GetBackgroundColor()) set]; | 75 chrome_style::GetBackgroundColor()) set]; |
76 [path fill]; | 76 [path fill]; |
77 | 77 |
78 [[self window] invalidateShadow]; | 78 [[self window] invalidateShadow]; |
79 } | 79 } |
80 | 80 |
81 @end | 81 @end |
OLD | NEW |