2018-04-19 06:26:34 +00:00
|
|
|
// Copyright (c) 2018 GitHub, Inc.
|
|
|
|
// Use of this source code is governed by the MIT license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
|
|
|
#include "atom/browser/ui/cocoa/views_delegate_mac.h"
|
|
|
|
|
|
|
|
#include "content/public/browser/context_factory.h"
|
|
|
|
#include "ui/views/widget/native_widget_mac.h"
|
|
|
|
|
|
|
|
namespace atom {
|
|
|
|
|
2018-04-20 18:47:04 +00:00
|
|
|
ViewsDelegateMac::ViewsDelegateMac() {}
|
2018-04-19 06:26:34 +00:00
|
|
|
|
2018-04-20 18:47:04 +00:00
|
|
|
ViewsDelegateMac::~ViewsDelegateMac() {}
|
2018-04-19 06:26:34 +00:00
|
|
|
|
|
|
|
void ViewsDelegateMac::OnBeforeWidgetInit(
|
|
|
|
views::Widget::InitParams* params,
|
|
|
|
views::internal::NativeWidgetDelegate* delegate) {
|
2018-04-24 08:23:08 +00:00
|
|
|
DCHECK(params->native_widget);
|
2018-04-19 06:26:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ui::ContextFactory* ViewsDelegateMac::GetContextFactory() {
|
|
|
|
return content::GetContextFactory();
|
|
|
|
}
|
|
|
|
|
|
|
|
ui::ContextFactoryPrivate* ViewsDelegateMac::GetContextFactoryPrivate() {
|
|
|
|
return content::GetContextFactoryPrivate();
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace atom
|