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

Side by Side Diff: chrome/browser/ui/cocoa/constrained_window/constrained_window_custom_window.mm

Issue 11633052: Rename platform-independent ConstrainedWindow types to WebContentsModalDialog types (part 2) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use gtk_widget_get_toplevel for GetNativeWindow Created 7 years, 11 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 | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698