mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-06 12:09:40 +00:00
b24cd8e2d7
OVERRIDE was a CEF macro which has been removed, use standard compliant override Issue #3636
40 lines
954 B
C++
40 lines
954 B
C++
// Copyright © 2014 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.
|
|
|
|
#pragma once
|
|
|
|
#include "Stdafx.h"
|
|
#include "include/cef_string_visitor.h"
|
|
|
|
namespace CefSharp
|
|
{
|
|
namespace Internals
|
|
{
|
|
private class CefStringVisitorAdapter : public CefStringVisitor
|
|
{
|
|
private:
|
|
gcroot<IStringVisitor^> _visitor;
|
|
|
|
public:
|
|
CefStringVisitorAdapter(IStringVisitor^ visitor) :
|
|
_visitor(visitor)
|
|
{
|
|
}
|
|
|
|
~CefStringVisitorAdapter()
|
|
{
|
|
delete _visitor;
|
|
_visitor = nullptr;
|
|
}
|
|
|
|
virtual void Visit(const CefString& string) override
|
|
{
|
|
_visitor->Visit(StringUtils::ToClr(string));
|
|
}
|
|
|
|
IMPLEMENT_REFCOUNTING(CefStringVisitorAdapter);
|
|
};
|
|
}
|
|
}
|