OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_COCOA_TAB_CONTENTS_OVERLAYABLE_CONTENTS_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_TAB_CONTENTS_OVERLAYABLE_CONTENTS_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_COCOA_TAB_CONTENTS_OVERLAYABLE_CONTENTS_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_TAB_CONTENTS_OVERLAYABLE_CONTENTS_CONTROLLER_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #include "base/memory/scoped_nsobject.h" | 10 #include "base/memory/scoped_nsobject.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 CGFloat overlayHeight_; | 45 CGFloat overlayHeight_; |
46 InstantSizeUnits overlayHeightUnits_; | 46 InstantSizeUnits overlayHeightUnits_; |
47 | 47 |
48 // If true then a shadow is drawn below the overlay. This is used to make the | 48 // If true then a shadow is drawn below the overlay. This is used to make the |
49 // overlay "float" over the tab's web contents. | 49 // overlay "float" over the tab's web contents. |
50 BOOL drawDropShadow_; | 50 BOOL drawDropShadow_; |
51 | 51 |
52 // View responsible for drawing a drop shadow. | 52 // View responsible for drawing a drop shadow. |
53 scoped_nsobject<NSView> dropShadowView_; | 53 scoped_nsobject<NSView> dropShadowView_; |
54 | 54 |
55 // View responsible for drawing a separator at the top. The separator is | |
56 // only visible when the overlay is positioned right next to the omnibox. | |
57 scoped_nsobject<NSView> topSeparatorView_; | |
58 | |
59 BrowserWindowController* windowController_; | 55 BrowserWindowController* windowController_; |
60 | 56 |
61 // The vertical offset between the top of the view and the active container. | 57 // The vertical offset between the top of the view and the active container. |
62 // This is used to push the active container below the bookmark bar. Normally | 58 // This is used to push the active container below the bookmark bar. Normally |
63 // this is set to the height of the bookmark bar so that the bookmark bar is | 59 // this is set to the height of the bookmark bar so that the bookmark bar is |
64 // not obscured. | 60 // not obscured. |
65 CGFloat activeContainerOffset_; | 61 CGFloat activeContainerOffset_; |
66 } | 62 } |
67 | 63 |
68 @property(readonly, nonatomic) NSView* activeContainer; | 64 @property(readonly, nonatomic) NSView* activeContainer; |
(...skipping 18 matching lines...) Expand all Loading... |
87 - (void)onActivateTabWithContents:(content::WebContents*)contents; | 83 - (void)onActivateTabWithContents:(content::WebContents*)contents; |
88 | 84 |
89 // Returns YES if the overlay contents is currently showing. | 85 // Returns YES if the overlay contents is currently showing. |
90 - (BOOL)isShowingOverlay; | 86 - (BOOL)isShowingOverlay; |
91 | 87 |
92 - (InstantOverlayControllerMac*)instantOverlayController; | 88 - (InstantOverlayControllerMac*)instantOverlayController; |
93 | 89 |
94 @end | 90 @end |
95 | 91 |
96 #endif // CHROME_BROWSER_UI_COCOA_TAB_CONTENTS_OVERLAYABLE_CONTENTS_CONTROLLER_
H_ | 92 #endif // CHROME_BROWSER_UI_COCOA_TAB_CONTENTS_OVERLAYABLE_CONTENTS_CONTROLLER_
H_ |
OLD | NEW |