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

Unified Diff: ui/views/cocoa/native_widget_mac_nswindow.mm

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: Test size of web contents, not content view. 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: ui/views/cocoa/native_widget_mac_nswindow.mm
diff --git a/ui/views/cocoa/native_widget_mac_nswindow.mm b/ui/views/cocoa/native_widget_mac_nswindow.mm
index 00b2e1ac3971f0c5e6011829cc964c32e3b1c5dc..a5782429c3997dc60b4e9bee04bcabf34bdf531e 100644
--- a/ui/views/cocoa/native_widget_mac_nswindow.mm
+++ b/ui/views/cocoa/native_widget_mac_nswindow.mm
@@ -108,3 +108,24 @@
}
@end
+
+@implementation NativeWidgetMacFramelessNSWindow
+
++ (NSRect)frameRectForContentRect:(NSRect)contentRect
+ styleMask:(NSUInteger)mask {
+ return contentRect;
+}
+
++ (NSRect)contentRectForFrameRect:(NSRect)frameRect styleMask:(NSUInteger)mask {
+ return frameRect;
+}
+
+- (NSRect)frameRectForContentRect:(NSRect)contentRect {
+ return contentRect;
+}
+
+- (NSRect)contentRectForFrameRect:(NSRect)frameRect {
+ return frameRect;
+}
+
+@end

Powered by Google App Engine
This is Rietveld 408576698