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

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

Issue 11876036: Alternate NTP: Don't hide bookmark bar on instant (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " Created 7 years, 11 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.h
diff --git a/chrome/browser/ui/cocoa/fast_resize_view.h b/chrome/browser/ui/cocoa/fast_resize_view.h
index ba2c89f1229f182c2be13e05d62574e66bbd7de8..cdc9c7fc356ebd2bcc4f60c87af4135ffc99fa92 100644
--- a/chrome/browser/ui/cocoa/fast_resize_view.h
+++ b/chrome/browser/ui/cocoa/fast_resize_view.h
@@ -16,8 +16,14 @@
@interface FastResizeView : NSView {
@private
BOOL fastResizeMode_;
+
+ // Offset from the top of the view where the view's content starts. This is
+ // used to prevent this view from drawing white on non-content area.
+ CGFloat contentOffset_;
}
+@property(assign, nonatomic) CGFloat contentOffset;
+
// Turns fast resizing mode on or off, which determines how this view resizes
// its subviews. Turning fast resizing mode off has the effect of immediately
// resizing subviews to fit; callers do not need to explictly call |setFrame:|

Powered by Google App Engine
This is Rietveld 408576698