123456 |
- // Licensed Materials - Property of IBM
- // IBM Cognos Products: hal
- // (C) Copyright IBM Corp. 2003, 2017.
- // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- var G_CaptureManager={};G_CaptureManager._h9S1=function(){if(!this._hH32){this._hH32=["mousedown", "mouseup", "mousemove", "click", "dblclick", "mouseover", "mouseout" ];if(!G_BrowserInfo.M_bIsTouchDevice||G_BrowserInfo.M_bIsPointerEnabled){this._hH32=this._hH32.concat( ["keydown", "keyup", "keypress"] );}if(G_BrowserInfo.M_bIsPointerEnabled){this._hH32=this._hH32.concat( ["pointerdown", "pointerup", "pointermove", "pointerover", "pointerout"] );}else if(G_BrowserInfo.M_bIsTouchDevice){this._hH32=this._hH32.concat( ["touchstart", "touchmove", "touchend", "touchcancel"] );}if(G_HAL.M_oLibraries["hal"]["enableAccessibility"]){this._hH32=this._hH32.concat( ["focus", "blur"] );}}return this._hH32;};G_CaptureManager.F_StartCapture=function(_hMP1){if(this._hYL1){G_Debug.F_Print("start capture is stopping a previous capture");this.F_StopCapture();}var _h9B2=this._hAB2=[document];var nl=document.getElementsByTagName("IFRAME");for(var i=0; i<nl.length;++i){try{_h9B2.push(nl.item(i).contentWindow.document);}catch(e){}}this._hYL1=true;this._hAS1=_hMP1;this._hTL(true);};G_CaptureManager.F_StopCapture=function(){if(!this._hYL1){G_Debug.F_Alert("Stoping capture without capture being started.");return;}var _h8Q=this._hAS1?this._hAS1.onStopCapture:null; this._hYL1=false;this._hAS1=null;this._hTL(false);this._hAB2=null;if(_h8Q){_h8Q();}};G_CaptureManager._hV71=function(e){G_CaptureManager.F_StopCapture();};G_CaptureManager._hTL=function(_hLC2){if(_hLC2){window.addEventListener("blur", this._hV71);}else{window.removeEventListener("blur", this._hV71);}for(var id=0; id<this._hAB2.length;++id){var d=this._hAB2[id];var _hI32=this._h9S1();for(var i=0;i<_hI32.length;i++){if(_hLC2){d.addEventListener(_hI32[i], this._hRC, true);}else{d.removeEventListener(_hI32[i], this._hRC, true);}}}};G_CaptureManager._hRC=function(e){if(G_CaptureManager._hAS1){var _hBS1=G_CaptureManager._hAS1["on"+e.type];if(_hBS1){_hBS1.apply(this, arguments);return;}}e.stopPropagation();};
|