getProcessIdForTab method

Future<int> getProcessIdForTab(
  1. int tabId
)

Returns the ID of the renderer process for the specified tab. |tabId|: The ID of the tab for which the renderer process ID is to be returned.

Implementation

Future<int> getProcessIdForTab(int tabId) async {
  var $res = await $js.chrome.processes.getProcessIdForTab(tabId).toDart;
  return $res.toDartInt;
}