Tabs.js 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. "use strict";
  2. exports.queryImpl = function (query) {
  3. return function () {
  4. return browser.tabs.query(query);
  5. };
  6. };
  7. exports["browserRemove'"] = function (tabs) {
  8. return function () {
  9. return browser.tabs.remove(tabs);
  10. };
  11. };
  12. exports["browserUpdate'"] = function () {
  13. return function (updateProperties) {
  14. return function (tabId) {
  15. return function () {
  16. return browser.tabs.update(tabId, updateProperties);
  17. };
  18. };
  19. };
  20. };
  21. exports["browserMoveTab"] = function (tabIds) {
  22. return function (moveProperties) {
  23. return function () {
  24. return browser.tabs.move(tabIds, moveProperties);
  25. };
  26. };
  27. };
  28. exports["browserCreateTab"] = function (union) {
  29. return function (createProperties) {
  30. return function () {
  31. return browser.tabs.create(createProperties);
  32. };
  33. };
  34. };
  35. exports["browserHideTabs"] = function (tabIds) {
  36. return function () {
  37. return browser.tabs.hide(tabIds);
  38. }
  39. }
  40. exports["browserShowTabs"] = function (tabIds) {
  41. return function () {
  42. return browser.tabs.show(tabIds);
  43. }
  44. }