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

Unified Diff: chrome/browser/ui/cocoa/apps/native_app_window_cocoa.mm

Issue 319733003: [Mac] Don't show a title on app windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/apps/native_app_window_cocoa.mm
diff --git a/chrome/browser/ui/cocoa/apps/native_app_window_cocoa.mm b/chrome/browser/ui/cocoa/apps/native_app_window_cocoa.mm
index 1a5b1d0405d8f5ac01770fff6d3bf566cae38470..0f3ed29fb6164d3da994d96536aadf85c83fe03d 100644
--- a/chrome/browser/ui/cocoa/apps/native_app_window_cocoa.mm
+++ b/chrome/browser/ui/cocoa/apps/native_app_window_cocoa.mm
@@ -46,6 +46,7 @@ using apps::AppWindow;
@interface NSWindow (NSPrivateApis)
- (void)setBottomCornerRounded:(BOOL)rounded;
+- (BOOL)_isTitleHidden;
@end
// Replicate specific 10.7 SDK declarations for building with prior SDKs.
@@ -223,6 +224,11 @@ std::vector<gfx::Rect> CalculateNonDraggableRegions(
@interface ShellNSWindow : ChromeEventProcessingWindow
@end
@implementation ShellNSWindow
+
+- (BOOL)_isTitleHidden {
tapted 2014/06/06 06:57:51 nit: perhaps a comment, like ~Similar to ChromeBro
jackhou1 2014/06/06 07:08:34 Done.
+ return YES;
+}
+
@end
@interface ShellCustomFrameNSWindow : ShellNSWindow {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698