| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_COCOA_TAB_CONTENTS_CONTROLLER_VIEW_H_ |
| 6 #define CHROME_BROWSER_COCOA_TAB_CONTENTS_CONTROLLER_VIEW_H_ |
| 7 |
| 8 #import <Cocoa/Cocoa.h> |
| 9 |
| 10 @class ToolbarController; |
| 11 |
| 12 // A view for the area tied to the tab contents controller (which is switched |
| 13 // around, i.e., inserted and removed from the view hierarchy, on tab |
| 14 // selection). (I know, the name is terrible. Logically, it should be |
| 15 // "TabContentsView", but we already have that; in fact, we already also have |
| 16 // "TabContentsViewCocoa" and "TabContentsViewMac".) |
| 17 @interface TabContentsControllerView : NSView { |
| 18 } |
| 19 |
| 20 // Returns the frame containing the view, the toolbar, and the infobars (in the |
| 21 // superview's coordinates). Only call while view is "active" (i.e., has |
| 22 // superview). |
| 23 - (NSRect)frameWithBars; |
| 24 |
| 25 // Positions sheets on the frame (below toolbar). Only call while view is |
| 26 // "active". |
| 27 - (NSRect)positionSheetBelowToolbar:(NSWindow *)sheet |
| 28 usingRect:(NSRect)defaultSheetRect; |
| 29 |
| 30 @end // @interface TabContentsControllerView |
| 31 |
| 32 #endif // CHROME_BROWSER_COCOA_TAB_CONTENTS_CONTROLLER_VIEW_H_ |
| OLD | NEW |