PageRenderTime 21ms CodeModel.GetById 18ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/Frameworks/AppKit/browser.platform/CPFlashView.j

http://github.com/jfahrenkrug/MapKit-HelloWorld
Unknown | 59 lines | 59 code | 0 blank | 0 comment | 0 complexity | fd8842c5db71690da510a2a2b83d99c9 MD5 | raw file
 1i;19;CPDOMWindowBridge.ji;14;CPFlashMovie.ji;8;CPView.jc;2148;
 2var _1=objj_allocateClassPair(CPView,"CPFlashView"),_2=_1.isa;
 3class_addIvars(_1,[new objj_ivar("_flashMovie"),new objj_ivar("_DOMEmbedElement"),new objj_ivar("_DOMMParamElement"),new objj_ivar("_DOMObjectElement")]);
 4objj_registerClassPair(_1);
 5objj_addClassForBundle(_1,objj_getBundleWithPath(OBJJ_CURRENT_BUNDLE.path));
 6class_addMethods(_1,[new objj_method(sel_getUid("initWithFrame:"),function(_3,_4,_5){
 7with(_3){
 8_3=objj_msgSendSuper({receiver:_3,super_class:objj_getClass("CPView")},"initWithFrame:",_5);
 9if(_3){
10_DOMObjectElement=document.createElement("object");
11_DOMObjectElement.width="100%";
12_DOMObjectElement.height="100%";
13_DOMObjectElement.style.top="0px";
14_DOMObjectElement.style.left="0px";
15_DOMParamElement=document.createElement("param");
16_DOMParamElement.name="movie";
17_DOMObjectElement.appendChild(_DOMParamElement);
18var _6=document.createElement("param");
19_6.name="wmode";
20_6.value="transparent";
21_DOMObjectElement.appendChild(_6);
22_DOMEmbedElement=document.createElement("embed");
23_DOMEmbedElement.type="application/x-shockwave-flash";
24_DOMEmbedElement.setAttribute("wmode","transparent");
25_DOMEmbedElement.width="100%";
26_DOMEmbedElement.height="100%";
27_DOMElement.appendChild(_DOMEmbedElement);
28_DOMElement.appendChild(_DOMObjectElement);
29}
30return _3;
31}
32}),new objj_method(sel_getUid("setFlashMovie:"),function(_7,_8,_9){
33with(_7){
34if(_flashMovie==_9){
35return;
36}
37_flashMovie=_9;
38_DOMParamElement.value=_9._fileName;
39if(_DOMEmbedElement){
40_DOMEmbedElement.src=_9._fileName;
41}
42}
43}),new objj_method(sel_getUid("flashMovie"),function(_a,_b){
44with(_a){
45return _flashMovie;
46}
47}),new objj_method(sel_getUid("mouseDragged:"),function(_c,_d,_e){
48with(_c){
49objj_msgSend(objj_msgSend(CPDOMWindowBridge,"sharedDOMWindowBridge"),"_propagateCurrentDOMEvent:",YES);
50}
51}),new objj_method(sel_getUid("mouseDown:"),function(_f,_10,_11){
52with(_f){
53objj_msgSend(objj_msgSend(CPDOMWindowBridge,"sharedDOMWindowBridge"),"_propagateCurrentDOMEvent:",YES);
54}
55}),new objj_method(sel_getUid("mouseUp:"),function(_12,_13,_14){
56with(_12){
57objj_msgSend(objj_msgSend(CPDOMWindowBridge,"sharedDOMWindowBridge"),"_propagateCurrentDOMEvent:",YES);
58}
59})]);