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

Unified Diff: chrome/browser/ui/cocoa/constrained_window/cw_window.mm

Issue 10870094: Constrained window sheet controller (test patch) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rename Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698