Giter Club home page Giter Club logo

Comments (9)

Lecrapouille avatar Lecrapouille commented on June 4, 2024

@daniel-sanche nice work :) I'll test it. For the few I reviewed, your code seems good.

from gdcef.

Lecrapouille avatar Lecrapouille commented on June 4, 2024

I've merged them. I do not have time right now:

  • for non public member variables I use m_
  • Merging the last std::cout with GDCEF_ERROR and godot::Godot::print.
  • Add in the documentation all the CEF setting/dictionary entries and add them explicitly in the demos.
  • Rename the CEFHello demo to CEF2D.
  • Add mouse and keyboard event to the active area in CEFHello demo.
  • Add example of JS injection in demo. As a non JS-dev I do not really understand why people want to execute JS

from gdcef.

Lecrapouille avatar Lecrapouille commented on June 4, 2024

@daniel-sanche Finally waiting my wife getting ready, I added time to fix several points on my list. I'll commit them to night or tomorrow.

from gdcef.

daniel-sanche avatar daniel-sanche commented on June 4, 2024

Sounds good, let me know if you want me to take a look at anything on the list. I'd add:

  • Add documentation for configuration dictionary fields

from gdcef.

daniel-sanche avatar daniel-sanche commented on June 4, 2024

Add example of JS injection in demo. As a non JS-dev I do not really understand why people want to execute JS

My motivation was to use it to inject tokens to avoid a sign-in page. I don't do a lot of JS either, so I'm not sure what a good demo scenario would look like

from gdcef.

Lecrapouille avatar Lecrapouille commented on June 4, 2024

@daniel-sanche

  • [DONE] for non public member variables I use m_
  • Merging the last std::cout with GDCEF_ERROR and godot::Godot::print.
  • [DONE] Add in the documentation all the CEF setting/dictionary entries and add them explicitly in the demos.
  • [DONE] Rename the CEFHello demo to CEF2D.
  • [DONE] Add mouse and keyboard event to the active area in CEFHello demo.
  • Add example of JS injection in demo. As a non JS-dev I do not really understand why people want to execute JS

Also:

  • I fixed some settings that the user shall not modify.
  • You can add an example of JS in demos if you wish.
  • You can help fixing my poor English sentences ;)
  • I does not really like replacing _init by initialize and passing non default arguments (default dictionary will be {}) and CEF sub process shall be known and canonical and no more exportable. In my previous code, the path to it was directly computed, letting no risk to the user to give bad path. CEF does not pardon any error if you do not want your OS does infinite fork of processes and kill your OS.

from gdcef.

Lecrapouille avatar Lecrapouille commented on June 4, 2024

Now initialize() only takes Dictionary. Ideally would be nice to use back _init() like done before and define global CEF config with the dictionary.

from gdcef.

daniel-sanche avatar daniel-sanche commented on June 4, 2024

Cool, looks great! Feel free to close this issue if you think it's all done

from gdcef.

Lecrapouille avatar Lecrapouille commented on June 4, 2024

Not all but mostly. let open other tickets if needed

from gdcef.

Related Issues (20)

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.