use of com.facebook.stetho.common.UncheckedCallable in project stetho by facebook.
the class DOM method getDocument.
@ChromeDevtoolsMethod
public JsonRpcResult getDocument(JsonRpcPeer peer, JSONObject params) {
final GetDocumentResponse result = new GetDocumentResponse();
result.root = mDocument.postAndWait(new UncheckedCallable<Node>() {
@Override
public Node call() {
Object element = mDocument.getRootElement();
return createNodeForElement(element, mDocument.getDocumentView(), null);
}
});
return result;
}
Aggregations