mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 19:25:01 +00:00
35 lines
644 B
C++
35 lines
644 B
C++
// Copyright © 2010-2013 The CefSharp Project. All rights reserved.
|
|
//
|
|
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
|
|
|
|
#include "Stdafx.h"
|
|
#include "CefAppWrapper.h"
|
|
|
|
namespace CefSharp
|
|
{
|
|
namespace Wrappers
|
|
{
|
|
CefAppWrapper::CefAppWrapper()
|
|
{
|
|
cefApp = new CefRefPtr<CefAppUnmanagedWrapper>(new CefAppUnmanagedWrapper(this));
|
|
}
|
|
|
|
CefAppWrapper::~CefAppWrapper()
|
|
{
|
|
if (is_disposed) return;
|
|
this->!CefAppWrapper();
|
|
is_disposed = true;
|
|
}
|
|
|
|
void* CefAppWrapper::GetUnmanaged()
|
|
{
|
|
return cefApp;
|
|
}
|
|
|
|
CefAppWrapper::!CefAppWrapper()
|
|
{
|
|
delete cefApp;
|
|
}
|
|
};
|
|
}
|