capi and cef_xxx

Do not post support requests, bug reports or feature requests. Discuss CEF here. Non-CEF related discussion goes in General Discussion!

capi and cef_xxx

Postby yeswecode » Thu Aug 29, 2013 4:13 am

Hello.
This may be somewhat stupid question...

My question is....

Why do we need c/c++ translator in CEF?
Can application directly call interface in _impl classes?

In more detail with an example of calling GetElementById, below is the call-stack flow

(1) calls CefDOMDocument::GetElementById
(2) calls CefDOMDocumentCToCpp::GetElementById
(3) calls domdocument_get_element_by_id
(4) calls CefDOMDocumentImpl::GetElementById
(5) calls WebDocument::getElementById

Application (C++) calls c++ api which is then delegated to c api, which is (again) delegated to c++ impl class method.

Why can we just let CefDOMDocument class to call CefDOMDocumentImpl class directly[/b],
getting rid of steps (2) and (3) in above?

Thank you very much in advance.
yeswecode
Newbie
 
Posts: 1
Joined: Thu Aug 29, 2013 3:57 am

Re: capi and cef_xxx

Postby magreenblatt » Thu Aug 29, 2013 10:05 am

You can use the C API directly if you want. The C API is a boundary between the CEF DLL and your application for the purposes of correct memory management, etc.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm


Return to CEF Discussion

Who is online

Users browsing this forum: No registered users and 157 guests

cron