B2G/gecko/browser/devtools/tilt/TiltVisualizer.jsm
/**
   * Handles notifications at specific frame counts.
   */
Handles notifications at specific frame counts.
Handles notifications at specific frame counts .
function TV__handleKeyframeNotifications()
  {
    if (!TiltVisualizer.Prefs.introTransition && !this._isExecutingDestruction) {
      this._time = INTRO_TRANSITION_DURATION;
    }
    if (!TiltVisualizer.Prefs.outroTransition && this._isExecutingDestruction) {
      this._time = OUTRO_TRANSITION_DURATION;
    }
    if (this._time >= INTRO_TRANSITION_DURATION &&
       !this._isInitializationFinished &&
       !this._isExecutingDestruction) {
      this._isInitializationFinished = true;
      Services.obs.notifyObservers(null, this.NOTIFICATIONS.INITIALIZED, null);
      if ("function" === typeof this._onInitializationFinished) {
        this._onInitializationFinished();
      }
    }
    if (this._time >= OUTRO_TRANSITION_DURATION &&
       !this._isDestructionFinished &&
        this._isExecutingDestruction) {
      this._isDestructionFinished = true;
      Services.obs.notifyObservers(null, this.NOTIFICATIONS.BEFORE_DESTROYED, null);
      if ("function" === typeof this._onDestructionFinished) {
        this._onDestructionFinished();
      }
    }
  }
function TV__handleKeyframeNotifications ( ) { if ( ! TiltVisualizer . Prefs . introTransition && ! this . _isExecutingDestruction ) { this . _time = INTRO_TRANSITION_DURATION ; } if ( ! TiltVisualizer . Prefs . outroTransition && this . _isExecutingDestruction ) { this . _time = OUTRO_TRANSITION_DURATION ; } if ( this . _time >= INTRO_TRANSITION_DURATION && ! this . _isInitializationFinished && ! this . _isExecutingDestruction ) { this . _isInitializationFinished = true ; Services . obs . notifyObservers ( null , this . NOTIFICATIONS . INITIALIZED , null ) ; if ( "function" === typeof this . _onInitializationFinished ) { this . _onInitializationFinished ( ) ; } } if ( this . _time >= OUTRO_TRANSITION_DURATION && ! this . _isDestructionFinished && this . _isExecutingDestruction ) { this . _isDestructionFinished = true ; Services . obs . notifyObservers ( null , this . NOTIFICATIONS . BEFORE_DESTROYED , null ) ; if ( "function" === typeof this . _onDestructionFinished ) { this . _onDestructionFinished ( ) ; } } }
Handles notifications at specific frame counts.
Handles notifications at specific frame counts .