Moved the CefAppWrapper stuff into this new project. The files will be changed quite a bit also, but I'm trying really carefully to ONLY commit the file rename in one single commit, so we don't lose the precious revision history. :)

This commit is contained in:
Per Lundberg
2014-04-08 18:37:05 +01:00
parent f2e0b12dba
commit a37821e818
6 changed files with 10 additions and 9 deletions
@@ -0,0 +1,24 @@
// Copyright © 2010-2014 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 "Wrappers\CefAppWrapper.h"
namespace CefSharp
{
CefAppWrapper::CefAppWrapper(Action<CefBrowserWrapper^>^ onBrowserCreated)
{
cefApp = new CefRefPtr<CefAppUnmanagedWrapper>(new CefAppUnmanagedWrapper(onBrowserCreated));
}
int CefAppWrapper::Run()
{
auto hInstance = Process::GetCurrentProcess()->Handle;
CefMainArgs cefMainArgs((HINSTANCE)hInstance.ToPointer());
return CefExecuteProcess(cefMainArgs, *(CefRefPtr<CefApp>*)cefApp);
}
}