2020-06-02 16:51:13 -07: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 04:13:42 -07:00
|
|
|
this._contentPage = contentChannel.connect('page');
|
2020-06-02 16:51:13 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
async getFullAXTree(params) {
|
|
|
|
return await this._contentPage.send('getFullAXTree', params);
|
|
|
|
}
|
|
|
|
|
|
|
|
dispose() {
|
|
|
|
this._contentPage.dispose();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
var EXPORTED_SYMBOLS = ['AccessibilityHandler'];
|
|
|
|
this.AccessibilityHandler = AccessibilityHandler;
|