Package com.google.speedtracer.client.SourceViewer

Examples of com.google.speedtracer.client.SourceViewer.SourceViewerInitializedCallback


    if (sourceViewer == null) {
      // Attach the container above the table so that the source viewer is
      // positioned independent of the table scroll and of the currently
      // viewed row.
      SourceViewer.create(eventWaterfall.getTableContents().getParentElement(),
          resources, new SourceViewerInitializedCallback() {
            public void onSourceViewerInitialized(SourceViewer viewer) {
              EventWaterfallRowDetails.this.sourceViewer = viewer;
              // Position the source viewer so that it fills half the
              // details view. Below the table header, and flush with the
              // bottom of the window.
View Full Code Here


  public void showSource(final String resourceUrl,
      SourceViewerServer sourceViewerServer, final int lineNumber,
      final int column, String absoluteFilePath) {
    if (sourceViewer == null) {
      SourceViewer.create(elem, resources,
          new SourceViewerInitializedCallback() {
            public void onSourceViewerInitialized(SourceViewer viewer) {
              sourceViewer = viewer;
              viewer.loadResource(resourceUrl,
                  new MySourceViewerLoadedCallback(resourceUrl, lineNumber));
            }
View Full Code Here

   * to log to the JUNIT logger. We detect them simply as timeouts.
   */
  public void testFailedFetch() {
    SourceViewer.Resources resources = GWT.create(SourceViewer.Resources.class);
    SourceViewer.create(Document.get().getBody(), resources,
        new SourceViewerInitializedCallback() {

          public void onSourceViewerInitialized(SourceViewer viewer) {
            viewer.loadResource("does-not-existsource.js",
                new SourceViewerLoadedCallback() {
                  public void onSourceFetchFail(int statusCode,
View Full Code Here

    Resources testResources = GWT.create(Resources.class);
    final String[] testSource = testResources.testSource().getText().split(
        "\n\r|\n");
    SourceViewer.Resources resources = GWT.create(SourceViewer.Resources.class);
    SourceViewer.create(Document.get().getBody(), resources,
        new SourceViewerInitializedCallback() {

          public void onSourceViewerInitialized(SourceViewer viewer) {
            viewer.loadResource("test-source.js",
                new SourceViewerLoadedCallback() {
View Full Code Here

   * and match styles.
   */
  public void testHighlightRow() {
    final SourceViewer.Resources resources = GWT.create(SourceViewer.Resources.class);
    SourceViewer.create(Document.get().getBody(), resources,
        new SourceViewerInitializedCallback() {

          public void onSourceViewerInitialized(SourceViewer viewer) {
            viewer.loadResource("test-source.js",
                new SourceViewerLoadedCallback() {

View Full Code Here

TOP

Related Classes of com.google.speedtracer.client.SourceViewer.SourceViewerInitializedCallback

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.