atom_ns_window_delegate.h 727 B

1234567891011121314151617181920212223242526272829
  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_NS_WINDOW_DELEGATE_H_
  5. #define ATOM_BROWSER_UI_COCOA_ATOM_NS_WINDOW_DELEGATE_H_
  6. #include <Quartz/Quartz.h>
  7. #include "ui/views/cocoa/views_nswindow_delegate.h"
  8. namespace atom {
  9. class NativeWindowMac;
  10. }
  11. @interface AtomNSWindowDelegate :
  12. ViewsNSWindowDelegate<NSTouchBarDelegate,
  13. QLPreviewPanelDataSource> {
  14. @private
  15. atom::NativeWindowMac* shell_;
  16. bool is_zooming_;
  17. int level_;
  18. bool is_resizable_;
  19. }
  20. - (id)initWithShell:(atom::NativeWindowMac*)shell;
  21. @end
  22. #endif // ATOM_BROWSER_UI_COCOA_ATOM_NS_WINDOW_DELEGATE_H_