Package com.google.speedtracer.client.model

Examples of com.google.speedtracer.client.model.PaintEvent


      case TimerCleared.TYPE:
        details.put("Cleared Timer Id", new StringCellRenderer(
            e.<TimerCleared> cast().getTimerId() + ""));
        break;
      case PaintEvent.TYPE:
        PaintEvent paintEvent = e.cast();
        details.put("Origin", new StringCellRenderer(paintEvent.getX() + ", "
            + paintEvent.getY()));
        details.put("Size", new StringCellRenderer(paintEvent.getWidth()
            + " x " + paintEvent.getHeight()));
        break;
      case ParseHtmlEvent.TYPE:
        ParseHtmlEvent parseHtmlEvent = e.cast();
        details.put("Line Number", new StringCellRenderer(
            parseHtmlEvent.getStartLine() + ""));
View Full Code Here


   *   Layout:50
   *   Layout:50
   *   Layout:50
   */
  public void testThreeLayoutsWithHint() {
    PaintEvent input = createPaintEvent(2000);
    input.addChild(createLayoutEvent(50));
    input.addChild(createLayoutEvent(50));
    input.addChild(createLayoutEvent(50));

    String hintDescription = "Event triggered 3 layouts taking 150ms.";
    HintRecord expectedHint =
        HintRecord.create(rule.getHintletName(), HintletEventRecordBuilder.DEFAULT_TIME,
            HintRecord.SEVERITY_WARNING, hintDescription,
View Full Code Here

TOP

Related Classes of com.google.speedtracer.client.model.PaintEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.