API support

Think CEF could benefit from a new feature or capability? Discuss CEF feature requests here.

API support

Postby nick23 » Mon Jan 21, 2019 5:29 am

Hello,
I would like to ask a question about the steps of implementing an API in CEF. Specifically, I checked the modifications that were made in the commits, regarding the chrome alarm API and the chrome create tab API, but there are some differences between them.

For Alarm API:
1)cef_paths2.gypi
2) libcef/browser/extensions/browser_context_keyed_service_factories.cc
3)libcef/browser/extensions/chrome_api_registration.cc
4)libcef/browser/extensions/extension_system.cc
5)tests/ceftests/extensions/chrome_alarms_unittest.cc

For create tab :
1)include/capi/cef_extension_handler_capi.h
2)include/cef_extension_handler.h
3)libcef/browser/extensions/api/tabs/tabs_api.cc
4)libcef/browser/extensions/api/tabs/tabs_api.h
5)libcef/browser/extensions/browser_extensions_util.cc
6)libcef/browser/extensions/browser_extensions_util.h
7)libcef/browser/extensions/chrome_api_registration.cc
8)libcef/browser/extensions/extension_function_details.cc
9)libcef/browser/extensions/extension_function_details.h
10)libcef_dll/cpptoc/extension_handler_cpptoc.cc
11)libcef_dll/ctocpp/extension_handler_ctocpp.cc
12)libcef_dll/ctocpp/extension_handler_ctocpp.h
13)tests/ceftests/extensions/chrome_tabs_unittest.cc

So,I was wondering if is there a general path that it has to be followed, so an API can be added/registered in CEF ? For a start I'm trying to figure out how can the method of chrome runtime getManifest() can be added to CEF.
nick23
Newbie
 
Posts: 2
Joined: Mon Jan 21, 2019 5:06 am

Re: API support

Postby magreenblatt » Mon Jan 21, 2019 8:55 am

magreenblatt
Site Admin
 
Posts: 9840
Joined: Fri May 29, 2009 6:57 pm

Re: API support

Postby nick23 » Mon Jan 21, 2019 9:05 am

Thank you very much.
nick23
Newbie
 
Posts: 2
Joined: Mon Jan 21, 2019 5:06 am


Return to Feature Request Forum

Who is online

Users browsing this forum: No registered users and 2 guests