Example usage for com.google.gwt.chrome.crx.client Debugger getEvent

List of usage examples for com.google.gwt.chrome.crx.client Debugger getEvent

Introduction

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

Prototype

public native static DebuggerEvent getEvent() ;

Source Link

Usage

From source file:com.google.speedtracer.client.model.ChromeDebuggerDataInstance.java

License:Apache License

private static void ensureRecordRouter() {
    if (recordRouter == null) {
        recordRouter = JsIntegerMap.create();
        Debugger.getEvent().addListener(new DebuggerEvent.Listener() {
            public void onEvent(Debuggee source, String method, RawDebuggerEventRecord params) {
                Proxy proxy = recordRouter.get(source.getTabId());
                if (proxy == null) {

                    // Some other extension must be debugging this.
                    return;
                }/*  ww  w.j av  a2  s .c o  m*/

                // Dispatch the event to this guy.
                proxy.dispatchDebuggerEventRecord(method, params);
            }
        });
    }
}