mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 10:22:55 +00:00
75ff0ed3e4
Refactor to reflect actual underlying Cef Model (Remove return bool)
39 lines
770 B
C++
39 lines
770 B
C++
// Copyright © 2010-2015 The CefSharp Authors. All rights reserved.
|
|
//
|
|
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
|
|
|
|
#pragma once
|
|
|
|
#include "Stdafx.h"
|
|
|
|
#include "include\cef_menu_model.h"
|
|
|
|
namespace CefSharp
|
|
{
|
|
public ref class CefMenuModelWrapper : public IMenuModel
|
|
{
|
|
private:
|
|
MCefRefPtr<CefMenuModel> _menu;
|
|
|
|
public:
|
|
CefMenuModelWrapper(CefRefPtr<CefMenuModel> &menu) : _menu(menu)
|
|
{
|
|
|
|
}
|
|
|
|
!CefMenuModelWrapper()
|
|
{
|
|
_menu = NULL;
|
|
}
|
|
|
|
~CefMenuModelWrapper()
|
|
{
|
|
this->!CefMenuModelWrapper();
|
|
}
|
|
|
|
virtual bool Clear()
|
|
{
|
|
return _menu->Clear();
|
|
}
|
|
};
|
|
} |