Example usage for com.google.gwt.chrome.crx.client Tabs create

List of usage examples for com.google.gwt.chrome.crx.client Tabs create

Introduction

In this page you can find the example usage for com.google.gwt.chrome.crx.client Tabs create.

Prototype

public static native void create(String url) ;

Source Link

Document

An overload of Tabs#create(String,int,int,boolean,OnTabCallback) that only takes a url.

Usage

From source file:com.google.speedtracer.client.view.Controller.java

License:Apache License

private void saveRecords(JSOArray<String> visitedUrls, String version, JSOArray<String> traceData) {
    // Create expando on our View so that the tab we create can callback and
    // receive the record data and file information.
    setupViewCallback(visitedUrls, version, traceData);

    // Create a new tab at the save data template page. Give it the same query
    // string as our own.
    Tabs.create(
            Chrome.getExtension().getUrl("monitor/SpeedTracerData.html") + Window.Location.getQueryString());
}