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

Unified Diff: chrome/browser/ui/cocoa/tab_contents/overlay_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/overlay_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/overlay_drop_shadow_view.mm
similarity index 76%
rename from chrome/browser/ui/cocoa/tab_contents/preview_drop_shadow_view.mm
rename to chrome/browser/ui/cocoa/tab_contents/overlay_drop_shadow_view.mm
index 505a1c00daf3b7db4b21952f93de91027db06e20..b3b92ef3ad3ea9c8a29c103b1d2da0a92d04a824 100644
--- a/chrome/browser/ui/cocoa/tab_contents/preview_drop_shadow_view.mm
+++ b/chrome/browser/ui/cocoa/tab_contents/overlay_drop_shadow_view.mm
@@ -2,17 +2,17 @@
// 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"
+#import "chrome/browser/ui/cocoa/tab_contents/overlay_drop_shadow_view.h"
#include "grit/theme_resources.h"
#include "ui/base/resource/resource_bundle.h"
-@implementation PreviewDropShadowView
+@implementation OverlayDropShadowView
+ (CGFloat)preferredHeight {
ResourceBundle& rb = ResourceBundle::GetSharedInstance();
NSImage* shadowImage =
- rb.GetNativeImageNamed(IDR_PREVIEW_DROP_SHADOW).ToNSImage();
+ rb.GetNativeImageNamed(IDR_OVERLAY_DROP_SHADOW).ToNSImage();
return [shadowImage size].height;
}
@@ -22,7 +22,7 @@
// Draw the shadow.
NSImage* shadowImage =
- rb.GetNativeImageNamed(IDR_PREVIEW_DROP_SHADOW).ToNSImage();
+ rb.GetNativeImageNamed(IDR_OVERLAY_DROP_SHADOW).ToNSImage();
[shadowImage drawInRect:bounds
fromRect:NSZeroRect
operation:NSCompositeSourceOver

Powered by Google App Engine
This is Rietveld 408576698