window_controls_overlay_nsview.h 990 B

12345678910111213141516171819202122232425262728293031
  1. // Copyright 2021 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_WINDOW_CONTROLS_OVERLAY_NSVIEW_H_
  5. #define COMPONENTS_REMOTE_COCOA_APP_SHIM_WINDOW_CONTROLS_OVERLAY_NSVIEW_H_
  6. #import <Cocoa/Cocoa.h>
  7. #include "components/remote_cocoa/app_shim/remote_cocoa_app_shim_export.h"
  8. #include "ui/gfx/geometry/rect.h"
  9. namespace remote_cocoa {
  10. class NativeWidgetNSWindowBridge;
  11. } // namespace remote_cocoa
  12. REMOTE_COCOA_APP_SHIM_EXPORT
  13. @interface WindowControlsOverlayNSView : NSView {
  14. @private
  15. // Weak.
  16. remote_cocoa::NativeWidgetNSWindowBridge* _bridge;
  17. }
  18. @property(readonly, nonatomic) remote_cocoa::NativeWidgetNSWindowBridge* bridge;
  19. - (instancetype)initWithBridge:
  20. (remote_cocoa::NativeWidgetNSWindowBridge*)bridge;
  21. - (void)updateBounds:(gfx::Rect)bounds;
  22. @end
  23. #endif // COMPONENTS_REMOTE_COCOA_APP_SHIM_WINDOW_CONTROLS_OVERLAY_NSVIEW_H_