native_widget_mac_frameless_nswindow.h 838 B

1234567891011121314151617
  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. #ifndef COMPONENTS_REMOTE_COCOA_APP_SHIM_NATIVE_WIDGET_MAC_FRAMELESS_NSWINDOW_H_
  5. #define COMPONENTS_REMOTE_COCOA_APP_SHIM_NATIVE_WIDGET_MAC_FRAMELESS_NSWINDOW_H_
  6. #import "components/remote_cocoa/app_shim/native_widget_mac_nswindow.h"
  7. // Overrides contentRect <-> frameRect conversion methods to keep them equal to
  8. // each other, even for windows that do not use NSWindowStyleMaskBorderless.
  9. // This allows an NSWindow to be frameless without attaining undesired
  10. // side-effects of NSWindowStyleMaskBorderless.
  11. @interface NativeWidgetMacFramelessNSWindow : NativeWidgetMacNSWindow
  12. @end
  13. #endif // COMPONENTS_REMOTE_COCOA_APP_SHIM_NATIVE_WIDGET_MAC_FRAMELESS_NSWINDOW_H_