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

Unified Diff: chrome/browser/ui/cocoa/browser_window_controller.h

Issue 7003063: Enforce different min size for popups than tabbed browsers on MacOSX. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use setMinSize instead of setContentMinSize. Created 9 years, 6 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
Index: chrome/browser/ui/cocoa/browser_window_controller.h
diff --git a/chrome/browser/ui/cocoa/browser_window_controller.h b/chrome/browser/ui/cocoa/browser_window_controller.h
index f390deeb8c939b7270d8cd9fba90723acfb19733..3bc55002f859b3ae6ae6d1f94b2489758cad3433 100644
--- a/chrome/browser/ui/cocoa/browser_window_controller.h
+++ b/chrome/browser/ui/cocoa/browser_window_controller.h
@@ -25,6 +25,7 @@
#import "chrome/browser/ui/cocoa/themed_window.h"
#import "chrome/browser/ui/cocoa/url_drop_target.h"
#import "chrome/browser/ui/cocoa/view_resizer.h"
+#include "ui/gfx/rect.h"
class Browser;
@@ -143,10 +144,16 @@ class TabContents;
// Takes ownership of |browser|.
- (id)initWithBrowser:(Browser*)browser;
+// Set minimum size on window depending on browser type.
+- (void)awakeFromNib;
Nico 2011/06/09 16:54:35 awakeFromNib is usually not declared in .h files
jennb 2011/06/09 17:54:51 Removed. Good to know. Thx.
+
// Call to make the browser go away from other places in the cross-platform
// code.
- (void)destroyBrowser;
+// Ensure bounds for the window abide by the minimum window size.
+- (gfx::Rect)enforceMinWindowSize:(gfx::Rect)bounds;
+
// Access the C++ bridge between the NSWindow and the rest of Chromium.
- (BrowserWindow*)browserWindow;

Powered by Google App Engine
This is Rietveld 408576698