   # The menu is expected to show asynchronously.
   setImmediate ->
     menu.popup remote.getCurrentWindow()
-    InspectorFrontendAPI.contextMenuCleared()
+    DevToolsAPI.contextMenuCleared()
 
 showFileChooserDialog = (callback) ->
   remote = require 'remote'

  blob = new Blob([fs.readFileSync(path)])
  blob.name = path
  blob

          label: item.label
          enabled: item.enabled
      if item.id?
        transformed.click = -> DevToolsAPI.contextMenuItemSelected item.id
      template.push transformed
  template

createMenu = (x, y, items, document) ->
  remote = require 'remote'
  Menu = remote.require 'menu'

