mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 17:02:45 +00:00 
			
		
		
		
	LibWeb+WebContent: Add IPC flow for Inspect DOM Tree
Add `inspect_dom_tree` to WebContentServer and 'did_get_dom_tree' to WebContentClient. These two async methods form a request & response for requesting a JSON representation of the Content's DOM tree.
This commit is contained in:
		
							parent
							
								
									4affe052b8
								
							
						
					
					
						commit
						cd6b9613c5
					
				
					 9 changed files with 31 additions and 0 deletions
				
			
		|  | @ -136,6 +136,11 @@ void WebContentClient::did_get_source(URL const& url, String const& source) | |||
|     m_view.notify_server_did_get_source(url, source); | ||||
| } | ||||
| 
 | ||||
| void WebContentClient::did_get_dom_tree(const String& dom_tree) | ||||
| { | ||||
|     m_view.notify_server_did_get_dom_tree(dom_tree); | ||||
| } | ||||
| 
 | ||||
| void WebContentClient::did_js_console_output(String const& method, String const& line) | ||||
| { | ||||
|     m_view.notify_server_did_js_console_output(method, line); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Adam Hodgen
						Adam Hodgen