| 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 |
| 55 BrowserWindowController* windowController_; | 59 BrowserWindowController* windowController_; |
| 56 | 60 |
| 57 // The vertical offset between the top of the view and the active container. | 61 // The vertical offset between the top of the view and the active container. |
| 58 // This is used to push the active container below the bookmark bar. Normally | 62 // This is used to push the active container below the bookmark bar. Normally |
| 59 // this is set to the height of the bookmark bar so that the bookmark bar is | 63 // this is set to the height of the bookmark bar so that the bookmark bar is |
| 60 // not obscured. | 64 // not obscured. |
| 61 CGFloat activeContainerOffset_; | 65 CGFloat activeContainerOffset_; |
| 62 } | 66 } |
| 63 | 67 |
| 64 @property(readonly, nonatomic) NSView* activeContainer; | 68 @property(readonly, nonatomic) NSView* activeContainer; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 83 - (void)onActivateTabWithContents:(content::WebContents*)contents; | 87 - (void)onActivateTabWithContents:(content::WebContents*)contents; |
| 84 | 88 |
| 85 // Returns YES if the overlay contents is currently showing. | 89 // Returns YES if the overlay contents is currently showing. |
| 86 - (BOOL)isShowingOverlay; | 90 - (BOOL)isShowingOverlay; |
| 87 | 91 |
| 88 - (InstantOverlayControllerMac*)instantOverlayController; | 92 - (InstantOverlayControllerMac*)instantOverlayController; |
| 89 | 93 |
| 90 @end | 94 @end |
| 91 | 95 |
| 92 #endif // CHROME_BROWSER_UI_COCOA_TAB_CONTENTS_OVERLAYABLE_CONTENTS_CONTROLLER_
H_ | 96 #endif // CHROME_BROWSER_UI_COCOA_TAB_CONTENTS_OVERLAYABLE_CONTENTS_CONTROLLER_
H_ |
| OLD | NEW |