atom_native_widget_mac.h 940 B

123456789101112131415161718192021222324252627282930313233343536
  1. // Copyright (c) 2018 GitHub, Inc.
  2. // Use of this source code is governed by the MIT license that can be
  3. // found in the LICENSE file.
  4. #ifndef ATOM_BROWSER_UI_COCOA_ATOM_NATIVE_WIDGET_MAC_H_
  5. #define ATOM_BROWSER_UI_COCOA_ATOM_NATIVE_WIDGET_MAC_H_
  6. #include "ui/views/widget/native_widget_mac.h"
  7. namespace atom {
  8. class NativeWindowMac;
  9. class AtomNativeWidgetMac : public views::NativeWidgetMac {
  10. public:
  11. AtomNativeWidgetMac(NativeWindowMac* shell,
  12. NSUInteger style_mask,
  13. views::internal::NativeWidgetDelegate* delegate);
  14. ~AtomNativeWidgetMac() override;
  15. protected:
  16. // NativeWidgetMac:
  17. NativeWidgetMacNSWindow* CreateNSWindow(
  18. const views::Widget::InitParams& params) override;
  19. private:
  20. NativeWindowMac* shell_;
  21. NSUInteger style_mask_;
  22. DISALLOW_COPY_AND_ASSIGN(AtomNativeWidgetMac);
  23. };
  24. } // namespace atom
  25. #endif // ATOM_BROWSER_UI_COCOA_ATOM_NATIVE_WIDGET_MAC_H_