MCPcopy Index your code
hub / github.com/jabbany/CommentCoreLibrary / openWindow

Function openWindow

src/scripting/api/Runtime/Permissions.ts:29–65  ·  view source on GitHub ↗
(url:string, params?:any, callback:Function = null)

Source from the content-addressed store, hash-verified

27 }
28
29 export function openWindow(url:string, params?:any, callback:Function = null):void{
30 __channel("Runtime:PrivilegedAPI", {
31 "method": "openWindow",
32 "params":[url, params]
33 }, function(windowId){
34 // Create a small compact window object
35 var WND:Object = {
36 "moveTo":function(x,y){
37 __pchannel("Runtime:PrivilegedAPI",{
38 "method":"window",
39 "params":[windowId, "moveTo",[x,y]]
40 });
41 },
42 "resizeTo":function(w,h){
43 __pchannel("Runtime:PrivilegedAPI",{
44 "method":"window",
45 "params":[windowId, "resizeTo",[w,h]]
46 });
47 },
48 "focus":function(){
49 __pchannel("Runtime:PrivilegedAPI",{
50 "method":"window",
51 "params":[windowId, "focus"]
52 });
53 },
54 "close":function(){
55 __pchannel("Runtime:PrivilegedAPI",{
56 "method":"window",
57 "params":[windowId, "close"]
58 });
59 }
60 };
61 if(callback !== null){
62 callback(WND);
63 }
64 });
65 }
66
67 export function injectStyle(referenceObject:string, style:Object):void{
68 __pchannel("Runtime:PrivilegedAPI",{

Callers

nothing calls this directly

Calls 2

__channelFunction · 0.85
__pchannelFunction · 0.85

Tested by

no test coverage detected