-
-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
begin event loop and EngineInstance
#733
Conversation
use tokio::task::{spawn_blocking, LocalSet}; | ||
use url::Url; | ||
|
||
pub struct EngineInstance<C: ModuleConfiguration> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know exactly what an engine instance is... but from context I don't understand why it needs a title or url?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is basically a tab. It will manage the event loop, the web event loop and everything else.
It needs the title and url, so JS can ask for it
use crate::chrome::ChromeHandle; | ||
use crate::config::HasRenderBackend; | ||
|
||
pub trait HasChrome: HasRenderBackend + Sized { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please describe what chrome is and what it does...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I still need many comments. I am also not completely happy about the HasChrome
thingy.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Me neither, but more about the connotation with the chrome browser. I'm not 100% sure what it is for, but we could see if we can find a better naming for it.. for now, don't worry about it too much,.. we can always rename things when we find better names or ways... (like gosub_interface)
a5c91b3
to
ddfcd8c
Compare
ddfcd8c
to
85528d8
Compare
85528d8
to
88ee8fc
Compare
No description provided.