| 581 | get sync() { return bridgeLog.DoActionAndLog(() => { return myBrowser.storage.local; }, "storage.sync", undefined, "storage.local"); } |
| 582 | } |
| 583 | class EdgeTabsBridge { |
| 584 | get onActivated() { return bridgeLog.DoActionAndLog(() => { return myBrowser.tabs.onActivated; }, "tabs.onActivated"); } |
| 585 | get onCreated() { return bridgeLog.DoActionAndLog(() => { return myBrowser.tabs.onCreated; }, "tabs.onCreated"); } |
| 586 | get onRemoved() { return bridgeLog.DoActionAndLog(() => { return myBrowser.tabs.onRemoved; }, "tabs.onRemoved"); } |
| 587 | get onReplaced() { return bridgeLog.DoActionAndLog(() => { return myBrowser.tabs.onReplaced; }, "tabs.onReplaced"); } |
| 588 | get onUpdated() { return bridgeLog.DoActionAndLog(() => { return myBrowser.tabs.onUpdated; }, "tabs.onUpdated"); } |
| 589 | create(createProperties, callback) { |
| 590 | bridgeLog.DoActionAndLog(() => { |
| 591 | if (typeof callback !== "undefined" && typeof callback !== "null") { |
| 592 | myBrowser.tabs.create(createProperties, callback); |
| 593 | } |
| 594 | else { |
| 595 | myBrowser.tabs.create(createProperties); |
| 596 | } |
| 597 | }, "tabs.create"); |
| 598 | } |
| 599 | detectLanguage(tabId, callback) { |
| 600 | bridgeLog.DoActionAndLog(() => { |
| 601 | myBrowser.tabs.detectLanguage(tabId, callback); |
| 602 | }, "tabs.detectLanguage"); |
| 603 | } |
| 604 | executeScript(tabId, details, callback) { |
| 605 | bridgeLog.DoActionAndLog(() => { |
| 606 | if (typeof callback !== "undefined" && typeof callback !== "null") { |
| 607 | myBrowser.tabs.executeScript(tabId, details, callback); |
| 608 | } |
| 609 | else { |
| 610 | myBrowser.tabs.executeScript(tabId, details); |
| 611 | } |
| 612 | }, "tabs.executeScript"); |
| 613 | } |
| 614 | get(tabId, callback) { |
| 615 | bridgeLog.DoActionAndLog(() => { |
| 616 | myBrowser.tabs.get(tabId, callback); |
| 617 | }, "tabs.get"); |
| 618 | } |
| 619 | getCurrent(callback) { |
| 620 | bridgeLog.DoActionAndLog(() => { |
| 621 | myBrowser.tabs.getCurrent(callback); |
| 622 | }, "tabs.getCurrent"); |
| 623 | } |
| 624 | insertCSS(tabId, details, callback) { |
| 625 | bridgeLog.DoActionAndLog(() => { |
| 626 | if (typeof callback !== "undefined" && typeof callback !== "null") { |
| 627 | myBrowser.tabs.insertCSS(tabId, details, callback); |
| 628 | } |
| 629 | else { |
| 630 | myBrowser.tabs.insertCSS(tabId, details); |
| 631 | } |
| 632 | }, "tabs.insertCSS"); |
| 633 | } |
| 634 | query(queryInfo, callback) { |
| 635 | bridgeLog.DoActionAndLog(() => { |
| 636 | myBrowser.tabs.query(queryInfo, callback); |
| 637 | }, "tabs.query"); |
| 638 | } |
| 639 | remove(tabId, callback) { |
| 640 | bridgeLog.DoActionAndLog(() => { |
nothing calls this directly
no outgoing calls
no test coverage detected