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

Unified Diff: chrome/browser/ui/cocoa/tab_contents/preview_drop_shadow_view.mm

Issue 12386019: Instant: Use only one hidden WebContents per profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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/tab_contents/preview_drop_shadow_view.mm
diff --git a/chrome/browser/ui/cocoa/tab_contents/preview_drop_shadow_view.mm b/chrome/browser/ui/cocoa/tab_contents/preview_drop_shadow_view.mm
deleted file mode 100644
index 505a1c00daf3b7db4b21952f93de91027db06e20..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/cocoa/tab_contents/preview_drop_shadow_view.mm
+++ /dev/null
@@ -1,32 +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/preview_drop_shadow_view.h"
-
-#include "grit/theme_resources.h"
-#include "ui/base/resource/resource_bundle.h"
-
-@implementation PreviewDropShadowView
-
-+ (CGFloat)preferredHeight {
- ResourceBundle& rb = ResourceBundle::GetSharedInstance();
- NSImage* shadowImage =
- rb.GetNativeImageNamed(IDR_PREVIEW_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_PREVIEW_DROP_SHADOW).ToNSImage();
- [shadowImage drawInRect:bounds
- fromRect:NSZeroRect
- operation:NSCompositeSourceOver
- fraction:1.0];
-}
-
-@end

Powered by Google App Engine
This is Rietveld 408576698