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

Unified Diff: chrome/browser/cocoa/tab_contents_controller_view.h

Issue 164547: Mac: make save/open dialogs operate as tab-modal sheets.... Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Painfully (but hopefully correctly) merged ToT. Created 11 years, 2 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
« no previous file with comments | « chrome/browser/cocoa/shell_dialogs_mac.mm ('k') | chrome/browser/cocoa/tab_contents_controller_view.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/tab_contents_controller_view.h
diff --git a/chrome/browser/cocoa/tab_contents_controller_view.h b/chrome/browser/cocoa/tab_contents_controller_view.h
new file mode 100644
index 0000000000000000000000000000000000000000..ad46da8ead105845b858ab6ea5c89bd2927b803f
--- /dev/null
+++ b/chrome/browser/cocoa/tab_contents_controller_view.h
@@ -0,0 +1,32 @@
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_COCOA_TAB_CONTENTS_CONTROLLER_VIEW_H_
+#define CHROME_BROWSER_COCOA_TAB_CONTENTS_CONTROLLER_VIEW_H_
+
+#import <Cocoa/Cocoa.h>
+
+@class ToolbarController;
+
+// A view for the area tied to the tab contents controller (which is switched
+// around, i.e., inserted and removed from the view hierarchy, on tab
+// selection). (I know, the name is terrible. Logically, it should be
+// "TabContentsView", but we already have that; in fact, we already also have
+// "TabContentsViewCocoa" and "TabContentsViewMac".)
+@interface TabContentsControllerView : NSView {
+}
+
+// Returns the frame containing the view, the toolbar, and the infobars (in the
+// superview's coordinates). Only call while view is "active" (i.e., has
+// superview).
+- (NSRect)frameWithBars;
+
+// Positions sheets on the frame (below toolbar). Only call while view is
+// "active".
+- (NSRect)positionSheetBelowToolbar:(NSWindow *)sheet
+ usingRect:(NSRect)defaultSheetRect;
+
+@end // @interface TabContentsControllerView
+
+#endif // CHROME_BROWSER_COCOA_TAB_CONTENTS_CONTROLLER_VIEW_H_
« no previous file with comments | « chrome/browser/cocoa/shell_dialogs_mac.mm ('k') | chrome/browser/cocoa/tab_contents_controller_view.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698