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 |