views_delegate_mac.h 825 B

12345678910111213141516171819202122232425262728293031
  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_VIEWS_DELEGATE_MAC_H_
  5. #define ATOM_BROWSER_UI_COCOA_VIEWS_DELEGATE_MAC_H_
  6. #include "ui/views/views_delegate.h"
  7. namespace atom {
  8. class ViewsDelegateMac : public views::ViewsDelegate {
  9. public:
  10. ViewsDelegateMac();
  11. ~ViewsDelegateMac() override;
  12. // ViewsDelegate:
  13. void OnBeforeWidgetInit(
  14. views::Widget::InitParams* params,
  15. views::internal::NativeWidgetDelegate* delegate) override;
  16. ui::ContextFactory* GetContextFactory() override;
  17. ui::ContextFactoryPrivate* GetContextFactoryPrivate() override;
  18. private:
  19. DISALLOW_COPY_AND_ASSIGN(ViewsDelegateMac);
  20. };
  21. } // namespace atom
  22. #endif // ATOM_BROWSER_UI_COCOA_VIEWS_DELEGATE_MAC_H_