native_browser_view_mac.h 1010 B

123456789101112131415161718192021222324252627282930313233343536
  1. // Copyright (c) 2017 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_NATIVE_BROWSER_VIEW_MAC_H_
  5. #define ATOM_BROWSER_NATIVE_BROWSER_VIEW_MAC_H_
  6. #import <Cocoa/Cocoa.h>
  7. #include <vector>
  8. #include "atom/browser/native_browser_view.h"
  9. #include "atom/common/draggable_region.h"
  10. #include "base/mac/scoped_nsobject.h"
  11. namespace atom {
  12. class NativeBrowserViewMac : public NativeBrowserView {
  13. public:
  14. explicit NativeBrowserViewMac(
  15. InspectableWebContents* inspectable_web_contents);
  16. ~NativeBrowserViewMac() override;
  17. void SetAutoResizeFlags(uint8_t flags) override;
  18. void SetBounds(const gfx::Rect& bounds) override;
  19. void SetBackgroundColor(SkColor color) override;
  20. void UpdateDraggableRegions(
  21. const std::vector<gfx::Rect>& system_drag_exclude_areas) override;
  22. private:
  23. DISALLOW_COPY_AND_ASSIGN(NativeBrowserViewMac);
  24. };
  25. } // namespace atom
  26. #endif // ATOM_BROWSER_NATIVE_BROWSER_VIEW_MAC_H_