From e0fb9b1868da3852d52c2bb2ae4a7569fa99113f Mon Sep 17 00:00:00 2001 From: Per Lundberg Date: Mon, 5 Aug 2013 22:39:57 +0300 Subject: [PATCH] Added back the ScriptCore stuff. This is now based on the CEF1 way of doing things, which is clearly not optimal for use with CEF3. Is it even permissible? Time to find out... --- CefSharp/CefSharp.vcxproj | 3 +++ CefSharp/CefSharp.vcxproj.filters | 9 +++++++++ CefSharp/ScriptCore.cpp | 8 ++++++-- CefSharp/ScriptCore.h | 7 ++++++- CefSharp/ScriptException.h | 7 ++++++- 5 files changed, 30 insertions(+), 4 deletions(-) diff --git a/CefSharp/CefSharp.vcxproj b/CefSharp/CefSharp.vcxproj index 7bb13347b..152c453e6 100644 --- a/CefSharp/CefSharp.vcxproj +++ b/CefSharp/CefSharp.vcxproj @@ -129,6 +129,7 @@ + Create Create @@ -169,6 +170,8 @@ + + diff --git a/CefSharp/CefSharp.vcxproj.filters b/CefSharp/CefSharp.vcxproj.filters index bceb927a7..c5edf07c6 100644 --- a/CefSharp/CefSharp.vcxproj.filters +++ b/CefSharp/CefSharp.vcxproj.filters @@ -59,6 +59,9 @@ Source Files + + Source Files + @@ -169,5 +172,11 @@ Header Files + + Header Files + + + Header Files + \ No newline at end of file diff --git a/CefSharp/ScriptCore.cpp b/CefSharp/ScriptCore.cpp index d3645512c..c5d1298c5 100644 --- a/CefSharp/ScriptCore.cpp +++ b/CefSharp/ScriptCore.cpp @@ -1,3 +1,7 @@ +// 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 "include/cef_runnable.h" #include "ScriptCore.h" @@ -44,7 +48,7 @@ namespace CefSharp { try { - _result = convertFromCef(result); + _result = TypeUtils::ConvertFromCef(result); } catch (Exception^ ex) { @@ -53,7 +57,7 @@ namespace CefSharp } else if (exception.get()) { - _exceptionMessage = toClr(exception->GetMessage()); + _exceptionMessage = StringUtils::ToClr(exception->GetMessage()); } else { diff --git a/CefSharp/ScriptCore.h b/CefSharp/ScriptCore.h index bbfed1071..8511334a5 100644 --- a/CefSharp/ScriptCore.h +++ b/CefSharp/ScriptCore.h @@ -1,6 +1,11 @@ -#include "Stdafx.h" +// 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. + #pragma once +#include "Stdafx.h" + namespace CefSharp { class ScriptCore diff --git a/CefSharp/ScriptException.h b/CefSharp/ScriptException.h index 291f89306..fa9511659 100644 --- a/CefSharp/ScriptException.h +++ b/CefSharp/ScriptException.h @@ -1,6 +1,11 @@ -#include "Stdafx.h" +// 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. + #pragma once +#include "Stdafx.h" + namespace CefSharp { public ref class ScriptException : public Exception