From fa6007f7632e83e252ced98f7fe7689c25755322 Mon Sep 17 00:00:00 2001 From: Per Lundberg Date: Thu, 18 Jul 2013 21:11:14 +0300 Subject: [PATCH] We don't need this one any more; all of the implementation is in the .h(eader) file anyway. --- CefSharp/Cef.cpp | 41 ----------------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 CefSharp/Cef.cpp diff --git a/CefSharp/Cef.cpp b/CefSharp/Cef.cpp deleted file mode 100644 index 9226cb695..000000000 --- a/CefSharp/Cef.cpp +++ /dev/null @@ -1,41 +0,0 @@ -// 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 "Cef.h" -#include "Settings.h" -#include "Internals\ClientApp.h" - -using namespace System::Runtime::InteropServices; -using namespace System::Reflection; - -namespace CefSharp -{ - void Cef::Initialize(Settings^ settings) - { - // TODO: Remove if we conclude that we won't need it. The problem with it that we don't always have an EntryAssembly, - // e.g. when running unit tests. - //auto module = Assembly::GetEntryAssembly()->GetModules()[0]; - //auto hInstance = (HINSTANCE) Marshal::GetHINSTANCE(module).ToPointer(); - - CefMainArgs main_args; //(hInstance); - CefRefPtr app(new ClientApp); - - int exitCode = CefExecuteProcess(main_args, app.get()); - - if (exitCode >= 0) - { - throw gcnew Exception( - "Failed to execute CEF process. Possible causes could be version mismatches (replacing libcef.dll etc. without " + - "recompiling CefSharp). Error code was: " + exitCode); - } - - CefInitialize(main_args, *(settings->_cefSettings), app.get()); - } - - void Cef::NavigateTo(Uri^ uri) - { - - } -} \ No newline at end of file