Trying to find a C++ function calling from JS

瀏覽次數:150 次
跳到第一則未讀訊息

David M

未讀,
2022年5月4日 凌晨1:01:152022/5/4
收件者:Chromium-dev
Dear All,
 i need to implement SSO in chromium code. i am trying to find some sample code flow to implement the native c++ code, which is called from javascript.
i am trying to find the same function name in C++ as well as JS.
will it workout?
Thanks in advance,
DavidMurail

Stefan Zager

未讀,
2022年5月5日 下午1:11:542022/5/5
收件者:dav...@kriyatec.com、Chromium-dev
Bindings between JS and C++ are controlled by *.idl files. For example, if you want to add a JS method to 'window', you would edit this file:


--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/5139000b-dd4e-4f78-b81f-0baf76c212d2n%40chromium.org.

David M

未讀,
2022年5月5日 晚上11:19:322022/5/5
收件者:Stefan Zager、Chromium-dev
Thanks stefan.. struck on receiving mojo::Receiver.. Once that is over, I will do this..
As I am new to chromium development, mojom implementation takes more time. If you have some sample or doc , please let me know.

Regards,
David


David M

未讀,
2022年5月12日 凌晨12:25:232022/5/12
收件者:Stefan Zager、Chromium-dev
Stefan,
As i need to work on cross platform, could you suggest a better place rather than "windows.idl".
Thanks in advance. 
Regards
David

K. Moon

未讀,
2022年5月12日 凌晨1:30:572022/5/12
收件者:dav...@kriyatec.com、Stefan Zager、Chromium-dev
Did you actually look at this file? It's "window", as in the browser object, not "Windows".

David M

未讀,
2022年5月12日 凌晨1:42:132022/5/12
收件者:Chromium-dev、km...@chromium.org、Stefan Zager、Chromium-dev、David M
Thanks..

Bang He

未讀,
2022年5月12日 下午1:34:132022/5/12
收件者:Chromium-dev、Stefan Zager、Chromium-dev
i can not find c++ function binding with the js function 'navigator.mediaDevices.getUserMedia'. can you give some tips?

Christian Biesinger

未讀,
2022年5月12日 下午1:36:512022/5/12
收件者:hezha...@gmail.com、Chromium-dev、Stefan Zager
回覆所有人
回覆作者
轉寄
0 則新訊息