B2G/gecko/image/test/mochitest/imgutils.js
// JS implementation of imgIDecoderObserver with stubs for all of its methods.
JS implementation of imgIDecoderObserver with stubs for all of its methods.
JS implementation of imgIDecoderObserver with stubs for all of its methods .
function ImageDecoderObserverStub()
{
  this.onStartRequest = function onStartRequest(aRequest)                 {}
  this.onStartDecode = function onStartDecode(aRequest)                   {}
  this.onStartContainer = function onStartContainer(aRequest, aContainer) {}
  this.onStartFrame = function onStartFrame(aRequest, aFrame)             {}
  this.onStopFrame = function onStopFrame(aRequest, aFrame)               {}
  this.onStopContainer = function onStopContainer(aRequest, aContainer)   {}
  this.onStopDecode = function onStopDecode(aRequest, status, statusArg)  {}
  this.onStopRequest = function onStopRequest(aRequest, aIsLastPart)      {}
}
function ImageDecoderObserverStub ( ) { this . onStartRequest = function onStartRequest ( aRequest ) { } this . onStartDecode = function onStartDecode ( aRequest ) { } this . onStartContainer = function onStartContainer ( aRequest , aContainer ) { } this . onStartFrame = function onStartFrame ( aRequest , aFrame ) { } this . onStopFrame = function onStopFrame ( aRequest , aFrame ) { } this . onStopContainer = function onStopContainer ( aRequest , aContainer ) { } this . onStopDecode = function onStopDecode ( aRequest , status , statusArg ) { } this . onStopRequest = function onStopRequest ( aRequest , aIsLastPart ) { } }
JS implementation of imgIDecoderObserver with stubs for all of its methods.
JS implementation of imgIDecoderObserver with stubs for all of its methods .