mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-27 14:02:07 +00:00 
			
		
		
		
	 41fe02e012
			
		
	
	
		41fe02e012
		
	
	
	
	
		
			
			We renamed the Frame class to BrowsingContext a while back, but forgot to update some variable names.
		
			
				
	
	
		
			31 lines
		
	
	
	
		
			638 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
	
		
			638 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2020-2021, the SerenityOS developers.
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include <AK/Types.h>
 | |
| #include <LibWeb/Forward.h>
 | |
| 
 | |
| namespace Web {
 | |
| 
 | |
| class EditEventHandler {
 | |
| public:
 | |
|     explicit EditEventHandler(HTML::BrowsingContext& browsing_context)
 | |
|         : m_browsing_context(browsing_context)
 | |
|     {
 | |
|     }
 | |
| 
 | |
|     virtual ~EditEventHandler() = default;
 | |
| 
 | |
|     virtual void handle_delete_character_after(const DOM::Position&);
 | |
|     virtual void handle_delete(DOM::Range&);
 | |
|     virtual void handle_insert(DOM::Position, u32 code_point);
 | |
| 
 | |
| private:
 | |
|     HTML::BrowsingContext& m_browsing_context;
 | |
| };
 | |
| 
 | |
| }
 |