dom.rs 646 B

12345678910111213141516171819202122232425262728293031
  1. //! webview dom
  2. use dioxus_core::DomEdit;
  3. // pub struct WebviewRegistry {}
  4. // impl WebviewRegistry {
  5. // pub fn new() -> Self {
  6. // Self {}
  7. // }
  8. // }
  9. pub struct WebviewDom<'bump> {
  10. pub edits: Vec<DomEdit<'bump>>,
  11. pub node_counter: u64,
  12. // pub registry: WebviewRegistry,
  13. }
  14. impl WebviewDom<'_> {
  15. pub fn new() -> Self {
  16. Self {
  17. edits: Vec::new(),
  18. node_counter: 0,
  19. // registry,
  20. }
  21. }
  22. // // Finish using the dom (for its edit list) and give back the node and event registry
  23. // pub fn consume(self) -> WebviewRegistry {
  24. // self.registry
  25. // }
  26. }