-
Notifications
You must be signed in to change notification settings - Fork 56
/
tilt-externs.jsext
executable file
·196 lines (159 loc) · 13.7 KB
/
tilt-externs.jsext
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
window["gBrowser"] = gBrowser;
gBrowser["addTab"] = gBrowser.addTab;
gBrowser["selectedTab"] = gBrowser.selectedTab;
gBrowser["tabContainer"] = gBrowser.tabContainer;
gBrowser["contentWindow"] = gBrowser.contentWindow;
gBrowser["selectedBrowser"] = gBrowser.selectedBrowser;
gBrowser.selectedBrowser["parentNode"] = gBrowser.selectedBrowser.parentNode;
gBrowser.selectedBrowser["markupDocumentViewer"] = gBrowser.selectedBrowser.markupDocumentViewer;
gBrowser.selectedBrowser.markupDocumentViewer["fullZoom"] = gBrowser.selectedBrowser.markupDocumentViewer.fullZoom;
window["Services"] = Services;
window["Tilt"] = Tilt;
window["TiltChrome"] = TiltChrome;
window["InspectorUI"] = InspectorUI;
Services["obs"] = Services.obs;
Services.obs["addObserver"] = Services.obs.addObserver;
Services.obs["removeObserver"] = Services.obs.removeObserver;
Services["prefs"] = Services.prefs;
Services.prefs["getBoolPref"] = Services.prefs.getBoolPref;
Services.prefs["setBoolPref"] = Services.prefs.setBoolPref;
InspectorUI["stopInspecting"] = InspectorUI.stopInspecting;
InspectorUI["openInspectorUI"] = InspectorUI.openInspectorUI;
InspectorUI["closeInspectorUI"] = InspectorUI.closeInspectorUI;
InspectorUI["toggleInspectorUI"] = InspectorUI.toggleInspectorUI;
InspectorUI["INSPECTOR_NOTIFICATIONS"] = InspectorUI.INSPECTOR_NOTIFICATIONS;
InspectorUI["INSPECTOR_NOTIFICATIONS"]["OPENED"] = InspectorUI.INSPECTOR_NOTIFICATIONS.OPENED;
InspectorUI["INSPECTOR_NOTIFICATIONS"]["CLOSED"] = InspectorUI.INSPECTOR_NOTIFICATIONS.CLOSED;
Tilt["initialize"] = Tilt.initialize;
Tilt["visualizers"] = Tilt.visualizers;
Tilt["currentWindowId"] = Tilt.currentWindowId;
Tilt.visualizers[Tilt.currentWindowId].isInitialized;
Tilt["Preferences"] = Tilt.Preferences;
Tilt.Preferences["get"] = Tilt.Preferences.get;
Tilt.Preferences["set"] = Tilt.Preferences.set;
Tilt.Preferences["create"] = Tilt.Preferences.create;
TiltChrome["EntryPoint"] = TiltChrome.EntryPoint;
TiltChrome.EntryPoint["includeScripts"] = TiltChrome.EntryPoint.includeScripts;
TiltChrome.EntryPoint["refreshKeyset"] = TiltChrome.EntryPoint.refreshKeyset;
TiltChrome["BrowserOverlay"] = TiltChrome.BrowserOverlay;
TiltChrome.BrowserOverlay["initialize"] = TiltChrome.BrowserOverlay.initialize;
TiltChrome.BrowserOverlay["destroy"] = TiltChrome.BrowserOverlay.destroy;
TiltChrome.BrowserOverlay["nativeImpl"] = TiltChrome.BrowserOverlay.nativeImpl;
TiltChrome["Config"] = TiltChrome.Config;
TiltChrome.Config["Visualization"] = TiltChrome.Config.Visualization;
TiltChrome.Config.Visualization["nativeTiltEnabled"] = TiltChrome.Config.Visualization.nativeTiltEnabled;
TiltChrome.Config.Visualization["nativeTiltHello"] = TiltChrome.Config.Visualization.nativeTiltHello;
TiltChrome.Config.Visualization["refreshVisualization"] = TiltChrome.Config.Visualization.refreshVisualization;
TiltChrome.Config.Visualization["sourceEditorTheme"] = TiltChrome.Config.Visualization.sourceEditorTheme;
TiltChrome.Config.Visualization["hideUserInterfaceAtInit"] = TiltChrome.Config.Visualization.hideUserInterfaceAtInit;
TiltChrome.Config.Visualization["disableMinidomAtInit"] = TiltChrome.Config.Visualization.disableMinidomAtInit;
TiltChrome.Config.Visualization["enableJoystick"] = TiltChrome.Config.Visualization.enableJoystick;
TiltChrome.Config.Visualization["useAccelerometer"] = TiltChrome.Config.Visualization.useAccelerometer;
TiltChrome.Config.Visualization["escapeKeyCloses"] = TiltChrome.Config.Visualization.escapeKeyCloses;
TiltChrome.Config.Visualization["keyShortcutOpenClose"] = TiltChrome.Config.Visualization.keyShortcutOpenClose;
TiltChrome.Config.Visualization["reload"] = TiltChrome.Config.Visualization.reload;
TiltChrome.Config.Visualization["Set"] = TiltChrome.Config.Visualization.Set;
TiltChrome.Config.Visualization.Set["nativeTiltEnabled"] = TiltChrome.Config.Visualization.Set.nativeTiltEnabled;
TiltChrome.Config.Visualization.Set["nativeTiltHello"] = TiltChrome.Config.Visualization.Set.nativeTiltHello;
TiltChrome.Config.Visualization.Set["refreshVisualization"] = TiltChrome.Config.Visualization.Set.refreshVisualization;
TiltChrome.Config.Visualization.Set["sourceEditorTheme"] = TiltChrome.Config.Visualization.Set.sourceEditorTheme;
TiltChrome.Config.Visualization.Set["hideUserInterfaceAtInit"] = TiltChrome.Config.Visualization.Set.hideUserInterfaceAtInit;
TiltChrome.Config.Visualization.Set["disableMinidomAtInit"] = TiltChrome.Config.Visualization.Set.disableMinidomAtInit;
TiltChrome.Config.Visualization.Set["enableJoystick"] = TiltChrome.Config.Visualization.Set.enableJoystick;
TiltChrome.Config.Visualization.Set["useAccelerometer"] = TiltChrome.Config.Visualization.Set.useAccelerometer;
TiltChrome.Config.Visualization.Set["escapeKeyCloses"] = TiltChrome.Config.Visualization.Set.escapeKeyCloses;
TiltChrome.Config.Visualization.Set["keyShortcutOpenClose"] = TiltChrome.Config.Visualization.Set.keyShortcutOpenClose;
TiltChrome["Options"] = TiltChrome.Options;
TiltChrome.Options["windowLoad"] = TiltChrome.Options.windowLoad;
TiltChrome.Options["windowUnload"] = TiltChrome.Options.windowUnload;
TiltChrome.Options["windowKeyUp"] = TiltChrome.Options.windowKeyUp;
TiltChrome.Options["refreshVisualizationCheckboxPressed"] = TiltChrome.Options.refreshVisualizationCheckboxPressed;
TiltChrome.Options["refreshFastestRadioPressed"] = TiltChrome.Options.refreshFastestRadioPressed;
TiltChrome.Options["refreshRecommendedRadioPressed"] = TiltChrome.Options.refreshRecommendedRadioPressed;
TiltChrome.Options["refreshSlowestRadioPressed"] = TiltChrome.Options.refreshSlowestRadioPressed;
TiltChrome.Options["escapeKeyCheckboxPressed"] = TiltChrome.Options.escapeKeyCheckboxPressed;
TiltChrome.Options["hideUICheckboxPressed"] = TiltChrome.Options.hideUICheckboxPressed;
TiltChrome.Options["disableMinidomCheckboxPressed"] = TiltChrome.Options.disableMinidomCheckboxPressed;
TiltChrome.Options["enableJoystickCheckboxPressed"] = TiltChrome.Options.enableJoystickCheckboxPressed;
TiltChrome.Options["useAccelerometerCheckboxPressed"] = TiltChrome.Options.useAccelerometerCheckboxPressed;
TiltChrome.Options["openCloseTextboxFocus"] = TiltChrome.Options.openCloseTextboxFocus;
TiltChrome.Options["openCloseTextboxKeyDown"] = TiltChrome.Options.openCloseTextboxKeyDown;
TiltChrome.Options["openCloseResetButtonPressed"] = TiltChrome.Options.openCloseResetButtonPressed;
window["Components"] = Components;
window["Cc"] = Cc;
window["Ci"] = Ci;
window["Cu"] = Cu;
Components["classes"] = Components.classes;
Components["interfaces"] = Components.interfaces;
Components["utils"] = Components.utils;
Components["isSuccessCode"] = Components.isSuccessCode;
Cu["import"] = Cu.import;
Ci["nsIPrefService"] = Ci.nsIPrefService;
Ci["nsIPromptService"] = Ci.nsIPromptService;
Ci["nsIConsoleService"] = Ci.nsIConsoleService;
Ci["nsIScriptError"] = Ci.nsIScriptError;
Cc["@mozilla.org/preferences-service;1"]["getService"] = Cc["@mozilla.org/preferences-service;1"].getService;
Cc["@mozilla.org/preferences-service;1"].getService(Ci.nsIPrefService)["getBranch"] = Cc["@mozilla.org/preferences-service;1"].getService(Ci.nsIPrefService).getBranch;
Cc["@mozilla.org/embedcomp/prompt-service;1"]["getService"] = Cc["@mozilla.org/embedcomp/prompt-service;1"].getService;
Cc["@mozilla.org/consoleservice;1"]["getService"] = Cc["@mozilla.org/consoleservice;1"].getService;
Cc["@mozilla.org/scripterror;1"]["createInstance"] = Cc["@mozilla.org/scripterror;1"].createInstance;
Cc["@mozilla.org/preferences-service;1"].getService(Ci.nsIPrefService)["getBranch"] = Cc["@mozilla.org/preferences-service;1"].getService(Ci.nsIPrefService).getBranch;
Cc["@mozilla.org/preferences-service;1"].getService(Ci.nsIPrefService).getBranch["prefHasUserValue"] = Cc["@mozilla.org/preferences-service;1"].getService(Ci.nsIPrefService).getBranch.prefHasUserValue;
Cc["@mozilla.org/preferences-service;1"].getService(Ci.nsIPrefService).getBranch["getBoolPref"] = Cc["@mozilla.org/preferences-service;1"].getService(Ci.nsIPrefService).getBranch.getBoolPref;
Cc["@mozilla.org/preferences-service;1"].getService(Ci.nsIPrefService).getBranch["getCharPref"] = Cc["@mozilla.org/preferences-service;1"].getService(Ci.nsIPrefService).getBranch.getCharPref;
Cc["@mozilla.org/preferences-service;1"].getService(Ci.nsIPrefService).getBranch["getIntPref"] = Cc["@mozilla.org/preferences-service;1"].getService(Ci.nsIPrefService).getBranch.getIntPref;
Cc["@mozilla.org/preferences-service;1"].getService(Ci.nsIPrefService).getBranch["setBoolPref"] = Cc["@mozilla.org/preferences-service;1"].getService(Ci.nsIPrefService).getBranch.setBoolPref;
Cc["@mozilla.org/preferences-service;1"].getService(Ci.nsIPrefService).getBranch["setCharPref"] = Cc["@mozilla.org/preferences-service;1"].getService(Ci.nsIPrefService).getBranch.setCharPref;
Cc["@mozilla.org/preferences-service;1"].getService(Ci.nsIPrefService).getBranch["setIntPref"] = Cc["@mozilla.org/preferences-service;1"].getService(Ci.nsIPrefService).getBranch.setIntPref;
Cc["@mozilla.org/embedcomp/prompt-service;1"].getService(Ci.nsIPromptService)["alert"] = Cc["@mozilla.org/embedcomp/prompt-service;1"].getService(Ci.nsIPromptService).alert;
Cc["@mozilla.org/embedcomp/prompt-service;1"].getService(Ci.nsIPromptService)["confirmCheck"] = Cc["@mozilla.org/embedcomp/prompt-service;1"].getService(Ci.nsIPromptService).confirmCheck;
Cc["@mozilla.org/scripterror;1"].createInstance(Ci.nsIScriptError)["init"] = Cc["@mozilla.org/scripterror;1"].createInstance(Ci.nsIScriptError).init;
Cc["@mozilla.org/consoleservice;1"].getService(Ci.nsIConsoleService)["logMessage"] = Cc["@mozilla.org/consoleservice;1"].getService(Ci.nsIConsoleService).logMessage;
Cc["@mozilla.org/consoleservice;1"].getService(Ci.nsIConsoleService)["logStringMessage"] = Cc["@mozilla.org/consoleservice;1"].getService(Ci.nsIConsoleService).logStringMessage;
Ci["nsIFilePicker"] = Ci.nsIFilePicker;
Ci.nsIFilePicker["modeGetFolder"] = Ci.nsIFilePicker.modeGetFolder;
Ci.nsIFilePicker["returnOK"] = Ci.nsIFilePicker.returnOK;
Ci["nsILocalFile"] = Ci.nsILocalFile;
Ci["nsIIOService"] = Ci.nsIIOService;
Ci["nsIScriptableUnicodeConverter"] = Ci.nsIScriptableUnicodeConverter;
Ci["nsIWebBrowserPersist"] = Ci.nsIWebBrowserPersist;
Ci["nsIWebBrowserPersist"].PERSIST_FLAGS_REPLACE_EXISTING_FILES = Ci.nsIWebBrowserPersist.PERSIST_FLAGS_REPLACE_EXISTING_FILES;
Ci["nsIWebBrowserPersist"].PERSIST_FLAGS_AUTODETECT_APPLY_CONVERSION = Ci.nsIWebBrowserPersist.PERSIST_FLAGS_AUTODETECT_APPLY_CONVERSION;
Cc["@mozilla.org/filepicker;1"]["createInstance"] = Cc["@mozilla.org/filepicker;1"].createInstance;
Cc["@mozilla.org/file/local;1"]["createInstance"] = Cc["@mozilla.org/file/local;1"].createInstance;
Cc["@mozilla.org/intl/scriptableunicodeconverter"]["createInstance"] = Cc["@mozilla.org/intl/scriptableunicodeconverter"].createInstance;
Cc["@mozilla.org/embedding/browser/nsWebBrowserPersist;1"]["createInstance"] = Cc["@mozilla.org/embedding/browser/nsWebBrowserPersist;1"].createInstance;
Cc["@mozilla.org/network/io-service;1"]["getService"] = Cc["@mozilla.org/network/io-service;1"].getService;
Cc["@mozilla.org/filepicker;1"].createInstance(Ci.nsIFilePicker)["init"] = Cc["@mozilla.org/filepicker;1"].createInstance(Ci.nsIFilePicker).init;
Cc["@mozilla.org/filepicker;1"].createInstance(Ci.nsIFilePicker)["show"] = Cc["@mozilla.org/filepicker;1"].createInstance(Ci.nsIFilePicker).show;
Cc["@mozilla.org/filepicker;1"].createInstance(Ci.nsIFilePicker)["file"] = Cc["@mozilla.org/filepicker;1"].createInstance(Ci.nsIFilePicker).file;
Cc["@mozilla.org/filepicker;1"].createInstance(Ci.nsIFilePicker).file["reveal"] = Cc["@mozilla.org/filepicker;1"].createInstance(Ci.nsIFilePicker).file.reveal;
Cc["@mozilla.org/filepicker;1"].createInstance(Ci.nsIFilePicker).file["path"] = Cc["@mozilla.org/filepicker;1"].createInstance(Ci.nsIFilePicker).file.path;
Cc["@mozilla.org/file/local;1"].createInstance(Ci.nsILocalFile)["initWithPath"] = Cc["@mozilla.org/file/local;1"].createInstance(Ci.nsILocalFile).initWithPath;
Cc["@mozilla.org/network/io-service;1"].getService(Ci.nsIIOService)["newURI"] = Cc["@mozilla.org/network/io-service;1"].getService(Ci.nsIIOService).newURI;
Cc["@mozilla.org/network/io-service;1"].getService(Ci.nsIIOService)["newFileURI"] = Cc["@mozilla.org/network/io-service;1"].getService(Ci.nsIIOService).newFileURI;
Cc["@mozilla.org/intl/scriptableunicodeconverter"].createInstance(Ci.nsIScriptableUnicodeConverter)["convertToInputStream"] = Cc["@mozilla.org/intl/scriptableunicodeconverter"].createInstance(Ci.nsIScriptableUnicodeConverter).convertToInputStream;
Cc["@mozilla.org/embedding/browser/nsWebBrowserPersist;1"].createInstance(Ci.nsIWebBrowserPersist)["persistFlags"] = Cc["@mozilla.org/embedding/browser/nsWebBrowserPersist;1"].createInstance(Ci.nsIWebBrowserPersist).persistFlags;
Cc["@mozilla.org/embedding/browser/nsWebBrowserPersist;1"].createInstance(Ci.nsIWebBrowserPersist)["saveURI"] = Cc["@mozilla.org/embedding/browser/nsWebBrowserPersist;1"].createInstance(Ci.nsIWebBrowserPersist).saveURI;
window["FileUtils"] = FileUtils;
FileUtils["openSafeFileOutputStream"] = FileUtils.openSafeFileOutputStream;
window["NetUtil"] = NetUtil;
NetUtil["asyncCopy"] = NetUtil.asyncCopy;
window["QueryInterface"] = window.QueryInterface;
Ci["nsIInterfaceRequestor"] = Ci.nsIInterfaceRequestor;
Ci["nsIDOMWindowUtils"] = Ci.nsIDOMWindowUtils;
QueryInterface(Ci.nsIInterfaceRequestor)["getInterface"] = QueryInterface(Ci.nsIInterfaceRequestor).getInterface;
QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIDOMWindowUtils)["garbageCollect"] = QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIDOMWindowUtils).garbageCollect;
window["isNaN"] = window.isNaN;
window["parseInt"] = window.parseInt;
window["parseFloat"] = window.parseFloat;
panel.openPopup;
panel.hidePopup;
canvas.getContext("2d").drawWindow;
canvas.offsetTop;
canvas.offsetLeft;
e.boundingClientRect;
e.accelerationIncludingGravity
iframe.contentWindow.refreshCodeEditor;
iframe.contentWindow.refreshColorPicker;
iframe.contentDocument.colorPicked;