mirror of
				https://bitbucket.org/chromiumembedded/cef
				synced 2025-06-05 21:39:12 +02:00 
			
		
		
		
	Add CefPermissionHandler callback for media access (fixes issue #2582)
This commit is contained in:
		| @@ -53,6 +53,7 @@ | ||||
| #include "include/cef_keyboard_handler.h" | ||||
| #include "include/cef_life_span_handler.h" | ||||
| #include "include/cef_load_handler.h" | ||||
| #include "include/cef_permission_handler.h" | ||||
| #include "include/cef_print_handler.h" | ||||
| #include "include/cef_process_message.h" | ||||
| #include "include/cef_render_handler.h" | ||||
| @@ -132,6 +133,14 @@ class CefClient : public virtual CefBaseRefCounted { | ||||
|   /*--cef()--*/ | ||||
|   virtual CefRefPtr<CefFrameHandler> GetFrameHandler() { return nullptr; } | ||||
|  | ||||
|   /// | ||||
|   // Return the handler for permission requests. | ||||
|   /// | ||||
|   /*--cef()--*/ | ||||
|   virtual CefRefPtr<CefPermissionHandler> GetPermissionHandler() { | ||||
|     return nullptr; | ||||
|   } | ||||
|  | ||||
|   /// | ||||
|   // Return the handler for JavaScript dialogs. If no handler is provided the | ||||
|   // default implementation will be used. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user