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

Unified Diff: trunk/src/chrome/browser/ui/cocoa/tab_contents/overlay_separator_view.mm

Issue 13006019: Revert 190584 "Alternate NTP Mac: Show overlay at fixed position" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 9 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: 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

Powered by Google App Engine
This is Rietveld 408576698