mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 10:22:55 +00:00
38 lines
936 B
C++
38 lines
936 B
C++
// Copyright © 2010-2015 The CefSharp Authors. 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 "TypeUtils.h"
|
|
#include "JavascriptCallbackWrapper.h"
|
|
#include "Serialization/V8Serialization.h"
|
|
|
|
using namespace CefSharp::Internals::Serialization;
|
|
|
|
namespace CefSharp
|
|
{
|
|
namespace Internals
|
|
{
|
|
JavascriptCallbackWrapper::!JavascriptCallbackWrapper()
|
|
{
|
|
value = nullptr;
|
|
context = nullptr;
|
|
}
|
|
|
|
JavascriptCallbackWrapper::~JavascriptCallbackWrapper()
|
|
{
|
|
this->!JavascriptCallbackWrapper();
|
|
}
|
|
|
|
CefRefPtr<CefV8Value> JavascriptCallbackWrapper::GetValue()
|
|
{
|
|
return value.get();
|
|
}
|
|
|
|
CefRefPtr<CefV8Context> JavascriptCallbackWrapper::GetContext()
|
|
{
|
|
return context.get();
|
|
}
|
|
}
|
|
}
|