Пример #1
0
 public CwbDOMVisitor(CefBrowser browser, CwbBusinStyle businID, CwbListenerItem item)
 {
     this.browser = browser;
     _businID = businID;
     _item = item;
 }
Пример #2
0
 public void AppendElementEventListener(string id,string eventName,TCallBackElementEventListener callFunc)
 {
     string elementID = id.Replace("|0", "");
     foreach (CwbListenerItem t in elementListenerList)
     {
         if (t.id == elementID)
         {
             return;
         }
     }
     CwbListenerItem item = new CwbListenerItem();
     item.id = elementID;
     item.eventName = eventName;
     item.elementListener = callFunc;
     elementListenerList.Add(item);
     browser.SendProcessMessage(CefProcessId.Renderer, CefProcessMessage.Create("AppendListener|" + id));
 }