基线 SVN r240
SVN-Revision: r240
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using Xilium.CefGlue;
|
||||
|
||||
namespace Lskj.Control.BrowserSetting
|
||||
{
|
||||
public class BsRenderProcessHandler : CefRenderProcessHandler
|
||||
{
|
||||
private BsOpenModuleHandler bsOpenModuleHandler;
|
||||
protected override void OnWebKitInitialized()
|
||||
{
|
||||
bsOpenModuleHandler = new BsOpenModuleHandler();
|
||||
string extensionCode = @"
|
||||
var boundObject;
|
||||
if (!boundObject)
|
||||
boundObject = {};
|
||||
(function()
|
||||
{
|
||||
boundObject.OpenModule = function(menuId, menuName, dllName, modelFlag, urlParams)
|
||||
{
|
||||
native function OpenModule();
|
||||
return OpenModule(menuId, menuName, dllName, modelFlag, urlParams);
|
||||
};
|
||||
boundObject.OpenOnRightClick = function(arrayItem, rightId,MenuName,mMenuCode)
|
||||
{
|
||||
native function OpenOnRightClick();
|
||||
return OpenOnRightClick(arrayItem, rightId,MenuName,mMenuCode);
|
||||
};
|
||||
})();
|
||||
";
|
||||
CefRuntime.RegisterExtension("boundObject", extensionCode, bsOpenModuleHandler);
|
||||
base.OnWebKitInitialized();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user