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

Unified Diff: chrome/browser/ui/cocoa/fast_resize_view.mm

Issue 18009003: Instant Extended: Delete unused overlay code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 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/fast_resize_view.mm
diff --git a/chrome/browser/ui/cocoa/fast_resize_view.mm b/chrome/browser/ui/cocoa/fast_resize_view.mm
index 0616cea38799e54dd72c17b33a9cc0b8cd99a39b..87f7787f287ecc9477ac018a8c3ad258f3f5aace 100644
--- a/chrome/browser/ui/cocoa/fast_resize_view.mm
+++ b/chrome/browser/ui/cocoa/fast_resize_view.mm
@@ -16,8 +16,6 @@
@implementation FastResizeView
-@synthesize contentOffset = contentOffset_;
-
- (void)setFastResizeMode:(BOOL)fastResizeMode {
if (fastResizeMode_ == fastResizeMode)
return;
@@ -42,24 +40,10 @@
if (!fastResizeMode_)
return;
- // Don't draw on the non-content area.
- NSRect clipRect = [self bounds];
- clipRect.size.height -= contentOffset_;
- NSRectClip(clipRect);
-
[[NSColor whiteColor] set];
NSRectFill(dirtyRect);
}
-- (NSView*)hitTest:(NSPoint)point {
- NSView* result = [super hitTest:point];
- // Never return this view during hit testing. This allows overlapping views to
- // get events even when they are not topmost.
- if ([result isEqual:self])
- return nil;
- return result;
-}
-
@end
@implementation FastResizeView (PrivateMethods)
« no previous file with comments | « chrome/browser/ui/cocoa/fast_resize_view.h ('k') | chrome/browser/ui/cocoa/tab_contents/instant_overlay_controller_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698