Files
lserp_cs_5.0/插件库/CommonLib/Cef3.24/Classes.Handlers/CefWebPluginInfoVisitor.cs
T
2026-07-10 15:25:05 +08:00

35 lines
1.1 KiB
C#

namespace Cef3
{
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Runtime.InteropServices;
using Cef3.Interop;
/// <summary>
/// Interface to implement for visiting web plugin information. The methods of
/// this class will be called on the browser process UI thread.
/// </summary>
public abstract unsafe partial class CefWebPluginInfoVisitor
{
private int visit(cef_web_plugin_info_visitor_t* self, cef_web_plugin_info_t* info, int count, int total)
{
CheckSelf(self);
var m_info = CefWebPluginInfo.FromNative(info);
var result = Visit(m_info, count, total);
return result ? 1 : 0;
}
/// <summary>
/// Method that will be called once for each plugin. |count| is the 0-based
/// index for the current plugin. |total| is the total number of plugins.
/// Return false to stop visiting plugins. This method may never be called if
/// no plugins are found.
/// </summary>
protected abstract bool Visit(CefWebPluginInfo info, int count, int total);
}
}