Index: trunk/src/chrome/browser/ui/cocoa/tab_contents/overlay_separator_view.mm |
=================================================================== |
--- trunk/src/chrome/browser/ui/cocoa/tab_contents/overlay_separator_view.mm (revision 190730) |
+++ trunk/src/chrome/browser/ui/cocoa/tab_contents/overlay_separator_view.mm (working copy) |
@@ -1,48 +0,0 @@ |
-// Copyright 2013 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/tab_contents/overlay_separator_view.h" |
- |
-#import "chrome/browser/ui/cocoa/nsview_additions.h" |
-#include "grit/theme_resources.h" |
-#include "ui/base/resource/resource_bundle.h" |
- |
-@implementation OverlayTopSeparatorView |
- |
-+ (CGFloat)preferredHeight { |
- return 1; |
-} |
- |
-- (void)drawRect:(NSRect)rect { |
- NSRect separatorRect = [self bounds]; |
- separatorRect.size.height = [self cr_lineWidth]; |
- [[self strokeColor] set]; |
- NSRectFillUsingOperation(separatorRect, NSCompositeSourceOver); |
-} |
- |
-@end |
- |
-@implementation OverlayBottomSeparatorView |
- |
-+ (CGFloat)preferredHeight { |
- ResourceBundle& rb = ResourceBundle::GetSharedInstance(); |
- NSImage* shadowImage = |
- rb.GetNativeImageNamed(IDR_OVERLAY_DROP_SHADOW).ToNSImage(); |
- return [shadowImage size].height; |
-} |
- |
-- (void)drawRect:(NSRect)rect { |
- ResourceBundle& rb = ResourceBundle::GetSharedInstance(); |
- NSRect bounds = [self bounds]; |
- |
- // Draw the shadow. |
- NSImage* shadowImage = |
- rb.GetNativeImageNamed(IDR_OVERLAY_DROP_SHADOW).ToNSImage(); |
- [shadowImage drawInRect:bounds |
- fromRect:NSZeroRect |
- operation:NSCompositeSourceOver |
- fraction:1.0]; |
-} |
- |
-@end |