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

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..72bb663cdce1d9b16ed403b8c053376f69fd4962
--- /dev/null
+++ b/chrome/browser/ui/views/apps/native_widget_mac_frameless_nswindow.h
@@ -0,0 +1,17 @@
+// 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 "ui/views/cocoa/native_widget_mac_nswindow.h"
+
+// 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.
+@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