Index: chrome/browser/ui/cocoa/constrained_window/cw_window.mm |
diff --git a/chrome/browser/ui/cocoa/constrained_window/cw_window.mm b/chrome/browser/ui/cocoa/constrained_window/cw_window.mm |
deleted file mode 100644 |
index 7406fbb84bfb03af649b4dd422eaaba93bf1ea38..0000000000000000000000000000000000000000 |
--- a/chrome/browser/ui/cocoa/constrained_window/cw_window.mm |
+++ /dev/null |
@@ -1,50 +0,0 @@ |
-// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
-// Use of this source code is governed by a BSD-style license that can be |
-// found in the LICENSE file. |
- |
-#import "chrome/browser/ui/cocoa/constrained_window/cw_window.h" |
- |
-#import "base/memory/scoped_nsobject.h" |
-#import "chrome/browser/ui/constrained_window.h" |
-#include "skia/ext/skia_utils_mac.h" |
- |
-@interface CustomAlertView : NSView |
-@end |
- |
-@implementation CWWindow |
- |
-- (id)initWithContentRect:(NSRect)contentRect { |
- self = [super initWithContentRect:contentRect |
- styleMask:NSBorderlessWindowMask |
- backing:NSBackingStoreBuffered |
- defer:NO]; |
- if (!self) |
- return nil; |
- |
- [self setHasShadow:YES]; |
- [self setBackgroundColor:[NSColor clearColor]]; |
- [self setOpaque:NO]; |
- scoped_nsobject<NSView> content_view( |
- [[CustomAlertView alloc] initWithFrame:NSZeroRect]); |
- [self setContentView:content_view]; |
- return self; |
-} |
- |
-- (BOOL)canBecomeKeyWindow { |
- return YES; |
-} |
- |
-@end |
- |
-@implementation CustomAlertView |
- |
-- (void)drawRect:(NSRect)rect { |
- NSBezierPath* path = [NSBezierPath |
- bezierPathWithRoundedRect:[self bounds] |
- xRadius:ConstrainedWindow::kBorderRadius |
- yRadius:ConstrainedWindow::kBorderRadius]; |
- [gfx::SkColorToCalibratedNSColor(ConstrainedWindow::kBackgroundColor) set]; |
- [path fill]; |
-} |
- |
-@end |