Giter Club home page Giter Club logo

cefutil's Introduction

CEF Util 货币 系统

CEF Util以文件+文件Task List的形式组织协调开发。每个文件File 对应一个File Task List.md 文件,上面列出了该文件的任务分割,每个开发者领取了任务时,自己在FileName Task List.md里 将自己的名字以 @YourName 添加到任务名词之前,完成第一次Fork+Pull Request后,会在该条目后面列出获得的cef货币,CEF货币是一种口头约定货币系统,根据任务的不同会发布不同的币种,比如翻译任务会发布$(Translate)币,该币可以用来在CEFUitl项目里发起悬赏翻译,或者可以用来在自己简历上列出,以表征自己在CEFUtil项目里的贡献。实际上,根据不同的任务,会有各种有趣的币被发布。

CEF 文档中文翻译任务

CEF FAQ

如何做进程间同步通信

参考CEF官方论坛的这个帖子,尽量不要在CEF里做进程间同步通信,但如果你非要做。以下步骤是一个方案:

  1. Start the call in the Browser process by "SendMessage".
  2. In the BrowserProcess, configure a wait handle on an event until it gets signaled and wait.
  3. The Render process receives the sent message from the Browser process.
  4. The Render process calls the TryEval to execute the JavaScript.
  5. The return code of the evaluation is being sent back to the Browser process, marshaled into a CefProcessMessage.
  6. The Browser process receives the message, un-marshals the return code inside the message.
  7. The event object is being signaled.
  8. The Browser process returns to the caller the result of the JavaScript call.

如果是在Render进程首先发起调用,不要在CEFV8Handler的Execute里阻塞住执行流,参考CEF官方论坛的这个使用Task的帖子

cefutil's People

Contributors

fanfeilong avatar hyn-lei avatar dusx1981 avatar kookie424 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.