native_browser_view_mac.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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 SHELL_BROWSER_NATIVE_BROWSER_VIEW_MAC_H_
  5. #define SHELL_BROWSER_NATIVE_BROWSER_VIEW_MAC_H_
  6. #import <Cocoa/Cocoa.h>
  7. #include <vector>
  8. #include "base/mac/scoped_nsobject.h"
  9. #include "shell/browser/native_browser_view.h"
  10. namespace electron {
  11. class NativeBrowserViewMac : public NativeBrowserView {
  12. public:
  13. explicit NativeBrowserViewMac(
  14. InspectableWebContents* inspectable_web_contents);
  15. ~NativeBrowserViewMac() override;
  16. void SetAutoResizeFlags(uint8_t flags) override;
  17. void SetBounds(const gfx::Rect& bounds) override;
  18. gfx::Rect GetBounds() override;
  19. void SetBackgroundColor(SkColor color) override;
  20. void UpdateDraggableRegions(
  21. const std::vector<mojom::DraggableRegionPtr>& regions) override;
  22. private:
  23. std::vector<mojom::DraggableRegionPtr> draggable_regions_;
  24. DISALLOW_COPY_AND_ASSIGN(NativeBrowserViewMac);
  25. };
  26. } // namespace electron
  27. #endif // SHELL_BROWSER_NATIVE_BROWSER_VIEW_MAC_H_