summaryrefslogtreecommitdiffstats
path: root/mobile/android/components/extensions/test/mochitest/head.js
blob: be9683682f1c8db355d77f3d46ca1b1da7f366ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"use strict";

/* exported isPageActionShown clickPageAction */

const {classes: Cc, interfaces: Ci, utils: Cu} = Components;

Cu.import("resource://gre/modules/PageActions.jsm");

function isPageActionShown(uuid) {
  return PageActions.isShown(uuid);
}

function clickPageAction(uuid) {
  PageActions.synthesizeClick(uuid);
}