summaryrefslogtreecommitdiffstats
path: root/devtools/shared/specs
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-01 13:13:33 +0100
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-01 13:13:33 +0100
commit12ea5683594229407ae1852969b6417a59ae16e1 (patch)
treef40c8fc82a884d9689ff0aea0c6f07ba9604f156 /devtools/shared/specs
parent644e9db1092df1477b1facc52cd3ee45ebd13040 (diff)
downloadUXP-12ea5683594229407ae1852969b6417a59ae16e1.tar
UXP-12ea5683594229407ae1852969b6417a59ae16e1.tar.gz
UXP-12ea5683594229407ae1852969b6417a59ae16e1.tar.lz
UXP-12ea5683594229407ae1852969b6417a59ae16e1.tar.xz
UXP-12ea5683594229407ae1852969b6417a59ae16e1.zip
DevTools - style editor - StyleSheetsActor should use the parent tabActor to retrieve the list of windows and react to new/removed windows
https://github.com/MoonchildProductions/moebius/pull/124
Diffstat (limited to 'devtools/shared/specs')
-rw-r--r--devtools/shared/specs/stylesheets.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/devtools/shared/specs/stylesheets.js b/devtools/shared/specs/stylesheets.js
index c89a7c088..fc75281f8 100644
--- a/devtools/shared/specs/stylesheets.js
+++ b/devtools/shared/specs/stylesheets.js
@@ -105,6 +105,14 @@ exports.styleSheetSpec = styleSheetSpec;
const styleSheetsSpec = generateActorSpec({
typeName: "stylesheets",
+ events: {
+ "stylesheet-added": {
+ type: "stylesheetAdded",
+ sheet: Arg(0, "stylesheet"),
+ isNew: Arg(1, "boolean")
+ },
+ },
+
methods: {
getStyleSheets: {
request: {},