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

Unified Diff: chrome/browser/ui/cocoa/tab_contents/previewable_contents_controller.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/tab_contents/previewable_contents_controller.h
diff --git a/chrome/browser/ui/cocoa/tab_contents/previewable_contents_controller.h b/chrome/browser/ui/cocoa/tab_contents/previewable_contents_controller.h
index f08bd55237021565b44a6d87979df9c235ce4154..a40053b7f03b8d3d38d6734b120a49992a0dec3d 100644
--- a/chrome/browser/ui/cocoa/tab_contents/previewable_contents_controller.h
+++ b/chrome/browser/ui/cocoa/tab_contents/previewable_contents_controller.h
@@ -51,11 +51,26 @@ class WebContents;
// View responsible for drawing a drop shadow.
scoped_nsobject<NSView> dropShadowView_;
+
+ BrowserWindowController* windowController_;
+
+ // The vertical offset between the top of the view and the preview contents.
+ // This is used to push the preview contents below the bookmark bar. Normally
+ // this is 0 so that the preview contents obscures the bookmark bar.
+ CGFloat previewOffset_;
+
+ // The vertical offset between the top of the view and the active container.
+ // This is used to push the active container below the bookmark bar. Normally
+ // this is set to the height of the bookmark bar so that the bookmark bar is
+ // not obscured.
+ CGFloat activeContainerOffset_;
}
@property(readonly, nonatomic) NSView* activeContainer;
@property(readonly, nonatomic) NSView* dropShadowView;
@property(readonly, nonatomic) BOOL drawDropShadow;
+@property(assign, nonatomic) CGFloat previewOffset;
+@property(assign, nonatomic) CGFloat activeContainerOffset;
// Initialization.
- (id)initWithBrowser:(Browser*)browser
@@ -75,6 +90,9 @@ class WebContents;
// if it's the preview being activated (and adjust internal state accordingly).
- (void)onActivateTabWithContents:(content::WebContents*)contents;
+// Returns YES if the preview contents is currently showing.
+- (BOOL)isShowingPreview;
+
- (InstantPreviewControllerMac*)instantPreviewController;
@end

Powered by Google App Engine
This is Rietveld 408576698