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

Unified Diff: chrome/browser/ui/views/apps/native_widget_mac_frameless_nswindow.h

Issue 987323002: [MacViews] Frameless app windows: make content view cover title bar. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 5 years, 9 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/views/apps/native_widget_mac_frameless_nswindow.h
diff --git a/chrome/browser/ui/views/apps/native_widget_mac_frameless_nswindow.h b/chrome/browser/ui/views/apps/native_widget_mac_frameless_nswindow.h
new file mode 100644
index 0000000000000000000000000000000000000000..c14d8b3459d4b90b36e30fd619769f65581d8fcd
--- /dev/null
+++ b/chrome/browser/ui/views/apps/native_widget_mac_frameless_nswindow.h
@@ -0,0 +1,21 @@
+// Copyright 2015 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_UI_VIEWS_APPS_NATIVE_WIDGET_MAC_FRAMELESS_NSWINDOW_H_
+#define CHROME_BROWSER_UI_VIEWS_APPS_NATIVE_WIDGET_MAC_FRAMELESS_NSWINDOW_H_
+
+#import <Cocoa/Cocoa.h>
tapted 2015/03/18 03:51:58 I guess this can be removed too
jackhou1 2015/03/18 06:14:17 Done.
+
+#import "ui/views/cocoa/native_widget_mac_nswindow.h"
+#include "ui/views/views_export.h"
tapted 2015/03/18 03:51:58 remove
jackhou1 2015/03/18 06:14:17 Done.
+
+// Overrides contentRect <-> frameRect conversion methods to keep them equal to
+// each other, even for windows that do not use NSBorderlessWindowMask. This
+// allows an NSWindow to be frameless without attaining undesired side-effects
+// of NSBorderlessWindowMask.
+VIEWS_EXPORT
tapted 2015/03/18 03:51:58 remove
jackhou1 2015/03/18 06:14:17 Done.
+@interface NativeWidgetMacFramelessNSWindow : NativeWidgetMacNSWindow
+@end
+
+#endif // CHROME_BROWSER_UI_VIEWS_APPS_NATIVE_WIDGET_MAC_FRAMELESS_NSWINDOW_H_

Powered by Google App Engine
This is Rietveld 408576698