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.
|
|
|
|
|
2019-06-19 20:56:58 +00:00
|
|
|
#ifndef SHELL_BROWSER_UI_COCOA_VIEWS_DELEGATE_MAC_H_
|
|
|
|
#define SHELL_BROWSER_UI_COCOA_VIEWS_DELEGATE_MAC_H_
|
2018-04-19 06:26:34 +00:00
|
|
|
|
|
|
|
#include "ui/views/views_delegate.h"
|
|
|
|
|
2019-06-19 21:23:04 +00:00
|
|
|
namespace electron {
|
2018-04-19 06:26:34 +00:00
|
|
|
|
|
|
|
class ViewsDelegateMac : public views::ViewsDelegate {
|
|
|
|
public:
|
|
|
|
ViewsDelegateMac();
|
|
|
|
~ViewsDelegateMac() override;
|
|
|
|
|
2021-11-03 11:41:45 +00:00
|
|
|
// disable copy
|
|
|
|
ViewsDelegateMac(const ViewsDelegateMac&) = delete;
|
|
|
|
ViewsDelegateMac& operator=(const ViewsDelegateMac&) = delete;
|
|
|
|
|
2018-04-19 06:26:34 +00:00
|
|
|
// ViewsDelegate:
|
|
|
|
void OnBeforeWidgetInit(
|
|
|
|
views::Widget::InitParams* params,
|
|
|
|
views::internal::NativeWidgetDelegate* delegate) override;
|
|
|
|
ui::ContextFactory* GetContextFactory() override;
|
|
|
|
};
|
|
|
|
|
2019-06-19 21:23:04 +00:00
|
|
|
} // namespace electron
|
2018-04-19 06:26:34 +00:00
|
|
|
|
2019-06-19 20:56:58 +00:00
|
|
|
#endif // SHELL_BROWSER_UI_COCOA_VIEWS_DELEGATE_MAC_H_
|