B2G/gecko/browser/devtools/highlighter/highlighter.jsm
/**
   * Generic event handler.
   *
   * @param nsIDOMEvent aEvent
   *        The DOM event object.
   */
Generic event handler.
@param nsIDOMEvent aEvent
The DOM event object.
Generic event handler . @param nsIDOMEvent aEvent The DOM event object .
function Highlighter_handleEvent(aEvent)
  {
    switch (aEvent.type) {
      case "click":
        this.handleClick(aEvent);
        break;
      case "mousemove":
        this.brieflyIgnorePageEvents();
        this.handleMouseMove(aEvent);
        break;
      case "resize":
        this.computeZoomFactor();
        break;
      case "MozAfterPaint":
      case "scroll":
        this.brieflyDisableTransitions();
        this.invalidateSize();
        break;
      case "dblclick":
      case "mousedown":
      case "mouseup":
        aEvent.stopPropagation();
        aEvent.preventDefault();
        break;
    }
  }
function Highlighter_handleEvent ( aEvent ) { switch ( aEvent . type ) { case "click" : this . handleClick ( aEvent ) ; break ; case "mousemove" : this . brieflyIgnorePageEvents ( ) ; this . handleMouseMove ( aEvent ) ; break ; case "resize" : this . computeZoomFactor ( ) ; break ; case "MozAfterPaint" : case "scroll" : this . brieflyDisableTransitions ( ) ; this . invalidateSize ( ) ; break ; case "dblclick" : case "mousedown" : case "mouseup" : aEvent . stopPropagation ( ) ; aEvent . preventDefault ( ) ; break ; } }
Generic event handler.
Generic event handler .