1// Copyright 2015 The Chromium Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5#import "components/remote_cocoa/app_shim/native_widget_mac_frameless_nswindow.h" 6 7@interface NSWindow (PrivateAPI) 8+ (Class)frameViewClassForStyleMask:(NSUInteger)windowStyle; 9@end 10 11@interface NativeWidgetMacFramelessNSWindowFrame 12 : NativeWidgetMacNSWindowTitledFrame 13@end 14 15@implementation NativeWidgetMacFramelessNSWindowFrame 16- (CGFloat)_titlebarHeight { 17 return 0; 18} 19@end 20 21@implementation NativeWidgetMacFramelessNSWindow 22 23+ (Class)frameViewClassForStyleMask:(NSUInteger)windowStyle { 24 if ([NativeWidgetMacFramelessNSWindowFrame class]) { 25 return [NativeWidgetMacFramelessNSWindowFrame class]; 26 } 27 return [super frameViewClassForStyleMask:windowStyle]; 28} 29 30@end 31