Merge mozilla-central to autoland. CLOSED TREE
[gecko.git] / toolkit / actors / UnselectedTabHoverChild.sys.mjs
blob1cf1ddb9fd5a094bdf17d58defdeb9d250e6a26c
1 /* vim: set ts=2 sw=2 sts=2 et tw=80: */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3  * License, v. 2.0. If a copy of the MPL was not distributed with this
4  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 export class UnselectedTabHoverChild extends JSWindowActorChild {
7   receiveMessage(message) {
8     Services.obs.notifyObservers(
9       this.contentWindow,
10       "unselected-tab-hover",
11       message.data.hovered
12     );
13   }
15   handleEvent(event) {
16     this.sendAsyncMessage("UnselectedTabHover:Toggle", {
17       enable: event.type == "UnselectedTabHover:Enable",
18     });
19   }