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

Unified Diff: chrome/browser/ui/cocoa/extensions/shell_window_cocoa.mm

Issue 10826145: Add frameless for ShellWindow on gtk. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 4 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 | « no previous file | chrome/browser/ui/gtk/extensions/shell_window_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/extensions/shell_window_cocoa.mm
diff --git a/chrome/browser/ui/cocoa/extensions/shell_window_cocoa.mm b/chrome/browser/ui/cocoa/extensions/shell_window_cocoa.mm
index 3958dce10d4782421e74191fd37c0cb0f408b612..88eb65c85c3d9e0cc07a1381cb1a278ee34118e4 100644
--- a/chrome/browser/ui/cocoa/extensions/shell_window_cocoa.mm
+++ b/chrome/browser/ui/cocoa/extensions/shell_window_cocoa.mm
@@ -93,9 +93,13 @@ ShellWindowCocoa::ShellWindowCocoa(Profile* profile,
NSRect cocoa_bounds = NSMakeRect(params.bounds.x(),
NSHeight(main_screen_rect) - params.bounds.y() - params.bounds.height(),
params.bounds.width(), params.bounds.height());
- NSUInteger style_mask = NSTitledWindowMask | NSClosableWindowMask |
- NSMiniaturizableWindowMask | NSResizableWindowMask |
- NSTexturedBackgroundWindowMask;
+ NSUInteger style_mask = NSTexturedBackgroundWindowMask;
+ // Hide titlebar when {frame: 'none'} on ShellWindow.
jeremy 2012/08/05 08:04:21 nit: on -> specified on
+ if (params.frame == ShellWindow::CreateParams::FRAME_NONE)
+ style_mask |= NSBorderlessWindowMask;
+ else
+ style_mask |= NSTitledWindowMask | NSClosableWindowMask |
+ NSMiniaturizableWindowMask | NSResizableWindowMask;
scoped_nsobject<NSWindow> window([[ShellNSWindow alloc]
initWithContentRect:cocoa_bounds
styleMask:style_mask
« no previous file with comments | « no previous file | chrome/browser/ui/gtk/extensions/shell_window_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698