| 
									
										
										
										
											2020-06-03 07:51:13 +08:00
										 |  |  | /* This Source Code Form is subject to the terms of the Mozilla Public | 
					
						
							|  |  |  |  * License, v. 2.0. If a copy of the MPL was not distributed with this | 
					
						
							|  |  |  |  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class AccessibilityHandler { | 
					
						
							|  |  |  |   constructor(session, contentChannel) { | 
					
						
							| 
									
										
										
										
											2020-10-02 19:13:42 +08:00
										 |  |  |     this._contentPage = contentChannel.connect('page'); | 
					
						
							| 
									
										
										
										
											2020-06-03 07:51:13 +08:00
										 |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   async getFullAXTree(params) { | 
					
						
							|  |  |  |     return await this._contentPage.send('getFullAXTree', params); | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   dispose() { | 
					
						
							|  |  |  |     this._contentPage.dispose(); | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | var EXPORTED_SYMBOLS = ['AccessibilityHandler']; | 
					
						
							|  |  |  | this.AccessibilityHandler = AccessibilityHandler; |