views_delegate_mac.mm 811 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. #include "atom/browser/ui/cocoa/views_delegate_mac.h"
  5. #include "content/public/browser/context_factory.h"
  6. #include "ui/views/widget/native_widget_mac.h"
  7. namespace atom {
  8. ViewsDelegateMac::ViewsDelegateMac() {}
  9. ViewsDelegateMac::~ViewsDelegateMac() {}
  10. void ViewsDelegateMac::OnBeforeWidgetInit(
  11. views::Widget::InitParams* params,
  12. views::internal::NativeWidgetDelegate* delegate) {
  13. DCHECK(params->native_widget);
  14. }
  15. ui::ContextFactory* ViewsDelegateMac::GetContextFactory() {
  16. return content::GetContextFactory();
  17. }
  18. ui::ContextFactoryPrivate* ViewsDelegateMac::GetContextFactoryPrivate() {
  19. return content::GetContextFactoryPrivate();
  20. }
  21. } // namespace atom