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 |