mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-06 12:09:40 +00:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user