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

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: 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 e87a3432974cb473a8f8138b17204fc2079d60d4..71cb27595e2cc79f6bff5a46dff148aab4f24250 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 {
fastResizeMode_ = fastResizeMode;
@@ -37,27 +35,14 @@
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)
+
- (void)layoutSubviews {
// There should never be more than one subview. There can be zero, if we are
// in the process of switching tabs or closing the window. In those cases, no
@@ -79,4 +64,5 @@
[subview setFrame:bounds];
}
}
+
@end

Powered by Google App Engine
This is Rietveld 408576698