Guest User

Untitled

a guest
Oct 28th, 2013
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --- out/Debug/gen/blink/InspectorBackendDispatcher.cpp.bak  2013-10-28 11:41:41.227179638 -0400
  2. +++ out/Debug/gen/blink/InspectorBackendDispatcher.cpp  2013-10-28 12:09:54.623228695 -0400
  3. @@ -17,242 +17,482 @@
  4.  
  5.  namespace WebCore {
  6.  
  7. -const char* InspectorBackendDispatcher::commandNames[] = {
  8. -    "Inspector.enable",
  9. -    "Inspector.disable",
  10. -    "Inspector.reset",
  11. -    "Memory.getDOMCounters",
  12. -    "Page.enable",
  13. -    "Page.disable",
  14. -    "Page.addScriptToEvaluateOnLoad",
  15. -    "Page.removeScriptToEvaluateOnLoad",
  16. -    "Page.reload",
  17. -    "Page.navigate",
  18. -    "Page.getNavigationHistory",
  19. -    "Page.navigateToHistoryEntry",
  20. -    "Page.getCookies",
  21. -    "Page.deleteCookie",
  22. -    "Page.getResourceTree",
  23. -    "Page.getResourceContent",
  24. -    "Page.searchInResource",
  25. -    "Page.setDocumentContent",
  26. -    "Page.setDeviceMetricsOverride",
  27. -    "Page.setShowPaintRects",
  28. -    "Page.setShowDebugBorders",
  29. -    "Page.setShowFPSCounter",
  30. -    "Page.setContinuousPaintingEnabled",
  31. -    "Page.setShowScrollBottleneckRects",
  32. -    "Page.getScriptExecutionStatus",
  33. -    "Page.setScriptExecutionDisabled",
  34. -    "Page.setGeolocationOverride",
  35. -    "Page.clearGeolocationOverride",
  36. -    "Page.setDeviceOrientationOverride",
  37. -    "Page.clearDeviceOrientationOverride",
  38. -    "Page.setTouchEmulationEnabled",
  39. -    "Page.setEmulatedMedia",
  40. -    "Page.captureScreenshot",
  41. -    "Page.canScreencast",
  42. -    "Page.startScreencast",
  43. -    "Page.stopScreencast",
  44. -    "Page.handleJavaScriptDialog",
  45. -    "Page.setShowViewportSizeOnResize",
  46. -    "Page.setForceCompositingMode",
  47. -    "Runtime.evaluate",
  48. -    "Runtime.callFunctionOn",
  49. -    "Runtime.getProperties",
  50. -    "Runtime.releaseObject",
  51. -    "Runtime.releaseObjectGroup",
  52. -    "Runtime.run",
  53. -    "Runtime.enable",
  54. -    "Runtime.disable",
  55. -    "Console.enable",
  56. -    "Console.disable",
  57. -    "Console.clearMessages",
  58. -    "Console.setMonitoringXHREnabled",
  59. -    "Console.addInspectedNode",
  60. -    "Console.addInspectedHeapObject",
  61. -    "Network.enable",
  62. -    "Network.disable",
  63. -    "Network.setUserAgentOverride",
  64. -    "Network.setExtraHTTPHeaders",
  65. -    "Network.getResponseBody",
  66. -    "Network.replayXHR",
  67. -    "Network.canClearBrowserCache",
  68. -    "Network.clearBrowserCache",
  69. -    "Network.canClearBrowserCookies",
  70. -    "Network.clearBrowserCookies",
  71. -    "Network.setCacheDisabled",
  72. -    "Network.loadResourceForFrontend",
  73. -    "Database.enable",
  74. -    "Database.disable",
  75. -    "Database.getDatabaseTableNames",
  76. -    "Database.executeSQL",
  77. -    "IndexedDB.enable",
  78. -    "IndexedDB.disable",
  79. -    "IndexedDB.requestDatabaseNames",
  80. -    "IndexedDB.requestDatabase",
  81. -    "IndexedDB.requestData",
  82. -    "IndexedDB.clearObjectStore",
  83. -    "DOMStorage.enable",
  84. -    "DOMStorage.disable",
  85. -    "DOMStorage.getDOMStorageItems",
  86. -    "DOMStorage.setDOMStorageItem",
  87. -    "DOMStorage.removeDOMStorageItem",
  88. -    "ApplicationCache.getFramesWithManifests",
  89. -    "ApplicationCache.enable",
  90. -    "ApplicationCache.getManifestForFrame",
  91. -    "ApplicationCache.getApplicationCacheForFrame",
  92. -    "FileSystem.enable",
  93. -    "FileSystem.disable",
  94. -    "FileSystem.requestFileSystemRoot",
  95. -    "FileSystem.requestDirectoryContent",
  96. -    "FileSystem.requestMetadata",
  97. -    "FileSystem.requestFileContent",
  98. -    "FileSystem.deleteEntry",
  99. -    "DOM.getDocument",
  100. -    "DOM.requestChildNodes",
  101. -    "DOM.querySelector",
  102. -    "DOM.querySelectorAll",
  103. -    "DOM.setNodeName",
  104. -    "DOM.setNodeValue",
  105. -    "DOM.removeNode",
  106. -    "DOM.setAttributeValue",
  107. -    "DOM.setAttributesAsText",
  108. -    "DOM.removeAttribute",
  109. -    "DOM.getEventListenersForNode",
  110. -    "DOM.getOuterHTML",
  111. -    "DOM.setOuterHTML",
  112. -    "DOM.performSearch",
  113. -    "DOM.getSearchResults",
  114. -    "DOM.discardSearchResults",
  115. -    "DOM.requestNode",
  116. -    "DOM.setInspectModeEnabled",
  117. -    "DOM.highlightRect",
  118. -    "DOM.highlightQuad",
  119. -    "DOM.highlightNode",
  120. -    "DOM.hideHighlight",
  121. -    "DOM.highlightFrame",
  122. -    "DOM.pushNodeByPathToFrontend",
  123. -    "DOM.pushNodeByBackendIdToFrontend",
  124. -    "DOM.releaseBackendNodeIds",
  125. -    "DOM.resolveNode",
  126. -    "DOM.getAttributes",
  127. -    "DOM.moveTo",
  128. -    "DOM.undo",
  129. -    "DOM.redo",
  130. -    "DOM.markUndoableState",
  131. -    "DOM.focus",
  132. -    "DOM.setFileInputFiles",
  133. -    "DOM.getBoxModel",
  134. -    "DOM.getNodeForLocation",
  135. -    "DOM.getRelayoutBoundary",
  136. -    "CSS.enable",
  137. -    "CSS.disable",
  138. -    "CSS.getMatchedStylesForNode",
  139. -    "CSS.getInlineStylesForNode",
  140. -    "CSS.getComputedStyleForNode",
  141. -    "CSS.getPlatformFontsForNode",
  142. -    "CSS.getAllStyleSheets",
  143. -    "CSS.getStyleSheet",
  144. -    "CSS.getStyleSheetText",
  145. -    "CSS.setStyleSheetText",
  146. -    "CSS.setStyleText",
  147. -    "CSS.setPropertyText",
  148. -    "CSS.toggleProperty",
  149. -    "CSS.setRuleSelector",
  150. -    "CSS.addRule",
  151. -    "CSS.getSupportedCSSProperties",
  152. -    "CSS.forcePseudoState",
  153. -    "CSS.getNamedFlowCollection",
  154. -    "Timeline.enable",
  155. -    "Timeline.disable",
  156. -    "Timeline.start",
  157. -    "Timeline.stop",
  158. -    "Debugger.enable",
  159. -    "Debugger.disable",
  160. -    "Debugger.setBreakpointsActive",
  161. -    "Debugger.setSkipAllPauses",
  162. -    "Debugger.setBreakpointByUrl",
  163. -    "Debugger.setBreakpoint",
  164. -    "Debugger.removeBreakpoint",
  165. -    "Debugger.continueToLocation",
  166. -    "Debugger.stepOver",
  167. -    "Debugger.stepInto",
  168. -    "Debugger.stepOut",
  169. -    "Debugger.pause",
  170. -    "Debugger.resume",
  171. -    "Debugger.searchInContent",
  172. -    "Debugger.canSetScriptSource",
  173. -    "Debugger.setScriptSource",
  174. -    "Debugger.restartFrame",
  175. -    "Debugger.getScriptSource",
  176. -    "Debugger.getFunctionDetails",
  177. -    "Debugger.setPauseOnExceptions",
  178. -    "Debugger.evaluateOnCallFrame",
  179. -    "Debugger.compileScript",
  180. -    "Debugger.runScript",
  181. -    "Debugger.setOverlayMessage",
  182. -    "Debugger.setVariableValue",
  183. -    "Debugger.getStepInPositions",
  184. -    "Debugger.getBacktrace",
  185. -    "Debugger.skipStackFrames",
  186. -    "DOMDebugger.setDOMBreakpoint",
  187. -    "DOMDebugger.removeDOMBreakpoint",
  188. -    "DOMDebugger.setEventListenerBreakpoint",
  189. -    "DOMDebugger.removeEventListenerBreakpoint",
  190. -    "DOMDebugger.setInstrumentationBreakpoint",
  191. -    "DOMDebugger.removeInstrumentationBreakpoint",
  192. -    "DOMDebugger.setXHRBreakpoint",
  193. -    "DOMDebugger.removeXHRBreakpoint",
  194. -    "Profiler.enable",
  195. -    "Profiler.disable",
  196. -    "Profiler.setSamplingInterval",
  197. -    "Profiler.start",
  198. -    "Profiler.stop",
  199. -    "Profiler.getCPUProfile",
  200. -    "Profiler.removeProfile",
  201. -    "Profiler.clearProfiles",
  202. -    "HeapProfiler.enable",
  203. -    "HeapProfiler.disable",
  204. -    "HeapProfiler.startTrackingHeapObjects",
  205. -    "HeapProfiler.stopTrackingHeapObjects",
  206. -    "HeapProfiler.getHeapSnapshot",
  207. -    "HeapProfiler.removeProfile",
  208. -    "HeapProfiler.clearProfiles",
  209. -    "HeapProfiler.takeHeapSnapshot",
  210. -    "HeapProfiler.collectGarbage",
  211. -    "HeapProfiler.getObjectByHeapObjectId",
  212. -    "HeapProfiler.getHeapObjectId",
  213. -    "Worker.enable",
  214. -    "Worker.disable",
  215. -    "Worker.sendMessageToWorker",
  216. -    "Worker.canInspectWorkers",
  217. -    "Worker.connectToWorker",
  218. -    "Worker.disconnectFromWorker",
  219. -    "Worker.setAutoconnectToWorkers",
  220. -    "Canvas.enable",
  221. -    "Canvas.disable",
  222. -    "Canvas.dropTraceLog",
  223. -    "Canvas.hasUninstrumentedCanvases",
  224. -    "Canvas.captureFrame",
  225. -    "Canvas.startCapturing",
  226. -    "Canvas.stopCapturing",
  227. -    "Canvas.getTraceLog",
  228. -    "Canvas.replayTraceLog",
  229. -    "Canvas.getResourceState",
  230. -    "Canvas.evaluateTraceLogCallArgument",
  231. -    "Input.dispatchKeyEvent",
  232. -    "Input.dispatchMouseEvent",
  233. -    "Input.dispatchTouchEvent",
  234. -    "Input.dispatchGestureEvent",
  235. -    "LayerTree.enable",
  236. -    "LayerTree.disable",
  237. -    "LayerTree.getLayers",
  238. -    "LayerTree.compositingReasons",
  239. -    "Tracing.start",
  240. -    "Tracing.end",
  241. +const char InspectorBackendDispatcher::commandNames[] = {
  242. +    "Inspector.enable\0"
  243. +    "Inspector.disable\0"
  244. +    "Inspector.reset\0"
  245. +    "Memory.getDOMCounters\0"
  246. +    "Page.enable\0"
  247. +    "Page.disable\0"
  248. +    "Page.addScriptToEvaluateOnLoad\0"
  249. +    "Page.removeScriptToEvaluateOnLoad\0"
  250. +    "Page.reload\0"
  251. +    "Page.navigate\0"
  252. +    "Page.getNavigationHistory\0"
  253. +    "Page.navigateToHistoryEntry\0"
  254. +    "Page.getCookies\0"
  255. +    "Page.deleteCookie\0"
  256. +    "Page.getResourceTree\0"
  257. +    "Page.getResourceContent\0"
  258. +    "Page.searchInResource\0"
  259. +    "Page.setDocumentContent\0"
  260. +    "Page.setDeviceMetricsOverride\0"
  261. +    "Page.setShowPaintRects\0"
  262. +    "Page.setShowDebugBorders\0"
  263. +    "Page.setShowFPSCounter\0"
  264. +    "Page.setContinuousPaintingEnabled\0"
  265. +    "Page.setShowScrollBottleneckRects\0"
  266. +    "Page.getScriptExecutionStatus\0"
  267. +    "Page.setScriptExecutionDisabled\0"
  268. +    "Page.setGeolocationOverride\0"
  269. +    "Page.clearGeolocationOverride\0"
  270. +    "Page.setDeviceOrientationOverride\0"
  271. +    "Page.clearDeviceOrientationOverride\0"
  272. +    "Page.setTouchEmulationEnabled\0"
  273. +    "Page.setEmulatedMedia\0"
  274. +    "Page.captureScreenshot\0"
  275. +    "Page.canScreencast\0"
  276. +    "Page.startScreencast\0"
  277. +    "Page.stopScreencast\0"
  278. +    "Page.handleJavaScriptDialog\0"
  279. +    "Page.setShowViewportSizeOnResize\0"
  280. +    "Page.setForceCompositingMode\0"
  281. +    "Runtime.evaluate\0"
  282. +    "Runtime.callFunctionOn\0"
  283. +    "Runtime.getProperties\0"
  284. +    "Runtime.releaseObject\0"
  285. +    "Runtime.releaseObjectGroup\0"
  286. +    "Runtime.run\0"
  287. +    "Runtime.enable\0"
  288. +    "Runtime.disable\0"
  289. +    "Console.enable\0"
  290. +    "Console.disable\0"
  291. +    "Console.clearMessages\0"
  292. +    "Console.setMonitoringXHREnabled\0"
  293. +    "Console.addInspectedNode\0"
  294. +    "Console.addInspectedHeapObject\0"
  295. +    "Network.enable\0"
  296. +    "Network.disable\0"
  297. +    "Network.setUserAgentOverride\0"
  298. +    "Network.setExtraHTTPHeaders\0"
  299. +    "Network.getResponseBody\0"
  300. +    "Network.replayXHR\0"
  301. +    "Network.canClearBrowserCache\0"
  302. +    "Network.clearBrowserCache\0"
  303. +    "Network.canClearBrowserCookies\0"
  304. +    "Network.clearBrowserCookies\0"
  305. +    "Network.setCacheDisabled\0"
  306. +    "Network.loadResourceForFrontend\0"
  307. +    "Database.enable\0"
  308. +    "Database.disable\0"
  309. +    "Database.getDatabaseTableNames\0"
  310. +    "Database.executeSQL\0"
  311. +    "IndexedDB.enable\0"
  312. +    "IndexedDB.disable\0"
  313. +    "IndexedDB.requestDatabaseNames\0"
  314. +    "IndexedDB.requestDatabase\0"
  315. +    "IndexedDB.requestData\0"
  316. +    "IndexedDB.clearObjectStore\0"
  317. +    "DOMStorage.enable\0"
  318. +    "DOMStorage.disable\0"
  319. +    "DOMStorage.getDOMStorageItems\0"
  320. +    "DOMStorage.setDOMStorageItem\0"
  321. +    "DOMStorage.removeDOMStorageItem\0"
  322. +    "ApplicationCache.getFramesWithManifests\0"
  323. +    "ApplicationCache.enable\0"
  324. +    "ApplicationCache.getManifestForFrame\0"
  325. +    "ApplicationCache.getApplicationCacheForFrame\0"
  326. +    "FileSystem.enable\0"
  327. +    "FileSystem.disable\0"
  328. +    "FileSystem.requestFileSystemRoot\0"
  329. +    "FileSystem.requestDirectoryContent\0"
  330. +    "FileSystem.requestMetadata\0"
  331. +    "FileSystem.requestFileContent\0"
  332. +    "FileSystem.deleteEntry\0"
  333. +    "DOM.getDocument\0"
  334. +    "DOM.requestChildNodes\0"
  335. +    "DOM.querySelector\0"
  336. +    "DOM.querySelectorAll\0"
  337. +    "DOM.setNodeName\0"
  338. +    "DOM.setNodeValue\0"
  339. +    "DOM.removeNode\0"
  340. +    "DOM.setAttributeValue\0"
  341. +    "DOM.setAttributesAsText\0"
  342. +    "DOM.removeAttribute\0"
  343. +    "DOM.getEventListenersForNode\0"
  344. +    "DOM.getOuterHTML\0"
  345. +    "DOM.setOuterHTML\0"
  346. +    "DOM.performSearch\0"
  347. +    "DOM.getSearchResults\0"
  348. +    "DOM.discardSearchResults\0"
  349. +    "DOM.requestNode\0"
  350. +    "DOM.setInspectModeEnabled\0"
  351. +    "DOM.highlightRect\0"
  352. +    "DOM.highlightQuad\0"
  353. +    "DOM.highlightNode\0"
  354. +    "DOM.hideHighlight\0"
  355. +    "DOM.highlightFrame\0"
  356. +    "DOM.pushNodeByPathToFrontend\0"
  357. +    "DOM.pushNodeByBackendIdToFrontend\0"
  358. +    "DOM.releaseBackendNodeIds\0"
  359. +    "DOM.resolveNode\0"
  360. +    "DOM.getAttributes\0"
  361. +    "DOM.moveTo\0"
  362. +    "DOM.undo\0"
  363. +    "DOM.redo\0"
  364. +    "DOM.markUndoableState\0"
  365. +    "DOM.focus\0"
  366. +    "DOM.setFileInputFiles\0"
  367. +    "DOM.getBoxModel\0"
  368. +    "DOM.getNodeForLocation\0"
  369. +    "DOM.getRelayoutBoundary\0"
  370. +    "CSS.enable\0"
  371. +    "CSS.disable\0"
  372. +    "CSS.getMatchedStylesForNode\0"
  373. +    "CSS.getInlineStylesForNode\0"
  374. +    "CSS.getComputedStyleForNode\0"
  375. +    "CSS.getPlatformFontsForNode\0"
  376. +    "CSS.getAllStyleSheets\0"
  377. +    "CSS.getStyleSheet\0"
  378. +    "CSS.getStyleSheetText\0"
  379. +    "CSS.setStyleSheetText\0"
  380. +    "CSS.setStyleText\0"
  381. +    "CSS.setPropertyText\0"
  382. +    "CSS.toggleProperty\0"
  383. +    "CSS.setRuleSelector\0"
  384. +    "CSS.addRule\0"
  385. +    "CSS.getSupportedCSSProperties\0"
  386. +    "CSS.forcePseudoState\0"
  387. +    "CSS.getNamedFlowCollection\0"
  388. +    "Timeline.enable\0"
  389. +    "Timeline.disable\0"
  390. +    "Timeline.start\0"
  391. +    "Timeline.stop\0"
  392. +    "Debugger.enable\0"
  393. +    "Debugger.disable\0"
  394. +    "Debugger.setBreakpointsActive\0"
  395. +    "Debugger.setSkipAllPauses\0"
  396. +    "Debugger.setBreakpointByUrl\0"
  397. +    "Debugger.setBreakpoint\0"
  398. +    "Debugger.removeBreakpoint\0"
  399. +    "Debugger.continueToLocation\0"
  400. +    "Debugger.stepOver\0"
  401. +    "Debugger.stepInto\0"
  402. +    "Debugger.stepOut\0"
  403. +    "Debugger.pause\0"
  404. +    "Debugger.resume\0"
  405. +    "Debugger.searchInContent\0"
  406. +    "Debugger.canSetScriptSource\0"
  407. +    "Debugger.setScriptSource\0"
  408. +    "Debugger.restartFrame\0"
  409. +    "Debugger.getScriptSource\0"
  410. +    "Debugger.getFunctionDetails\0"
  411. +    "Debugger.setPauseOnExceptions\0"
  412. +    "Debugger.evaluateOnCallFrame\0"
  413. +    "Debugger.compileScript\0"
  414. +    "Debugger.runScript\0"
  415. +    "Debugger.setOverlayMessage\0"
  416. +    "Debugger.setVariableValue\0"
  417. +    "Debugger.getStepInPositions\0"
  418. +    "Debugger.getBacktrace\0"
  419. +    "Debugger.skipStackFrames\0"
  420. +    "DOMDebugger.setDOMBreakpoint\0"
  421. +    "DOMDebugger.removeDOMBreakpoint\0"
  422. +    "DOMDebugger.setEventListenerBreakpoint\0"
  423. +    "DOMDebugger.removeEventListenerBreakpoint\0"
  424. +    "DOMDebugger.setInstrumentationBreakpoint\0"
  425. +    "DOMDebugger.removeInstrumentationBreakpoint\0"
  426. +    "DOMDebugger.setXHRBreakpoint\0"
  427. +    "DOMDebugger.removeXHRBreakpoint\0"
  428. +    "Profiler.enable\0"
  429. +    "Profiler.disable\0"
  430. +    "Profiler.setSamplingInterval\0"
  431. +    "Profiler.start\0"
  432. +    "Profiler.stop\0"
  433. +    "Profiler.getCPUProfile\0"
  434. +    "Profiler.removeProfile\0"
  435. +    "Profiler.clearProfiles\0"
  436. +    "HeapProfiler.enable\0"
  437. +    "HeapProfiler.disable\0"
  438. +    "HeapProfiler.startTrackingHeapObjects\0"
  439. +    "HeapProfiler.stopTrackingHeapObjects\0"
  440. +    "HeapProfiler.getHeapSnapshot\0"
  441. +    "HeapProfiler.removeProfile\0"
  442. +    "HeapProfiler.clearProfiles\0"
  443. +    "HeapProfiler.takeHeapSnapshot\0"
  444. +    "HeapProfiler.collectGarbage\0"
  445. +    "HeapProfiler.getObjectByHeapObjectId\0"
  446. +    "HeapProfiler.getHeapObjectId\0"
  447. +    "Worker.enable\0"
  448. +    "Worker.disable\0"
  449. +    "Worker.sendMessageToWorker\0"
  450. +    "Worker.canInspectWorkers\0"
  451. +    "Worker.connectToWorker\0"
  452. +    "Worker.disconnectFromWorker\0"
  453. +    "Worker.setAutoconnectToWorkers\0"
  454. +    "Canvas.enable\0"
  455. +    "Canvas.disable\0"
  456. +    "Canvas.dropTraceLog\0"
  457. +    "Canvas.hasUninstrumentedCanvases\0"
  458. +    "Canvas.captureFrame\0"
  459. +    "Canvas.startCapturing\0"
  460. +    "Canvas.stopCapturing\0"
  461. +    "Canvas.getTraceLog\0"
  462. +    "Canvas.replayTraceLog\0"
  463. +    "Canvas.getResourceState\0"
  464. +    "Canvas.evaluateTraceLogCallArgument\0"
  465. +    "Input.dispatchKeyEvent\0"
  466. +    "Input.dispatchMouseEvent\0"
  467. +    "Input.dispatchTouchEvent\0"
  468. +    "Input.dispatchGestureEvent\0"
  469. +    "LayerTree.enable\0"
  470. +    "LayerTree.disable\0"
  471. +    "LayerTree.getLayers\0"
  472. +    "LayerTree.compositingReasons\0"
  473. +    "Tracing.start\0"
  474. +    "Tracing.end\0"
  475.  };
  476.  
  477. +const size_t InspectorBackendDispatcher::commandNamesIndex[] = {
  478. +    0,
  479. +    17,
  480. +    35,
  481. +    51,
  482. +    73,
  483. +    85,
  484. +    98,
  485. +    129,
  486. +    163,
  487. +    175,
  488. +    189,
  489. +    215,
  490. +    243,
  491. +    259,
  492. +    277,
  493. +    298,
  494. +    322,
  495. +    344,
  496. +    368,
  497. +    398,
  498. +    421,
  499. +    446,
  500. +    469,
  501. +    503,
  502. +    537,
  503. +    567,
  504. +    599,
  505. +    627,
  506. +    657,
  507. +    691,
  508. +    727,
  509. +    757,
  510. +    779,
  511. +    802,
  512. +    821,
  513. +    842,
  514. +    862,
  515. +    890,
  516. +    923,
  517. +    952,
  518. +    969,
  519. +    992,
  520. +    1014,
  521. +    1036,
  522. +    1063,
  523. +    1075,
  524. +    1090,
  525. +    1106,
  526. +    1121,
  527. +    1137,
  528. +    1159,
  529. +    1191,
  530. +    1216,
  531. +    1247,
  532. +    1262,
  533. +    1278,
  534. +    1307,
  535. +    1335,
  536. +    1359,
  537. +    1377,
  538. +    1406,
  539. +    1432,
  540. +    1463,
  541. +    1491,
  542. +    1516,
  543. +    1548,
  544. +    1564,
  545. +    1581,
  546. +    1612,
  547. +    1632,
  548. +    1649,
  549. +    1667,
  550. +    1698,
  551. +    1724,
  552. +    1746,
  553. +    1773,
  554. +    1791,
  555. +    1810,
  556. +    1840,
  557. +    1869,
  558. +    1901,
  559. +    1941,
  560. +    1965,
  561. +    2002,
  562. +    2047,
  563. +    2065,
  564. +    2084,
  565. +    2117,
  566. +    2152,
  567. +    2179,
  568. +    2209,
  569. +    2232,
  570. +    2248,
  571. +    2270,
  572. +    2288,
  573. +    2309,
  574. +    2325,
  575. +    2342,
  576. +    2357,
  577. +    2379,
  578. +    2403,
  579. +    2423,
  580. +    2452,
  581. +    2469,
  582. +    2486,
  583. +    2504,
  584. +    2525,
  585. +    2550,
  586. +    2566,
  587. +    2592,
  588. +    2610,
  589. +    2628,
  590. +    2646,
  591. +    2664,
  592. +    2683,
  593. +    2712,
  594. +    2746,
  595. +    2772,
  596. +    2788,
  597. +    2806,
  598. +    2817,
  599. +    2826,
  600. +    2835,
  601. +    2857,
  602. +    2867,
  603. +    2889,
  604. +    2905,
  605. +    2928,
  606. +    2952,
  607. +    2963,
  608. +    2975,
  609. +    3003,
  610. +    3030,
  611. +    3058,
  612. +    3086,
  613. +    3108,
  614. +    3126,
  615. +    3148,
  616. +    3170,
  617. +    3187,
  618. +    3207,
  619. +    3226,
  620. +    3246,
  621. +    3258,
  622. +    3288,
  623. +    3309,
  624. +    3336,
  625. +    3352,
  626. +    3369,
  627. +    3384,
  628. +    3398,
  629. +    3414,
  630. +    3431,
  631. +    3461,
  632. +    3487,
  633. +    3515,
  634. +    3538,
  635. +    3564,
  636. +    3592,
  637. +    3610,
  638. +    3628,
  639. +    3645,
  640. +    3660,
  641. +    3676,
  642. +    3701,
  643. +    3729,
  644. +    3754,
  645. +    3776,
  646. +    3801,
  647. +    3829,
  648. +    3859,
  649. +    3888,
  650. +    3911,
  651. +    3930,
  652. +    3957,
  653. +    3983,
  654. +    4011,
  655. +    4033,
  656. +    4058,
  657. +    4087,
  658. +    4119,
  659. +    4158,
  660. +    4200,
  661. +    4241,
  662. +    4285,
  663. +    4314,
  664. +    4346,
  665. +    4362,
  666. +    4379,
  667. +    4408,
  668. +    4423,
  669. +    4437,
  670. +    4460,
  671. +    4483,
  672. +    4506,
  673. +    4526,
  674. +    4547,
  675. +    4585,
  676. +    4622,
  677. +    4651,
  678. +    4678,
  679. +    4705,
  680. +    4735,
  681. +    4763,
  682. +    4800,
  683. +    4829,
  684. +    4843,
  685. +    4858,
  686. +    4885,
  687. +    4910,
  688. +    4933,
  689. +    4961,
  690. +    4992,
  691. +    5006,
  692. +    5021,
  693. +    5041,
  694. +    5074,
  695. +    5094,
  696. +    5116,
  697. +    5137,
  698. +    5156,
  699. +    5178,
  700. +    5202,
  701. +    5238,
  702. +    5261,
  703. +    5286,
  704. +    5311,
  705. +    5338,
  706. +    5355,
  707. +    5373,
  708. +    5393,
  709. +    5422,
  710. +    5436,
  711. +};
  712. +
  713. +const char* InspectorBackendDispatcher::commandName(MethodNames index) {
  714. +    COMPILE_ASSERT(static_cast<int>(kMethodNamesEnumSize) == WTF_ARRAY_LENGTH(commandNamesIndex), command_name_array_problem);
  715. +    return commandNames + commandNamesIndex[index];
  716. +}
  717.  
  718.  class InspectorBackendDispatcherImpl : public InspectorBackendDispatcher {
  719.  public:
  720. @@ -604,7 +844,7 @@
  721.  
  722.  
  723.      }
  724. -    sendResponse(callId, result, commandNames[kInspector_enableCmd], protocolErrors, error, resultErrorData);
  725. +    sendResponse(callId, result, commandName(kInspector_enableCmd), protocolErrors, error, resultErrorData);
  726.  }
  727.  
  728.  void InspectorBackendDispatcherImpl::Inspector_disable(long callId, JSONObject*)
  729. @@ -623,7 +863,7 @@
  730.  
  731.  
  732.      }
  733. -    sendResponse(callId, result, commandNames[kInspector_disableCmd], protocolErrors, error, resultErrorData);
  734. +    sendResponse(callId, result, commandName(kInspector_disableCmd), protocolErrors, error, resultErrorData);
  735.  }
  736.  
  737.  void InspectorBackendDispatcherImpl::Inspector_reset(long callId, JSONObject*)
  738. @@ -642,7 +882,7 @@
  739.  
  740.  
  741.      }
  742. -    sendResponse(callId, result, commandNames[kInspector_resetCmd], protocolErrors, error, resultErrorData);
  743. +    sendResponse(callId, result, commandName(kInspector_resetCmd), protocolErrors, error, resultErrorData);
  744.  }
  745.  
  746.  void InspectorBackendDispatcherImpl::Memory_getDOMCounters(long callId, JSONObject*)
  747. @@ -669,7 +909,7 @@
  748.              result->setNumber("jsEventListeners", out_jsEventListeners);
  749.          }
  750.      }
  751. -    sendResponse(callId, result, commandNames[kMemory_getDOMCountersCmd], protocolErrors, error, resultErrorData);
  752. +    sendResponse(callId, result, commandName(kMemory_getDOMCountersCmd), protocolErrors, error, resultErrorData);
  753.  }
  754.  
  755.  void InspectorBackendDispatcherImpl::Page_enable(long callId, JSONObject*)
  756. @@ -688,7 +928,7 @@
  757.  
  758.  
  759.      }
  760. -    sendResponse(callId, result, commandNames[kPage_enableCmd], protocolErrors, error, resultErrorData);
  761. +    sendResponse(callId, result, commandName(kPage_enableCmd), protocolErrors, error, resultErrorData);
  762.  }
  763.  
  764.  void InspectorBackendDispatcherImpl::Page_disable(long callId, JSONObject*)
  765. @@ -707,7 +947,7 @@
  766.  
  767.  
  768.      }
  769. -    sendResponse(callId, result, commandNames[kPage_disableCmd], protocolErrors, error, resultErrorData);
  770. +    sendResponse(callId, result, commandName(kPage_disableCmd), protocolErrors, error, resultErrorData);
  771.  }
  772.  
  773.  void InspectorBackendDispatcherImpl::Page_addScriptToEvaluateOnLoad(long callId, JSONObject* requestMessageObject)
  774. @@ -735,7 +975,7 @@
  775.              result->setString("identifier", out_identifier);
  776.          }
  777.      }
  778. -    sendResponse(callId, result, commandNames[kPage_addScriptToEvaluateOnLoadCmd], protocolErrors, error, resultErrorData);
  779. +    sendResponse(callId, result, commandName(kPage_addScriptToEvaluateOnLoadCmd), protocolErrors, error, resultErrorData);
  780.  }
  781.  
  782.  void InspectorBackendDispatcherImpl::Page_removeScriptToEvaluateOnLoad(long callId, JSONObject* requestMessageObject)
  783. @@ -759,7 +999,7 @@
  784.  
  785.  
  786.      }
  787. -    sendResponse(callId, result, commandNames[kPage_removeScriptToEvaluateOnLoadCmd], protocolErrors, error, resultErrorData);
  788. +    sendResponse(callId, result, commandName(kPage_removeScriptToEvaluateOnLoadCmd), protocolErrors, error, resultErrorData);
  789.  }
  790.  
  791.  void InspectorBackendDispatcherImpl::Page_reload(long callId, JSONObject* requestMessageObject)
  792. @@ -788,7 +1028,7 @@
  793.  
  794.  
  795.      }
  796. -    sendResponse(callId, result, commandNames[kPage_reloadCmd], protocolErrors, error, resultErrorData);
  797. +    sendResponse(callId, result, commandName(kPage_reloadCmd), protocolErrors, error, resultErrorData);
  798.  }
  799.  
  800.  void InspectorBackendDispatcherImpl::Page_navigate(long callId, JSONObject* requestMessageObject)
  801. @@ -812,7 +1052,7 @@
  802.  
  803.  
  804.      }
  805. -    sendResponse(callId, result, commandNames[kPage_navigateCmd], protocolErrors, error, resultErrorData);
  806. +    sendResponse(callId, result, commandName(kPage_navigateCmd), protocolErrors, error, resultErrorData);
  807.  }
  808.  
  809.  void InspectorBackendDispatcherImpl::Page_getNavigationHistory(long callId, JSONObject* requestMessageObject)
  810. @@ -841,7 +1081,7 @@
  811.              result->setValue("entries", out_entries);
  812.          }
  813.      }
  814. -    sendResponse(callId, result, commandNames[kPage_getNavigationHistoryCmd], protocolErrors, error, resultErrorData);
  815. +    sendResponse(callId, result, commandName(kPage_getNavigationHistoryCmd), protocolErrors, error, resultErrorData);
  816.  }
  817.  
  818.  void InspectorBackendDispatcherImpl::Page_navigateToHistoryEntry(long callId, JSONObject* requestMessageObject)
  819. @@ -865,7 +1105,7 @@
  820.  
  821.  
  822.      }
  823. -    sendResponse(callId, result, commandNames[kPage_navigateToHistoryEntryCmd], protocolErrors, error, resultErrorData);
  824. +    sendResponse(callId, result, commandName(kPage_navigateToHistoryEntryCmd), protocolErrors, error, resultErrorData);
  825.  }
  826.  
  827.  void InspectorBackendDispatcherImpl::Page_getCookies(long callId, JSONObject*)
  828. @@ -890,7 +1130,7 @@
  829.              result->setString("cookiesString", out_cookiesString);
  830.          }
  831.      }
  832. -    sendResponse(callId, result, commandNames[kPage_getCookiesCmd], protocolErrors, error, resultErrorData);
  833. +    sendResponse(callId, result, commandName(kPage_getCookiesCmd), protocolErrors, error, resultErrorData);
  834.  }
  835.  
  836.  void InspectorBackendDispatcherImpl::Page_deleteCookie(long callId, JSONObject* requestMessageObject)
  837. @@ -915,7 +1155,7 @@
  838.  
  839.  
  840.      }
  841. -    sendResponse(callId, result, commandNames[kPage_deleteCookieCmd], protocolErrors, error, resultErrorData);
  842. +    sendResponse(callId, result, commandName(kPage_deleteCookieCmd), protocolErrors, error, resultErrorData);
  843.  }
  844.  
  845.  void InspectorBackendDispatcherImpl::Page_getResourceTree(long callId, JSONObject*)
  846. @@ -938,7 +1178,7 @@
  847.              result->setValue("frameTree", out_frameTree);
  848.          }
  849.      }
  850. -    sendResponse(callId, result, commandNames[kPage_getResourceTreeCmd], protocolErrors, error, resultErrorData);
  851. +    sendResponse(callId, result, commandName(kPage_getResourceTreeCmd), protocolErrors, error, resultErrorData);
  852.  }
  853.  
  854.  void InspectorBackendDispatcherImpl::Page_getResourceContent(long callId, JSONObject* requestMessageObject)
  855. @@ -969,7 +1209,7 @@
  856.              result->setBoolean("base64Encoded", out_base64Encoded);
  857.          }
  858.      }
  859. -    sendResponse(callId, result, commandNames[kPage_getResourceContentCmd], protocolErrors, error, resultErrorData);
  860. +    sendResponse(callId, result, commandName(kPage_getResourceContentCmd), protocolErrors, error, resultErrorData);
  861.  }
  862.  
  863.  void InspectorBackendDispatcherImpl::Page_searchInResource(long callId, JSONObject* requestMessageObject)
  864. @@ -1003,7 +1243,7 @@
  865.              result->setValue("result", out_result);
  866.          }
  867.      }
  868. -    sendResponse(callId, result, commandNames[kPage_searchInResourceCmd], protocolErrors, error, resultErrorData);
  869. +    sendResponse(callId, result, commandName(kPage_searchInResourceCmd), protocolErrors, error, resultErrorData);
  870.  }
  871.  
  872.  void InspectorBackendDispatcherImpl::Page_setDocumentContent(long callId, JSONObject* requestMessageObject)
  873. @@ -1028,7 +1268,7 @@
  874.  
  875.  
  876.      }
  877. -    sendResponse(callId, result, commandNames[kPage_setDocumentContentCmd], protocolErrors, error, resultErrorData);
  878. +    sendResponse(callId, result, commandName(kPage_setDocumentContentCmd), protocolErrors, error, resultErrorData);
  879.  }
  880.  
  881.  void InspectorBackendDispatcherImpl::Page_setDeviceMetricsOverride(long callId, JSONObject* requestMessageObject)
  882. @@ -1057,7 +1297,7 @@
  883.  
  884.  
  885.      }
  886. -    sendResponse(callId, result, commandNames[kPage_setDeviceMetricsOverrideCmd], protocolErrors, error, resultErrorData);
  887. +    sendResponse(callId, result, commandName(kPage_setDeviceMetricsOverrideCmd), protocolErrors, error, resultErrorData);
  888.  }
  889.  
  890.  void InspectorBackendDispatcherImpl::Page_setShowPaintRects(long callId, JSONObject* requestMessageObject)
  891. @@ -1081,7 +1321,7 @@
  892.  
  893.  
  894.      }
  895. -    sendResponse(callId, result, commandNames[kPage_setShowPaintRectsCmd], protocolErrors, error, resultErrorData);
  896. +    sendResponse(callId, result, commandName(kPage_setShowPaintRectsCmd), protocolErrors, error, resultErrorData);
  897.  }
  898.  
  899.  void InspectorBackendDispatcherImpl::Page_setShowDebugBorders(long callId, JSONObject* requestMessageObject)
  900. @@ -1105,7 +1345,7 @@
  901.  
  902.  
  903.      }
  904. -    sendResponse(callId, result, commandNames[kPage_setShowDebugBordersCmd], protocolErrors, error, resultErrorData);
  905. +    sendResponse(callId, result, commandName(kPage_setShowDebugBordersCmd), protocolErrors, error, resultErrorData);
  906.  }
  907.  
  908.  void InspectorBackendDispatcherImpl::Page_setShowFPSCounter(long callId, JSONObject* requestMessageObject)
  909. @@ -1129,7 +1369,7 @@
  910.  
  911.  
  912.      }
  913. -    sendResponse(callId, result, commandNames[kPage_setShowFPSCounterCmd], protocolErrors, error, resultErrorData);
  914. +    sendResponse(callId, result, commandName(kPage_setShowFPSCounterCmd), protocolErrors, error, resultErrorData);
  915.  }
  916.  
  917.  void InspectorBackendDispatcherImpl::Page_setContinuousPaintingEnabled(long callId, JSONObject* requestMessageObject)
  918. @@ -1153,7 +1393,7 @@
  919.  
  920.  
  921.      }
  922. -    sendResponse(callId, result, commandNames[kPage_setContinuousPaintingEnabledCmd], protocolErrors, error, resultErrorData);
  923. +    sendResponse(callId, result, commandName(kPage_setContinuousPaintingEnabledCmd), protocolErrors, error, resultErrorData);
  924.  }
  925.  
  926.  void InspectorBackendDispatcherImpl::Page_setShowScrollBottleneckRects(long callId, JSONObject* requestMessageObject)
  927. @@ -1177,7 +1417,7 @@
  928.  
  929.  
  930.      }
  931. -    sendResponse(callId, result, commandNames[kPage_setShowScrollBottleneckRectsCmd], protocolErrors, error, resultErrorData);
  932. +    sendResponse(callId, result, commandName(kPage_setShowScrollBottleneckRectsCmd), protocolErrors, error, resultErrorData);
  933.  }
  934.  
  935.  void InspectorBackendDispatcherImpl::Page_getScriptExecutionStatus(long callId, JSONObject*)
  936. @@ -1200,7 +1440,7 @@
  937.              result->setString("result", TypeBuilder::getEnumConstantValue(out_result));
  938.          }
  939.      }
  940. -    sendResponse(callId, result, commandNames[kPage_getScriptExecutionStatusCmd], protocolErrors, error, resultErrorData);
  941. +    sendResponse(callId, result, commandName(kPage_getScriptExecutionStatusCmd), protocolErrors, error, resultErrorData);
  942.  }
  943.  
  944.  void InspectorBackendDispatcherImpl::Page_setScriptExecutionDisabled(long callId, JSONObject* requestMessageObject)
  945. @@ -1224,7 +1464,7 @@
  946.  
  947.  
  948.      }
  949. -    sendResponse(callId, result, commandNames[kPage_setScriptExecutionDisabledCmd], protocolErrors, error, resultErrorData);
  950. +    sendResponse(callId, result, commandName(kPage_setScriptExecutionDisabledCmd), protocolErrors, error, resultErrorData);
  951.  }
  952.  
  953.  void InspectorBackendDispatcherImpl::Page_setGeolocationOverride(long callId, JSONObject* requestMessageObject)
  954. @@ -1253,7 +1493,7 @@
  955.  
  956.  
  957.      }
  958. -    sendResponse(callId, result, commandNames[kPage_setGeolocationOverrideCmd], protocolErrors, error, resultErrorData);
  959. +    sendResponse(callId, result, commandName(kPage_setGeolocationOverrideCmd), protocolErrors, error, resultErrorData);
  960.  }
  961.  
  962.  void InspectorBackendDispatcherImpl::Page_clearGeolocationOverride(long callId, JSONObject*)
  963. @@ -1272,7 +1512,7 @@
  964.  
  965.  
  966.      }
  967. -    sendResponse(callId, result, commandNames[kPage_clearGeolocationOverrideCmd], protocolErrors, error, resultErrorData);
  968. +    sendResponse(callId, result, commandName(kPage_clearGeolocationOverrideCmd), protocolErrors, error, resultErrorData);
  969.  }
  970.  
  971.  void InspectorBackendDispatcherImpl::Page_setDeviceOrientationOverride(long callId, JSONObject* requestMessageObject)
  972. @@ -1298,7 +1538,7 @@
  973.  
  974.  
  975.      }
  976. -    sendResponse(callId, result, commandNames[kPage_setDeviceOrientationOverrideCmd], protocolErrors, error, resultErrorData);
  977. +    sendResponse(callId, result, commandName(kPage_setDeviceOrientationOverrideCmd), protocolErrors, error, resultErrorData);
  978.  }
  979.  
  980.  void InspectorBackendDispatcherImpl::Page_clearDeviceOrientationOverride(long callId, JSONObject*)
  981. @@ -1317,7 +1557,7 @@
  982.  
  983.  
  984.      }
  985. -    sendResponse(callId, result, commandNames[kPage_clearDeviceOrientationOverrideCmd], protocolErrors, error, resultErrorData);
  986. +    sendResponse(callId, result, commandName(kPage_clearDeviceOrientationOverrideCmd), protocolErrors, error, resultErrorData);
  987.  }
  988.  
  989.  void InspectorBackendDispatcherImpl::Page_setTouchEmulationEnabled(long callId, JSONObject* requestMessageObject)
  990. @@ -1341,7 +1581,7 @@
  991.  
  992.  
  993.      }
  994. -    sendResponse(callId, result, commandNames[kPage_setTouchEmulationEnabledCmd], protocolErrors, error, resultErrorData);
  995. +    sendResponse(callId, result, commandName(kPage_setTouchEmulationEnabledCmd), protocolErrors, error, resultErrorData);
  996.  }
  997.  
  998.  void InspectorBackendDispatcherImpl::Page_setEmulatedMedia(long callId, JSONObject* requestMessageObject)
  999. @@ -1365,7 +1605,7 @@
  1000.  
  1001.  
  1002.      }
  1003. -    sendResponse(callId, result, commandNames[kPage_setEmulatedMediaCmd], protocolErrors, error, resultErrorData);
  1004. +    sendResponse(callId, result, commandName(kPage_setEmulatedMediaCmd), protocolErrors, error, resultErrorData);
  1005.  }
  1006.  
  1007.  void InspectorBackendDispatcherImpl::Page_captureScreenshot(long callId, JSONObject* requestMessageObject)
  1008. @@ -1406,7 +1646,7 @@
  1009.              result->setValue("viewport", out_viewport);
  1010.          }
  1011.      }
  1012. -    sendResponse(callId, result, commandNames[kPage_captureScreenshotCmd], protocolErrors, error, resultErrorData);
  1013. +    sendResponse(callId, result, commandName(kPage_captureScreenshotCmd), protocolErrors, error, resultErrorData);
  1014.  }
  1015.  
  1016.  void InspectorBackendDispatcherImpl::Page_canScreencast(long callId, JSONObject*)
  1017. @@ -1429,7 +1669,7 @@
  1018.              result->setBoolean("result", out_result);
  1019.          }
  1020.      }
  1021. -    sendResponse(callId, result, commandNames[kPage_canScreencastCmd], protocolErrors, error, resultErrorData);
  1022. +    sendResponse(callId, result, commandName(kPage_canScreencastCmd), protocolErrors, error, resultErrorData);
  1023.  }
  1024.  
  1025.  void InspectorBackendDispatcherImpl::Page_startScreencast(long callId, JSONObject* requestMessageObject)
  1026. @@ -1460,7 +1700,7 @@
  1027.  
  1028.  
  1029.      }
  1030. -    sendResponse(callId, result, commandNames[kPage_startScreencastCmd], protocolErrors, error, resultErrorData);
  1031. +    sendResponse(callId, result, commandName(kPage_startScreencastCmd), protocolErrors, error, resultErrorData);
  1032.  }
  1033.  
  1034.  void InspectorBackendDispatcherImpl::Page_stopScreencast(long callId, JSONObject*)
  1035. @@ -1479,7 +1719,7 @@
  1036.  
  1037.  
  1038.      }
  1039. -    sendResponse(callId, result, commandNames[kPage_stopScreencastCmd], protocolErrors, error, resultErrorData);
  1040. +    sendResponse(callId, result, commandName(kPage_stopScreencastCmd), protocolErrors, error, resultErrorData);
  1041.  }
  1042.  
  1043.  void InspectorBackendDispatcherImpl::Page_handleJavaScriptDialog(long callId, JSONObject* requestMessageObject)
  1044. @@ -1505,7 +1745,7 @@
  1045.  
  1046.  
  1047.      }
  1048. -    sendResponse(callId, result, commandNames[kPage_handleJavaScriptDialogCmd], protocolErrors, error, resultErrorData);
  1049. +    sendResponse(callId, result, commandName(kPage_handleJavaScriptDialogCmd), protocolErrors, error, resultErrorData);
  1050.  }
  1051.  
  1052.  void InspectorBackendDispatcherImpl::Page_setShowViewportSizeOnResize(long callId, JSONObject* requestMessageObject)
  1053. @@ -1531,7 +1771,7 @@
  1054.  
  1055.  
  1056.      }
  1057. -    sendResponse(callId, result, commandNames[kPage_setShowViewportSizeOnResizeCmd], protocolErrors, error, resultErrorData);
  1058. +    sendResponse(callId, result, commandName(kPage_setShowViewportSizeOnResizeCmd), protocolErrors, error, resultErrorData);
  1059.  }
  1060.  
  1061.  void InspectorBackendDispatcherImpl::Page_setForceCompositingMode(long callId, JSONObject* requestMessageObject)
  1062. @@ -1555,7 +1795,7 @@
  1063.  
  1064.  
  1065.      }
  1066. -    sendResponse(callId, result, commandNames[kPage_setForceCompositingModeCmd], protocolErrors, error, resultErrorData);
  1067. +    sendResponse(callId, result, commandName(kPage_setForceCompositingModeCmd), protocolErrors, error, resultErrorData);
  1068.  }
  1069.  
  1070.  void InspectorBackendDispatcherImpl::Runtime_evaluate(long callId, JSONObject* requestMessageObject)
  1071. @@ -1598,7 +1838,7 @@
  1072.                  result->setBoolean("wasThrown", out_wasThrown.getValue());
  1073.          }
  1074.      }
  1075. -    sendResponse(callId, result, commandNames[kRuntime_evaluateCmd], protocolErrors, error, resultErrorData);
  1076. +    sendResponse(callId, result, commandName(kRuntime_evaluateCmd), protocolErrors, error, resultErrorData);
  1077.  }
  1078.  
  1079.  void InspectorBackendDispatcherImpl::Runtime_callFunctionOn(long callId, JSONObject* requestMessageObject)
  1080. @@ -1638,7 +1878,7 @@
  1081.                  result->setBoolean("wasThrown", out_wasThrown.getValue());
  1082.          }
  1083.      }
  1084. -    sendResponse(callId, result, commandNames[kRuntime_callFunctionOnCmd], protocolErrors, error, resultErrorData);
  1085. +    sendResponse(callId, result, commandName(kRuntime_callFunctionOnCmd), protocolErrors, error, resultErrorData);
  1086.  }
  1087.  
  1088.  void InspectorBackendDispatcherImpl::Runtime_getProperties(long callId, JSONObject* requestMessageObject)
  1089. @@ -1673,7 +1913,7 @@
  1090.                  result->setValue("internalProperties", out_internalProperties);
  1091.          }
  1092.      }
  1093. -    sendResponse(callId, result, commandNames[kRuntime_getPropertiesCmd], protocolErrors, error, resultErrorData);
  1094. +    sendResponse(callId, result, commandName(kRuntime_getPropertiesCmd), protocolErrors, error, resultErrorData);
  1095.  }
  1096.  
  1097.  void InspectorBackendDispatcherImpl::Runtime_releaseObject(long callId, JSONObject* requestMessageObject)
  1098. @@ -1697,7 +1937,7 @@
  1099.  
  1100.  
  1101.      }
  1102. -    sendResponse(callId, result, commandNames[kRuntime_releaseObjectCmd], protocolErrors, error, resultErrorData);
  1103. +    sendResponse(callId, result, commandName(kRuntime_releaseObjectCmd), protocolErrors, error, resultErrorData);
  1104.  }
  1105.  
  1106.  void InspectorBackendDispatcherImpl::Runtime_releaseObjectGroup(long callId, JSONObject* requestMessageObject)
  1107. @@ -1721,7 +1961,7 @@
  1108.  
  1109.  
  1110.      }
  1111. -    sendResponse(callId, result, commandNames[kRuntime_releaseObjectGroupCmd], protocolErrors, error, resultErrorData);
  1112. +    sendResponse(callId, result, commandName(kRuntime_releaseObjectGroupCmd), protocolErrors, error, resultErrorData);
  1113.  }
  1114.  
  1115.  void InspectorBackendDispatcherImpl::Runtime_run(long callId, JSONObject*)
  1116. @@ -1740,7 +1980,7 @@
  1117.  
  1118.  
  1119.      }
  1120. -    sendResponse(callId, result, commandNames[kRuntime_runCmd], protocolErrors, error, resultErrorData);
  1121. +    sendResponse(callId, result, commandName(kRuntime_runCmd), protocolErrors, error, resultErrorData);
  1122.  }
  1123.  
  1124.  void InspectorBackendDispatcherImpl::Runtime_enable(long callId, JSONObject*)
  1125. @@ -1759,7 +1999,7 @@
  1126.  
  1127.  
  1128.      }
  1129. -    sendResponse(callId, result, commandNames[kRuntime_enableCmd], protocolErrors, error, resultErrorData);
  1130. +    sendResponse(callId, result, commandName(kRuntime_enableCmd), protocolErrors, error, resultErrorData);
  1131.  }
  1132.  
  1133.  void InspectorBackendDispatcherImpl::Runtime_disable(long callId, JSONObject*)
  1134. @@ -1778,7 +2018,7 @@
  1135.  
  1136.  
  1137.      }
  1138. -    sendResponse(callId, result, commandNames[kRuntime_disableCmd], protocolErrors, error, resultErrorData);
  1139. +    sendResponse(callId, result, commandName(kRuntime_disableCmd), protocolErrors, error, resultErrorData);
  1140.  }
  1141.  
  1142.  void InspectorBackendDispatcherImpl::Console_enable(long callId, JSONObject*)
  1143. @@ -1797,7 +2037,7 @@
  1144.  
  1145.  
  1146.      }
  1147. -    sendResponse(callId, result, commandNames[kConsole_enableCmd], protocolErrors, error, resultErrorData);
  1148. +    sendResponse(callId, result, commandName(kConsole_enableCmd), protocolErrors, error, resultErrorData);
  1149.  }
  1150.  
  1151.  void InspectorBackendDispatcherImpl::Console_disable(long callId, JSONObject*)
  1152. @@ -1816,7 +2056,7 @@
  1153.  
  1154.  
  1155.      }
  1156. -    sendResponse(callId, result, commandNames[kConsole_disableCmd], protocolErrors, error, resultErrorData);
  1157. +    sendResponse(callId, result, commandName(kConsole_disableCmd), protocolErrors, error, resultErrorData);
  1158.  }
  1159.  
  1160.  void InspectorBackendDispatcherImpl::Console_clearMessages(long callId, JSONObject*)
  1161. @@ -1835,7 +2075,7 @@
  1162.  
  1163.  
  1164.      }
  1165. -    sendResponse(callId, result, commandNames[kConsole_clearMessagesCmd], protocolErrors, error, resultErrorData);
  1166. +    sendResponse(callId, result, commandName(kConsole_clearMessagesCmd), protocolErrors, error, resultErrorData);
  1167.  }
  1168.  
  1169.  void InspectorBackendDispatcherImpl::Console_setMonitoringXHREnabled(long callId, JSONObject* requestMessageObject)
  1170. @@ -1859,7 +2099,7 @@
  1171.  
  1172.  
  1173.      }
  1174. -    sendResponse(callId, result, commandNames[kConsole_setMonitoringXHREnabledCmd], protocolErrors, error, resultErrorData);
  1175. +    sendResponse(callId, result, commandName(kConsole_setMonitoringXHREnabledCmd), protocolErrors, error, resultErrorData);
  1176.  }
  1177.  
  1178.  void InspectorBackendDispatcherImpl::Console_addInspectedNode(long callId, JSONObject* requestMessageObject)
  1179. @@ -1883,7 +2123,7 @@
  1180.  
  1181.  
  1182.      }
  1183. -    sendResponse(callId, result, commandNames[kConsole_addInspectedNodeCmd], protocolErrors, error, resultErrorData);
  1184. +    sendResponse(callId, result, commandName(kConsole_addInspectedNodeCmd), protocolErrors, error, resultErrorData);
  1185.  }
  1186.  
  1187.  void InspectorBackendDispatcherImpl::Console_addInspectedHeapObject(long callId, JSONObject* requestMessageObject)
  1188. @@ -1907,7 +2147,7 @@
  1189.  
  1190.  
  1191.      }
  1192. -    sendResponse(callId, result, commandNames[kConsole_addInspectedHeapObjectCmd], protocolErrors, error, resultErrorData);
  1193. +    sendResponse(callId, result, commandName(kConsole_addInspectedHeapObjectCmd), protocolErrors, error, resultErrorData);
  1194.  }
  1195.  
  1196.  void InspectorBackendDispatcherImpl::Network_enable(long callId, JSONObject*)
  1197. @@ -1926,7 +2166,7 @@
  1198.  
  1199.  
  1200.      }
  1201. -    sendResponse(callId, result, commandNames[kNetwork_enableCmd], protocolErrors, error, resultErrorData);
  1202. +    sendResponse(callId, result, commandName(kNetwork_enableCmd), protocolErrors, error, resultErrorData);
  1203.  }
  1204.  
  1205.  void InspectorBackendDispatcherImpl::Network_disable(long callId, JSONObject*)
  1206. @@ -1945,7 +2185,7 @@
  1207.  
  1208.  
  1209.      }
  1210. -    sendResponse(callId, result, commandNames[kNetwork_disableCmd], protocolErrors, error, resultErrorData);
  1211. +    sendResponse(callId, result, commandName(kNetwork_disableCmd), protocolErrors, error, resultErrorData);
  1212.  }
  1213.  
  1214.  void InspectorBackendDispatcherImpl::Network_setUserAgentOverride(long callId, JSONObject* requestMessageObject)
  1215. @@ -1969,7 +2209,7 @@
  1216.  
  1217.  
  1218.      }
  1219. -    sendResponse(callId, result, commandNames[kNetwork_setUserAgentOverrideCmd], protocolErrors, error, resultErrorData);
  1220. +    sendResponse(callId, result, commandName(kNetwork_setUserAgentOverrideCmd), protocolErrors, error, resultErrorData);
  1221.  }
  1222.  
  1223.  void InspectorBackendDispatcherImpl::Network_setExtraHTTPHeaders(long callId, JSONObject* requestMessageObject)
  1224. @@ -1993,7 +2233,7 @@
  1225.  
  1226.  
  1227.      }
  1228. -    sendResponse(callId, result, commandNames[kNetwork_setExtraHTTPHeadersCmd], protocolErrors, error, resultErrorData);
  1229. +    sendResponse(callId, result, commandName(kNetwork_setExtraHTTPHeadersCmd), protocolErrors, error, resultErrorData);
  1230.  }
  1231.  
  1232.  void InspectorBackendDispatcherImpl::Network_getResponseBody(long callId, JSONObject* requestMessageObject)
  1233. @@ -2023,7 +2263,7 @@
  1234.              result->setBoolean("base64Encoded", out_base64Encoded);
  1235.          }
  1236.      }
  1237. -    sendResponse(callId, result, commandNames[kNetwork_getResponseBodyCmd], protocolErrors, error, resultErrorData);
  1238. +    sendResponse(callId, result, commandName(kNetwork_getResponseBodyCmd), protocolErrors, error, resultErrorData);
  1239.  }
  1240.  
  1241.  void InspectorBackendDispatcherImpl::Network_replayXHR(long callId, JSONObject* requestMessageObject)
  1242. @@ -2047,7 +2287,7 @@
  1243.  
  1244.  
  1245.      }
  1246. -    sendResponse(callId, result, commandNames[kNetwork_replayXHRCmd], protocolErrors, error, resultErrorData);
  1247. +    sendResponse(callId, result, commandName(kNetwork_replayXHRCmd), protocolErrors, error, resultErrorData);
  1248.  }
  1249.  
  1250.  void InspectorBackendDispatcherImpl::Network_canClearBrowserCache(long callId, JSONObject*)
  1251. @@ -2070,7 +2310,7 @@
  1252.              result->setBoolean("result", out_result);
  1253.          }
  1254.      }
  1255. -    sendResponse(callId, result, commandNames[kNetwork_canClearBrowserCacheCmd], protocolErrors, error, resultErrorData);
  1256. +    sendResponse(callId, result, commandName(kNetwork_canClearBrowserCacheCmd), protocolErrors, error, resultErrorData);
  1257.  }
  1258.  
  1259.  void InspectorBackendDispatcherImpl::Network_clearBrowserCache(long callId, JSONObject*)
  1260. @@ -2089,7 +2329,7 @@
  1261.  
  1262.  
  1263.      }
  1264. -    sendResponse(callId, result, commandNames[kNetwork_clearBrowserCacheCmd], protocolErrors, error, resultErrorData);
  1265. +    sendResponse(callId, result, commandName(kNetwork_clearBrowserCacheCmd), protocolErrors, error, resultErrorData);
  1266.  }
  1267.  
  1268.  void InspectorBackendDispatcherImpl::Network_canClearBrowserCookies(long callId, JSONObject*)
  1269. @@ -2112,7 +2352,7 @@
  1270.              result->setBoolean("result", out_result);
  1271.          }
  1272.      }
  1273. -    sendResponse(callId, result, commandNames[kNetwork_canClearBrowserCookiesCmd], protocolErrors, error, resultErrorData);
  1274. +    sendResponse(callId, result, commandName(kNetwork_canClearBrowserCookiesCmd), protocolErrors, error, resultErrorData);
  1275.  }
  1276.  
  1277.  void InspectorBackendDispatcherImpl::Network_clearBrowserCookies(long callId, JSONObject*)
  1278. @@ -2131,7 +2371,7 @@
  1279.  
  1280.  
  1281.      }
  1282. -    sendResponse(callId, result, commandNames[kNetwork_clearBrowserCookiesCmd], protocolErrors, error, resultErrorData);
  1283. +    sendResponse(callId, result, commandName(kNetwork_clearBrowserCookiesCmd), protocolErrors, error, resultErrorData);
  1284.  }
  1285.  
  1286.  void InspectorBackendDispatcherImpl::Network_setCacheDisabled(long callId, JSONObject* requestMessageObject)
  1287. @@ -2155,7 +2395,7 @@
  1288.  
  1289.  
  1290.      }
  1291. -    sendResponse(callId, result, commandNames[kNetwork_setCacheDisabledCmd], protocolErrors, error, resultErrorData);
  1292. +    sendResponse(callId, result, commandName(kNetwork_setCacheDisabledCmd), protocolErrors, error, resultErrorData);
  1293.  }
  1294.  
  1295.  InspectorBackendDispatcher::NetworkCommandHandler::LoadResourceForFrontendCallback::LoadResourceForFrontendCallback(PassRefPtr<InspectorBackendDispatcherImpl> backendImpl, int id) : CallbackBase(backendImpl, id) {}
  1296. @@ -2197,7 +2437,7 @@
  1297.          callback->disable();
  1298.  
  1299.      }
  1300. -    sendResponse(callId, result, commandNames[kNetwork_loadResourceForFrontendCmd], protocolErrors, error, resultErrorData);
  1301. +    sendResponse(callId, result, commandName(kNetwork_loadResourceForFrontendCmd), protocolErrors, error, resultErrorData);
  1302.  }
  1303.  
  1304.  void InspectorBackendDispatcherImpl::Database_enable(long callId, JSONObject*)
  1305. @@ -2216,7 +2456,7 @@
  1306.  
  1307.  
  1308.      }
  1309. -    sendResponse(callId, result, commandNames[kDatabase_enableCmd], protocolErrors, error, resultErrorData);
  1310. +    sendResponse(callId, result, commandName(kDatabase_enableCmd), protocolErrors, error, resultErrorData);
  1311.  }
  1312.  
  1313.  void InspectorBackendDispatcherImpl::Database_disable(long callId, JSONObject*)
  1314. @@ -2235,7 +2475,7 @@
  1315.  
  1316.  
  1317.      }
  1318. -    sendResponse(callId, result, commandNames[kDatabase_disableCmd], protocolErrors, error, resultErrorData);
  1319. +    sendResponse(callId, result, commandName(kDatabase_disableCmd), protocolErrors, error, resultErrorData);
  1320.  }
  1321.  
  1322.  void InspectorBackendDispatcherImpl::Database_getDatabaseTableNames(long callId, JSONObject* requestMessageObject)
  1323. @@ -2263,7 +2503,7 @@
  1324.              result->setValue("tableNames", out_tableNames);
  1325.          }
  1326.      }
  1327. -    sendResponse(callId, result, commandNames[kDatabase_getDatabaseTableNamesCmd], protocolErrors, error, resultErrorData);
  1328. +    sendResponse(callId, result, commandName(kDatabase_getDatabaseTableNamesCmd), protocolErrors, error, resultErrorData);
  1329.  }
  1330.  
  1331.  InspectorBackendDispatcher::DatabaseCommandHandler::ExecuteSQLCallback::ExecuteSQLCallback(PassRefPtr<InspectorBackendDispatcherImpl> backendImpl, int id) : CallbackBase(backendImpl, id) {}
  1332. @@ -2306,7 +2546,7 @@
  1333.          callback->disable();
  1334.  
  1335.      }
  1336. -    sendResponse(callId, result, commandNames[kDatabase_executeSQLCmd], protocolErrors, error, resultErrorData);
  1337. +    sendResponse(callId, result, commandName(kDatabase_executeSQLCmd), protocolErrors, error, resultErrorData);
  1338.  }
  1339.  
  1340.  void InspectorBackendDispatcherImpl::IndexedDB_enable(long callId, JSONObject*)
  1341. @@ -2325,7 +2565,7 @@
  1342.  
  1343.  
  1344.      }
  1345. -    sendResponse(callId, result, commandNames[kIndexedDB_enableCmd], protocolErrors, error, resultErrorData);
  1346. +    sendResponse(callId, result, commandName(kIndexedDB_enableCmd), protocolErrors, error, resultErrorData);
  1347.  }
  1348.  
  1349.  void InspectorBackendDispatcherImpl::IndexedDB_disable(long callId, JSONObject*)
  1350. @@ -2344,7 +2584,7 @@
  1351.  
  1352.  
  1353.      }
  1354. -    sendResponse(callId, result, commandNames[kIndexedDB_disableCmd], protocolErrors, error, resultErrorData);
  1355. +    sendResponse(callId, result, commandName(kIndexedDB_disableCmd), protocolErrors, error, resultErrorData);
  1356.  }
  1357.  
  1358.  InspectorBackendDispatcher::IndexedDBCommandHandler::RequestDatabaseNamesCallback::RequestDatabaseNamesCallback(PassRefPtr<InspectorBackendDispatcherImpl> backendImpl, int id) : CallbackBase(backendImpl, id) {}
  1359. @@ -2381,7 +2621,7 @@
  1360.          callback->disable();
  1361.  
  1362.      }
  1363. -    sendResponse(callId, result, commandNames[kIndexedDB_requestDatabaseNamesCmd], protocolErrors, error, resultErrorData);
  1364. +    sendResponse(callId, result, commandName(kIndexedDB_requestDatabaseNamesCmd), protocolErrors, error, resultErrorData);
  1365.  }
  1366.  
  1367.  InspectorBackendDispatcher::IndexedDBCommandHandler::RequestDatabaseCallback::RequestDatabaseCallback(PassRefPtr<InspectorBackendDispatcherImpl> backendImpl, int id) : CallbackBase(backendImpl, id) {}
  1368. @@ -2419,7 +2659,7 @@
  1369.          callback->disable();
  1370.  
  1371.      }
  1372. -    sendResponse(callId, result, commandNames[kIndexedDB_requestDatabaseCmd], protocolErrors, error, resultErrorData);
  1373. +    sendResponse(callId, result, commandName(kIndexedDB_requestDatabaseCmd), protocolErrors, error, resultErrorData);
  1374.  }
  1375.  
  1376.  InspectorBackendDispatcher::IndexedDBCommandHandler::RequestDataCallback::RequestDataCallback(PassRefPtr<InspectorBackendDispatcherImpl> backendImpl, int id) : CallbackBase(backendImpl, id) {}
  1377. @@ -2464,7 +2704,7 @@
  1378.          callback->disable();
  1379.  
  1380.      }
  1381. -    sendResponse(callId, result, commandNames[kIndexedDB_requestDataCmd], protocolErrors, error, resultErrorData);
  1382. +    sendResponse(callId, result, commandName(kIndexedDB_requestDataCmd), protocolErrors, error, resultErrorData);
  1383.  }
  1384.  
  1385.  InspectorBackendDispatcher::IndexedDBCommandHandler::ClearObjectStoreCallback::ClearObjectStoreCallback(PassRefPtr<InspectorBackendDispatcherImpl> backendImpl, int id) : CallbackBase(backendImpl, id) {}
  1386. @@ -2502,7 +2742,7 @@
  1387.          callback->disable();
  1388.  
  1389.      }
  1390. -    sendResponse(callId, result, commandNames[kIndexedDB_clearObjectStoreCmd], protocolErrors, error, resultErrorData);
  1391. +    sendResponse(callId, result, commandName(kIndexedDB_clearObjectStoreCmd), protocolErrors, error, resultErrorData);
  1392.  }
  1393.  
  1394.  void InspectorBackendDispatcherImpl::DOMStorage_enable(long callId, JSONObject*)
  1395. @@ -2521,7 +2761,7 @@
  1396.  
  1397.  
  1398.      }
  1399. -    sendResponse(callId, result, commandNames[kDOMStorage_enableCmd], protocolErrors, error, resultErrorData);
  1400. +    sendResponse(callId, result, commandName(kDOMStorage_enableCmd), protocolErrors, error, resultErrorData);
  1401.  }
  1402.  
  1403.  void InspectorBackendDispatcherImpl::DOMStorage_disable(long callId, JSONObject*)
  1404. @@ -2540,7 +2780,7 @@
  1405.  
  1406.  
  1407.      }
  1408. -    sendResponse(callId, result, commandNames[kDOMStorage_disableCmd], protocolErrors, error, resultErrorData);
  1409. +    sendResponse(callId, result, commandName(kDOMStorage_disableCmd), protocolErrors, error, resultErrorData);
  1410.  }
  1411.  
  1412.  void InspectorBackendDispatcherImpl::DOMStorage_getDOMStorageItems(long callId, JSONObject* requestMessageObject)
  1413. @@ -2568,7 +2808,7 @@
  1414.              result->setValue("entries", out_entries);
  1415.          }
  1416.      }
  1417. -    sendResponse(callId, result, commandNames[kDOMStorage_getDOMStorageItemsCmd], protocolErrors, error, resultErrorData);
  1418. +    sendResponse(callId, result, commandName(kDOMStorage_getDOMStorageItemsCmd), protocolErrors, error, resultErrorData);
  1419.  }
  1420.  
  1421.  void InspectorBackendDispatcherImpl::DOMStorage_setDOMStorageItem(long callId, JSONObject* requestMessageObject)
  1422. @@ -2594,7 +2834,7 @@
  1423.  
  1424.  
  1425.      }
  1426. -    sendResponse(callId, result, commandNames[kDOMStorage_setDOMStorageItemCmd], protocolErrors, error, resultErrorData);
  1427. +    sendResponse(callId, result, commandName(kDOMStorage_setDOMStorageItemCmd), protocolErrors, error, resultErrorData);
  1428.  }
  1429.  
  1430.  void InspectorBackendDispatcherImpl::DOMStorage_removeDOMStorageItem(long callId, JSONObject* requestMessageObject)
  1431. @@ -2619,7 +2859,7 @@
  1432.  
  1433.  
  1434.      }
  1435. -    sendResponse(callId, result, commandNames[kDOMStorage_removeDOMStorageItemCmd], protocolErrors, error, resultErrorData);
  1436. +    sendResponse(callId, result, commandName(kDOMStorage_removeDOMStorageItemCmd), protocolErrors, error, resultErrorData);
  1437.  }
  1438.  
  1439.  void InspectorBackendDispatcherImpl::ApplicationCache_getFramesWithManifests(long callId, JSONObject*)
  1440. @@ -2642,7 +2882,7 @@
  1441.              result->setValue("frameIds", out_frameIds);
  1442.          }
  1443.      }
  1444. -    sendResponse(callId, result, commandNames[kApplicationCache_getFramesWithManifestsCmd], protocolErrors, error, resultErrorData);
  1445. +    sendResponse(callId, result, commandName(kApplicationCache_getFramesWithManifestsCmd), protocolErrors, error, resultErrorData);
  1446.  }
  1447.  
  1448.  void InspectorBackendDispatcherImpl::ApplicationCache_enable(long callId, JSONObject*)
  1449. @@ -2661,7 +2901,7 @@
  1450.  
  1451.  
  1452.      }
  1453. -    sendResponse(callId, result, commandNames[kApplicationCache_enableCmd], protocolErrors, error, resultErrorData);
  1454. +    sendResponse(callId, result, commandName(kApplicationCache_enableCmd), protocolErrors, error, resultErrorData);
  1455.  }
  1456.  
  1457.  void InspectorBackendDispatcherImpl::ApplicationCache_getManifestForFrame(long callId, JSONObject* requestMessageObject)
  1458. @@ -2689,7 +2929,7 @@
  1459.              result->setString("manifestURL", out_manifestURL);
  1460.          }
  1461.      }
  1462. -    sendResponse(callId, result, commandNames[kApplicationCache_getManifestForFrameCmd], protocolErrors, error, resultErrorData);
  1463. +    sendResponse(callId, result, commandName(kApplicationCache_getManifestForFrameCmd), protocolErrors, error, resultErrorData);
  1464.  }
  1465.  
  1466.  void InspectorBackendDispatcherImpl::ApplicationCache_getApplicationCacheForFrame(long callId, JSONObject* requestMessageObject)
  1467. @@ -2717,7 +2957,7 @@
  1468.              result->setValue("applicationCache", out_applicationCache);
  1469.          }
  1470.      }
  1471. -    sendResponse(callId, result, commandNames[kApplicationCache_getApplicationCacheForFrameCmd], protocolErrors, error, resultErrorData);
  1472. +    sendResponse(callId, result, commandName(kApplicationCache_getApplicationCacheForFrameCmd), protocolErrors, error, resultErrorData);
  1473.  }
  1474.  
  1475.  void InspectorBackendDispatcherImpl::FileSystem_enable(long callId, JSONObject*)
  1476. @@ -2736,7 +2976,7 @@
  1477.  
  1478.  
  1479.      }
  1480. -    sendResponse(callId, result, commandNames[kFileSystem_enableCmd], protocolErrors, error, resultErrorData);
  1481. +    sendResponse(callId, result, commandName(kFileSystem_enableCmd), protocolErrors, error, resultErrorData);
  1482.  }
  1483.  
  1484.  void InspectorBackendDispatcherImpl::FileSystem_disable(long callId, JSONObject*)
  1485. @@ -2755,7 +2995,7 @@
  1486.  
  1487.  
  1488.      }
  1489. -    sendResponse(callId, result, commandNames[kFileSystem_disableCmd], protocolErrors, error, resultErrorData);
  1490. +    sendResponse(callId, result, commandName(kFileSystem_disableCmd), protocolErrors, error, resultErrorData);
  1491.  }
  1492.  
  1493.  InspectorBackendDispatcher::FileSystemCommandHandler::RequestFileSystemRootCallback::RequestFileSystemRootCallback(PassRefPtr<InspectorBackendDispatcherImpl> backendImpl, int id) : CallbackBase(backendImpl, id) {}
  1494. @@ -2795,7 +3035,7 @@
  1495.          callback->disable();
  1496.  
  1497.      }
  1498. -    sendResponse(callId, result, commandNames[kFileSystem_requestFileSystemRootCmd], protocolErrors, error, resultErrorData);
  1499. +    sendResponse(callId, result, commandName(kFileSystem_requestFileSystemRootCmd), protocolErrors, error, resultErrorData);
  1500.  }
  1501.  
  1502.  InspectorBackendDispatcher::FileSystemCommandHandler::RequestDirectoryContentCallback::RequestDirectoryContentCallback(PassRefPtr<InspectorBackendDispatcherImpl> backendImpl, int id) : CallbackBase(backendImpl, id) {}
  1503. @@ -2834,7 +3074,7 @@
  1504.          callback->disable();
  1505.  
  1506.      }
  1507. -    sendResponse(callId, result, commandNames[kFileSystem_requestDirectoryContentCmd], protocolErrors, error, resultErrorData);
  1508. +    sendResponse(callId, result, commandName(kFileSystem_requestDirectoryContentCmd), protocolErrors, error, resultErrorData);
  1509.  }
  1510.  
  1511.  InspectorBackendDispatcher::FileSystemCommandHandler::RequestMetadataCallback::RequestMetadataCallback(PassRefPtr<InspectorBackendDispatcherImpl> backendImpl, int id) : CallbackBase(backendImpl, id) {}
  1512. @@ -2873,7 +3113,7 @@
  1513.          callback->disable();
  1514.  
  1515.      }
  1516. -    sendResponse(callId, result, commandNames[kFileSystem_requestMetadataCmd], protocolErrors, error, resultErrorData);
  1517. +    sendResponse(callId, result, commandName(kFileSystem_requestMetadataCmd), protocolErrors, error, resultErrorData);
  1518.  }
  1519.  
  1520.  InspectorBackendDispatcher::FileSystemCommandHandler::RequestFileContentCallback::RequestFileContentCallback(PassRefPtr<InspectorBackendDispatcherImpl> backendImpl, int id) : CallbackBase(backendImpl, id) {}
  1521. @@ -2921,7 +3161,7 @@
  1522.          callback->disable();
  1523.  
  1524.      }
  1525. -    sendResponse(callId, result, commandNames[kFileSystem_requestFileContentCmd], protocolErrors, error, resultErrorData);
  1526. +    sendResponse(callId, result, commandName(kFileSystem_requestFileContentCmd), protocolErrors, error, resultErrorData);
  1527.  }
  1528.  
  1529.  InspectorBackendDispatcher::FileSystemCommandHandler::DeleteEntryCallback::DeleteEntryCallback(PassRefPtr<InspectorBackendDispatcherImpl> backendImpl, int id) : CallbackBase(backendImpl, id) {}
  1530. @@ -2958,7 +3198,7 @@
  1531.          callback->disable();
  1532.  
  1533.      }
  1534. -    sendResponse(callId, result, commandNames[kFileSystem_deleteEntryCmd], protocolErrors, error, resultErrorData);
  1535. +    sendResponse(callId, result, commandName(kFileSystem_deleteEntryCmd), protocolErrors, error, resultErrorData);
  1536.  }
  1537.  
  1538.  void InspectorBackendDispatcherImpl::DOM_getDocument(long callId, JSONObject*)
  1539. @@ -2981,7 +3221,7 @@
  1540.              result->setValue("root", out_root);
  1541.          }
  1542.      }
  1543. -    sendResponse(callId, result, commandNames[kDOM_getDocumentCmd], protocolErrors, error, resultErrorData);
  1544. +    sendResponse(callId, result, commandName(kDOM_getDocumentCmd), protocolErrors, error, resultErrorData);
  1545.  }
  1546.  
  1547.  void InspectorBackendDispatcherImpl::DOM_requestChildNodes(long callId, JSONObject* requestMessageObject)
  1548. @@ -3007,7 +3247,7 @@
  1549.  
  1550.  
  1551.      }
  1552. -    sendResponse(callId, result, commandNames[kDOM_requestChildNodesCmd], protocolErrors, error, resultErrorData);
  1553. +    sendResponse(callId, result, commandName(kDOM_requestChildNodesCmd), protocolErrors, error, resultErrorData);
  1554.  }
  1555.  
  1556.  void InspectorBackendDispatcherImpl::DOM_querySelector(long callId, JSONObject* requestMessageObject)
  1557. @@ -3036,7 +3276,7 @@
  1558.              result->setNumber("nodeId", out_nodeId);
  1559.          }
  1560.      }
  1561. -    sendResponse(callId, result, commandNames[kDOM_querySelectorCmd], protocolErrors, error, resultErrorData);
  1562. +    sendResponse(callId, result, commandName(kDOM_querySelectorCmd), protocolErrors, error, resultErrorData);
  1563.  }
  1564.  
  1565.  void InspectorBackendDispatcherImpl::DOM_querySelectorAll(long callId, JSONObject* requestMessageObject)
  1566. @@ -3065,7 +3305,7 @@
  1567.              result->setValue("nodeIds", out_nodeIds);
  1568.          }
  1569.      }
  1570. -    sendResponse(callId, result, commandNames[kDOM_querySelectorAllCmd], protocolErrors, error, resultErrorData);
  1571. +    sendResponse(callId, result, commandName(kDOM_querySelectorAllCmd), protocolErrors, error, resultErrorData);
  1572.  }
  1573.  
  1574.  void InspectorBackendDispatcherImpl::DOM_setNodeName(long callId, JSONObject* requestMessageObject)
  1575. @@ -3094,7 +3334,7 @@
  1576.              result->setNumber("nodeId", out_nodeId);
  1577.          }
  1578.      }
  1579. -    sendResponse(callId, result, commandNames[kDOM_setNodeNameCmd], protocolErrors, error, resultErrorData);
  1580. +    sendResponse(callId, result, commandName(kDOM_setNodeNameCmd), protocolErrors, error, resultErrorData);
  1581.  }
  1582.  
  1583.  void InspectorBackendDispatcherImpl::DOM_setNodeValue(long callId, JSONObject* requestMessageObject)
  1584. @@ -3119,7 +3359,7 @@
  1585.  
  1586.  
  1587.      }
  1588. -    sendResponse(callId, result, commandNames[kDOM_setNodeValueCmd], protocolErrors, error, resultErrorData);
  1589. +    sendResponse(callId, result, commandName(kDOM_setNodeValueCmd), protocolErrors, error, resultErrorData);
  1590.  }
  1591.  
  1592.  void InspectorBackendDispatcherImpl::DOM_removeNode(long callId, JSONObject* requestMessageObject)
  1593. @@ -3143,7 +3383,7 @@
  1594.  
  1595.  
  1596.      }
  1597. -    sendResponse(callId, result, commandNames[kDOM_removeNodeCmd], protocolErrors, error, resultErrorData);
  1598. +    sendResponse(callId, result, commandName(kDOM_removeNodeCmd), protocolErrors, error, resultErrorData);
  1599.  }
  1600.  
  1601.  void InspectorBackendDispatcherImpl::DOM_setAttributeValue(long callId, JSONObject* requestMessageObject)
  1602. @@ -3169,7 +3409,7 @@
  1603.  
  1604.  
  1605.      }
  1606. -    sendResponse(callId, result, commandNames[kDOM_setAttributeValueCmd], protocolErrors, error, resultErrorData);
  1607. +    sendResponse(callId, result, commandName(kDOM_setAttributeValueCmd), protocolErrors, error, resultErrorData);
  1608.  }
  1609.  
  1610.  void InspectorBackendDispatcherImpl::DOM_setAttributesAsText(long callId, JSONObject* requestMessageObject)
  1611. @@ -3196,7 +3436,7 @@
  1612.  
  1613.  
  1614.      }
  1615. -    sendResponse(callId, result, commandNames[kDOM_setAttributesAsTextCmd], protocolErrors, error, resultErrorData);
  1616. +    sendResponse(callId, result, commandName(kDOM_setAttributesAsTextCmd), protocolErrors, error, resultErrorData);
  1617.  }
  1618.  
  1619.  void InspectorBackendDispatcherImpl::DOM_removeAttribute(long callId, JSONObject* requestMessageObject)
  1620. @@ -3221,7 +3461,7 @@
  1621.  
  1622.  
  1623.      }
  1624. -    sendResponse(callId, result, commandNames[kDOM_removeAttributeCmd], protocolErrors, error, resultErrorData);
  1625. +    sendResponse(callId, result, commandName(kDOM_removeAttributeCmd), protocolErrors, error, resultErrorData);
  1626.  }
  1627.  
  1628.  void InspectorBackendDispatcherImpl::DOM_getEventListenersForNode(long callId, JSONObject* requestMessageObject)
  1629. @@ -3251,7 +3491,7 @@
  1630.              result->setValue("listeners", out_listeners);
  1631.          }
  1632.      }
  1633. -    sendResponse(callId, result, commandNames[kDOM_getEventListenersForNodeCmd], protocolErrors, error, resultErrorData);
  1634. +    sendResponse(callId, result, commandName(kDOM_getEventListenersForNodeCmd), protocolErrors, error, resultErrorData);
  1635.  }
  1636.  
  1637.  void InspectorBackendDispatcherImpl::DOM_getOuterHTML(long callId, JSONObject* requestMessageObject)
  1638. @@ -3279,7 +3519,7 @@
  1639.              result->setString("outerHTML", out_outerHTML);
  1640.          }
  1641.      }
  1642. -    sendResponse(callId, result, commandNames[kDOM_getOuterHTMLCmd], protocolErrors, error, resultErrorData);
  1643. +    sendResponse(callId, result, commandName(kDOM_getOuterHTMLCmd), protocolErrors, error, resultErrorData);
  1644.  }
  1645.  
  1646.  void InspectorBackendDispatcherImpl::DOM_setOuterHTML(long callId, JSONObject* requestMessageObject)
  1647. @@ -3304,7 +3544,7 @@
  1648.  
  1649.  
  1650.      }
  1651. -    sendResponse(callId, result, commandNames[kDOM_setOuterHTMLCmd], protocolErrors, error, resultErrorData);
  1652. +    sendResponse(callId, result, commandName(kDOM_setOuterHTMLCmd), protocolErrors, error, resultErrorData);
  1653.  }
  1654.  
  1655.  void InspectorBackendDispatcherImpl::DOM_performSearch(long callId, JSONObject* requestMessageObject)
  1656. @@ -3334,7 +3574,7 @@
  1657.              result->setNumber("resultCount", out_resultCount);
  1658.          }
  1659.      }
  1660. -    sendResponse(callId, result, commandNames[kDOM_performSearchCmd], protocolErrors, error, resultErrorData);
  1661. +    sendResponse(callId, result, commandName(kDOM_performSearchCmd), protocolErrors, error, resultErrorData);
  1662.  }
  1663.  
  1664.  void InspectorBackendDispatcherImpl::DOM_getSearchResults(long callId, JSONObject* requestMessageObject)
  1665. @@ -3364,7 +3604,7 @@
  1666.              result->setValue("nodeIds", out_nodeIds);
  1667.          }
  1668.      }
  1669. -    sendResponse(callId, result, commandNames[kDOM_getSearchResultsCmd], protocolErrors, error, resultErrorData);
  1670. +    sendResponse(callId, result, commandName(kDOM_getSearchResultsCmd), protocolErrors, error, resultErrorData);
  1671.  }
  1672.  
  1673.  void InspectorBackendDispatcherImpl::DOM_discardSearchResults(long callId, JSONObject* requestMessageObject)
  1674. @@ -3388,7 +3628,7 @@
  1675.  
  1676.  
  1677.      }
  1678. -    sendResponse(callId, result, commandNames[kDOM_discardSearchResultsCmd], protocolErrors, error, resultErrorData);
  1679. +    sendResponse(callId, result, commandName(kDOM_discardSearchResultsCmd), protocolErrors, error, resultErrorData);
  1680.  }
  1681.  
  1682.  void InspectorBackendDispatcherImpl::DOM_requestNode(long callId, JSONObject* requestMessageObject)
  1683. @@ -3416,7 +3656,7 @@
  1684.              result->setNumber("nodeId", out_nodeId);
  1685.          }
  1686.      }
  1687. -    sendResponse(callId, result, commandNames[kDOM_requestNodeCmd], protocolErrors, error, resultErrorData);
  1688. +    sendResponse(callId, result, commandName(kDOM_requestNodeCmd), protocolErrors, error, resultErrorData);
  1689.  }
  1690.  
  1691.  void InspectorBackendDispatcherImpl::DOM_setInspectModeEnabled(long callId, JSONObject* requestMessageObject)
  1692. @@ -3444,7 +3684,7 @@
  1693.  
  1694.  
  1695.      }
  1696. -    sendResponse(callId, result, commandNames[kDOM_setInspectModeEnabledCmd], protocolErrors, error, resultErrorData);
  1697. +    sendResponse(callId, result, commandName(kDOM_setInspectModeEnabledCmd), protocolErrors, error, resultErrorData);
  1698.  }
  1699.  
  1700.  void InspectorBackendDispatcherImpl::DOM_highlightRect(long callId, JSONObject* requestMessageObject)
  1701. @@ -3475,7 +3715,7 @@
  1702.  
  1703.  
  1704.      }
  1705. -    sendResponse(callId, result, commandNames[kDOM_highlightRectCmd], protocolErrors, error, resultErrorData);
  1706. +    sendResponse(callId, result, commandName(kDOM_highlightRectCmd), protocolErrors, error, resultErrorData);
  1707.  }
  1708.  
  1709.  void InspectorBackendDispatcherImpl::DOM_highlightQuad(long callId, JSONObject* requestMessageObject)
  1710. @@ -3503,7 +3743,7 @@
  1711.  
  1712.  
  1713.      }
  1714. -    sendResponse(callId, result, commandNames[kDOM_highlightQuadCmd], protocolErrors, error, resultErrorData);
  1715. +    sendResponse(callId, result, commandName(kDOM_highlightQuadCmd), protocolErrors, error, resultErrorData);
  1716.  }
  1717.  
  1718.  void InspectorBackendDispatcherImpl::DOM_highlightNode(long callId, JSONObject* requestMessageObject)
  1719. @@ -3531,7 +3771,7 @@
  1720.  
  1721.  
  1722.      }
  1723. -    sendResponse(callId, result, commandNames[kDOM_highlightNodeCmd], protocolErrors, error, resultErrorData);
  1724. +    sendResponse(callId, result, commandName(kDOM_highlightNodeCmd), protocolErrors, error, resultErrorData);
  1725.  }
  1726.  
  1727.  void InspectorBackendDispatcherImpl::DOM_hideHighlight(long callId, JSONObject*)
  1728. @@ -3550,7 +3790,7 @@
  1729.  
  1730.  
  1731.      }
  1732. -    sendResponse(callId, result, commandNames[kDOM_hideHighlightCmd], protocolErrors, error, resultErrorData);
  1733. +    sendResponse(callId, result, commandName(kDOM_hideHighlightCmd), protocolErrors, error, resultErrorData);
  1734.  }
  1735.  
  1736.  void InspectorBackendDispatcherImpl::DOM_highlightFrame(long callId, JSONObject* requestMessageObject)
  1737. @@ -3578,7 +3818,7 @@
  1738.  
  1739.  
  1740.      }
  1741. -    sendResponse(callId, result, commandNames[kDOM_highlightFrameCmd], protocolErrors, error, resultErrorData);
  1742. +    sendResponse(callId, result, commandName(kDOM_highlightFrameCmd), protocolErrors, error, resultErrorData);
  1743.  }
  1744.  
  1745.  void InspectorBackendDispatcherImpl::DOM_pushNodeByPathToFrontend(long callId, JSONObject* requestMessageObject)
  1746. @@ -3606,7 +3846,7 @@
  1747.              result->setNumber("nodeId", out_nodeId);
  1748.          }
  1749.      }
  1750. -    sendResponse(callId, result, commandNames[kDOM_pushNodeByPathToFrontendCmd], protocolErrors, error, resultErrorData);
  1751. +    sendResponse(callId, result, commandName(kDOM_pushNodeByPathToFrontendCmd), protocolErrors, error, resultErrorData);
  1752.  }
  1753.  
  1754.  void InspectorBackendDispatcherImpl::DOM_pushNodeByBackendIdToFrontend(long callId, JSONObject* requestMessageObject)
  1755. @@ -3634,7 +3874,7 @@
  1756.              result->setNumber("nodeId", out_nodeId);
  1757.          }
  1758.      }
  1759. -    sendResponse(callId, result, commandNames[kDOM_pushNodeByBackendIdToFrontendCmd], protocolErrors, error, resultErrorData);
  1760. +    sendResponse(callId, result, commandName(kDOM_pushNodeByBackendIdToFrontendCmd), protocolErrors, error, resultErrorData);
  1761.  }
  1762.  
  1763.  void InspectorBackendDispatcherImpl::DOM_releaseBackendNodeIds(long callId, JSONObject* requestMessageObject)
  1764. @@ -3658,7 +3898,7 @@
  1765.  
  1766.  
  1767.      }
  1768. -    sendResponse(callId, result, commandNames[kDOM_releaseBackendNodeIdsCmd], protocolErrors, error, resultErrorData);
  1769. +    sendResponse(callId, result, commandName(kDOM_releaseBackendNodeIdsCmd), protocolErrors, error, resultErrorData);
  1770.  }
  1771.  
  1772.  void InspectorBackendDispatcherImpl::DOM_resolveNode(long callId, JSONObject* requestMessageObject)
  1773. @@ -3688,7 +3928,7 @@
  1774.              result->setValue("object", out_object);
  1775.          }
  1776.      }
  1777. -    sendResponse(callId, result, commandNames[kDOM_resolveNodeCmd], protocolErrors, error, resultErrorData);
  1778. +    sendResponse(callId, result, commandName(kDOM_resolveNodeCmd), protocolErrors, error, resultErrorData);
  1779.  }
  1780.  
  1781.  void InspectorBackendDispatcherImpl::DOM_getAttributes(long callId, JSONObject* requestMessageObject)
  1782. @@ -3716,7 +3956,7 @@
  1783.              result->setValue("attributes", out_attributes);
  1784.          }
  1785.      }
  1786. -    sendResponse(callId, result, commandNames[kDOM_getAttributesCmd], protocolErrors, error, resultErrorData);
  1787. +    sendResponse(callId, result, commandName(kDOM_getAttributesCmd), protocolErrors, error, resultErrorData);
  1788.  }
  1789.  
  1790.  void InspectorBackendDispatcherImpl::DOM_moveTo(long callId, JSONObject* requestMessageObject)
  1791. @@ -3747,7 +3987,7 @@
  1792.              result->setNumber("nodeId", out_nodeId);
  1793.          }
  1794.      }
  1795. -    sendResponse(callId, result, commandNames[kDOM_moveToCmd], protocolErrors, error, resultErrorData);
  1796. +    sendResponse(callId, result, commandName(kDOM_moveToCmd), protocolErrors, error, resultErrorData);
  1797.  }
  1798.  
  1799.  void InspectorBackendDispatcherImpl::DOM_undo(long callId, JSONObject*)
  1800. @@ -3766,7 +4006,7 @@
  1801.  
  1802.  
  1803.      }
  1804. -    sendResponse(callId, result, commandNames[kDOM_undoCmd], protocolErrors, error, resultErrorData);
  1805. +    sendResponse(callId, result, commandName(kDOM_undoCmd), protocolErrors, error, resultErrorData);
  1806.  }
  1807.  
  1808.  void InspectorBackendDispatcherImpl::DOM_redo(long callId, JSONObject*)
  1809. @@ -3785,7 +4025,7 @@
  1810.  
  1811.  
  1812.      }
  1813. -    sendResponse(callId, result, commandNames[kDOM_redoCmd], protocolErrors, error, resultErrorData);
  1814. +    sendResponse(callId, result, commandName(kDOM_redoCmd), protocolErrors, error, resultErrorData);
  1815.  }
  1816.  
  1817.  void InspectorBackendDispatcherImpl::DOM_markUndoableState(long callId, JSONObject*)
  1818. @@ -3804,7 +4044,7 @@
  1819.  
  1820.  
  1821.      }
  1822. -    sendResponse(callId, result, commandNames[kDOM_markUndoableStateCmd], protocolErrors, error, resultErrorData);
  1823. +    sendResponse(callId, result, commandName(kDOM_markUndoableStateCmd), protocolErrors, error, resultErrorData);
  1824.  }
  1825.  
  1826.  void InspectorBackendDispatcherImpl::DOM_focus(long callId, JSONObject* requestMessageObject)
  1827. @@ -3828,7 +4068,7 @@
  1828.  
  1829.  
  1830.      }
  1831. -    sendResponse(callId, result, commandNames[kDOM_focusCmd], protocolErrors, error, resultErrorData);
  1832. +    sendResponse(callId, result, commandName(kDOM_focusCmd), protocolErrors, error, resultErrorData);
  1833.  }
  1834.  
  1835.  void InspectorBackendDispatcherImpl::DOM_setFileInputFiles(long callId, JSONObject* requestMessageObject)
  1836. @@ -3853,7 +4093,7 @@
  1837.  
  1838.  
  1839.      }
  1840. -    sendResponse(callId, result, commandNames[kDOM_setFileInputFilesCmd], protocolErrors, error, resultErrorData);
  1841. +    sendResponse(callId, result, commandName(kDOM_setFileInputFilesCmd), protocolErrors, error, resultErrorData);
  1842.  }
  1843.  
  1844.  void InspectorBackendDispatcherImpl::DOM_getBoxModel(long callId, JSONObject* requestMessageObject)
  1845. @@ -3881,7 +4121,7 @@
  1846.              result->setValue("model", out_model);
  1847.          }
  1848.      }
  1849. -    sendResponse(callId, result, commandNames[kDOM_getBoxModelCmd], protocolErrors, error, resultErrorData);
  1850. +    sendResponse(callId, result, commandName(kDOM_getBoxModelCmd), protocolErrors, error, resultErrorData);
  1851.  }
  1852.  
  1853.  void InspectorBackendDispatcherImpl::DOM_getNodeForLocation(long callId, JSONObject* requestMessageObject)
  1854. @@ -3910,7 +4150,7 @@
  1855.              result->setNumber("nodeId", out_nodeId);
  1856.          }
  1857.      }
  1858. -    sendResponse(callId, result, commandNames[kDOM_getNodeForLocationCmd], protocolErrors, error, resultErrorData);
  1859. +    sendResponse(callId, result, commandName(kDOM_getNodeForLocationCmd), protocolErrors, error, resultErrorData);
  1860.  }
  1861.  
  1862.  void InspectorBackendDispatcherImpl::DOM_getRelayoutBoundary(long callId, JSONObject* requestMessageObject)
  1863. @@ -3938,7 +4178,7 @@
  1864.              result->setNumber("nodeId", out_nodeId);
  1865.          }
  1866.      }
  1867. -    sendResponse(callId, result, commandNames[kDOM_getRelayoutBoundaryCmd], protocolErrors, error, resultErrorData);
  1868. +    sendResponse(callId, result, commandName(kDOM_getRelayoutBoundaryCmd), protocolErrors, error, resultErrorData);
  1869.  }
  1870.  
  1871.  InspectorBackendDispatcher::CSSCommandHandler::EnableCallback::EnableCallback(PassRefPtr<InspectorBackendDispatcherImpl> backendImpl, int id) : CallbackBase(backendImpl, id) {}
  1872. @@ -3969,7 +4209,7 @@
  1873.          callback->disable();
  1874.  
  1875.      }
  1876. -    sendResponse(callId, result, commandNames[kCSS_enableCmd], protocolErrors, error, resultErrorData);
  1877. +    sendResponse(callId, result, commandName(kCSS_enableCmd), protocolErrors, error, resultErrorData);
  1878.  }
  1879.  
  1880.  void InspectorBackendDispatcherImpl::CSS_disable(long callId, JSONObject*)
  1881. @@ -3988,7 +4228,7 @@
  1882.  
  1883.  
  1884.      }
  1885. -    sendResponse(callId, result, commandNames[kCSS_disableCmd], protocolErrors, error, resultErrorData);
  1886. +    sendResponse(callId, result, commandName(kCSS_disableCmd), protocolErrors, error, resultErrorData);
  1887.  }
  1888.  
  1889.  void InspectorBackendDispatcherImpl::CSS_getMatchedStylesForNode(long callId, JSONObject* requestMessageObject)
  1890. @@ -4027,7 +4267,7 @@
  1891.                  result->setValue("inherited", out_inherited);
  1892.          }
  1893.      }
  1894. -    sendResponse(callId, result, commandNames[kCSS_getMatchedStylesForNodeCmd], protocolErrors, error, resultErrorData);
  1895. +    sendResponse(callId, result, commandName(kCSS_getMatchedStylesForNodeCmd), protocolErrors, error, resultErrorData);
  1896.  }
  1897.  
  1898.  void InspectorBackendDispatcherImpl::CSS_getInlineStylesForNode(long callId, JSONObject* requestMessageObject)
  1899. @@ -4059,7 +4299,7 @@
  1900.                  result->setValue("attributesStyle", out_attributesStyle);
  1901.          }
  1902.      }
  1903. -    sendResponse(callId, result, commandNames[kCSS_getInlineStylesForNodeCmd], protocolErrors, error, resultErrorData);
  1904. +    sendResponse(callId, result, commandName(kCSS_getInlineStylesForNodeCmd), protocolErrors, error, resultErrorData);
  1905.  }
  1906.  
  1907.  void InspectorBackendDispatcherImpl::CSS_getComputedStyleForNode(long callId, JSONObject* requestMessageObject)
  1908. @@ -4087,7 +4327,7 @@
  1909.              result->setValue("computedStyle", out_computedStyle);
  1910.          }
  1911.      }
  1912. -    sendResponse(callId, result, commandNames[kCSS_getComputedStyleForNodeCmd], protocolErrors, error, resultErrorData);
  1913. +    sendResponse(callId, result, commandName(kCSS_getComputedStyleForNodeCmd), protocolErrors, error, resultErrorData);
  1914.  }
  1915.  
  1916.  void InspectorBackendDispatcherImpl::CSS_getPlatformFontsForNode(long callId, JSONObject* requestMessageObject)
  1917. @@ -4117,7 +4357,7 @@
  1918.              result->setValue("fonts", out_fonts);
  1919.          }
  1920.      }
  1921. -    sendResponse(callId, result, commandNames[kCSS_getPlatformFontsForNodeCmd], protocolErrors, error, resultErrorData);
  1922. +    sendResponse(callId, result, commandName(kCSS_getPlatformFontsForNodeCmd), protocolErrors, error, resultErrorData);
  1923.  }
  1924.  
  1925.  void InspectorBackendDispatcherImpl::CSS_getAllStyleSheets(long callId, JSONObject*)
  1926. @@ -4140,7 +4380,7 @@
  1927.              result->setValue("headers", out_headers);
  1928.          }
  1929.      }
  1930. -    sendResponse(callId, result, commandNames[kCSS_getAllStyleSheetsCmd], protocolErrors, error, resultErrorData);
  1931. +    sendResponse(callId, result, commandName(kCSS_getAllStyleSheetsCmd), protocolErrors, error, resultErrorData);
  1932.  }
  1933.  
  1934.  void InspectorBackendDispatcherImpl::CSS_getStyleSheet(long callId, JSONObject* requestMessageObject)
  1935. @@ -4168,7 +4408,7 @@
  1936.              result->setValue("styleSheet", out_styleSheet);
  1937.          }
  1938.      }
  1939. -    sendResponse(callId, result, commandNames[kCSS_getStyleSheetCmd], protocolErrors, error, resultErrorData);
  1940. +    sendResponse(callId, result, commandName(kCSS_getStyleSheetCmd), protocolErrors, error, resultErrorData);
  1941.  }
  1942.  
  1943.  void InspectorBackendDispatcherImpl::CSS_getStyleSheetText(long callId, JSONObject* requestMessageObject)
  1944. @@ -4196,7 +4436,7 @@
  1945.              result->setString("text", out_text);
  1946.          }
  1947.      }
  1948. -    sendResponse(callId, result, commandNames[kCSS_getStyleSheetTextCmd], protocolErrors, error, resultErrorData);
  1949. +    sendResponse(callId, result, commandName(kCSS_getStyleSheetTextCmd), protocolErrors, error, resultErrorData);
  1950.  }
  1951.  
  1952.  void InspectorBackendDispatcherImpl::CSS_setStyleSheetText(long callId, JSONObject* requestMessageObject)
  1953. @@ -4221,7 +4461,7 @@
  1954.  
  1955.  
  1956.      }
  1957. -    sendResponse(callId, result, commandNames[kCSS_setStyleSheetTextCmd], protocolErrors, error, resultErrorData);
  1958. +    sendResponse(callId, result, commandName(kCSS_setStyleSheetTextCmd), protocolErrors, error, resultErrorData);
  1959.  }
  1960.  
  1961.  void InspectorBackendDispatcherImpl::CSS_setStyleText(long callId, JSONObject* requestMessageObject)
  1962. @@ -4250,7 +4490,7 @@
  1963.              result->setValue("style", out_style);
  1964.          }
  1965.      }
  1966. -    sendResponse(callId, result, commandNames[kCSS_setStyleTextCmd], protocolErrors, error, resultErrorData);
  1967. +    sendResponse(callId, result, commandName(kCSS_setStyleTextCmd), protocolErrors, error, resultErrorData);
  1968.  }
  1969.  
  1970.  void InspectorBackendDispatcherImpl::CSS_setPropertyText(long callId, JSONObject* requestMessageObject)
  1971. @@ -4281,7 +4521,7 @@
  1972.              result->setValue("style", out_style);
  1973.          }
  1974.      }
  1975. -    sendResponse(callId, result, commandNames[kCSS_setPropertyTextCmd], protocolErrors, error, resultErrorData);
  1976. +    sendResponse(callId, result, commandName(kCSS_setPropertyTextCmd), protocolErrors, error, resultErrorData);
  1977.  }
  1978.  
  1979.  void InspectorBackendDispatcherImpl::CSS_toggleProperty(long callId, JSONObject* requestMessageObject)
  1980. @@ -4311,7 +4551,7 @@
  1981.              result->setValue("style", out_style);
  1982.          }
  1983.      }
  1984. -    sendResponse(callId, result, commandNames[kCSS_togglePropertyCmd], protocolErrors, error, resultErrorData);
  1985. +    sendResponse(callId, result, commandName(kCSS_togglePropertyCmd), protocolErrors, error, resultErrorData);
  1986.  }
  1987.  
  1988.  void InspectorBackendDispatcherImpl::CSS_setRuleSelector(long callId, JSONObject* requestMessageObject)
  1989. @@ -4340,7 +4580,7 @@
  1990.              result->setValue("rule", out_rule);
  1991.          }
  1992.      }
  1993. -    sendResponse(callId, result, commandNames[kCSS_setRuleSelectorCmd], protocolErrors, error, resultErrorData);
  1994. +    sendResponse(callId, result, commandName(kCSS_setRuleSelectorCmd), protocolErrors, error, resultErrorData);
  1995.  }
  1996.  
  1997.  void InspectorBackendDispatcherImpl::CSS_addRule(long callId, JSONObject* requestMessageObject)
  1998. @@ -4369,7 +4609,7 @@
  1999.              result->setValue("rule", out_rule);
  2000.          }
  2001.      }
  2002. -    sendResponse(callId, result, commandNames[kCSS_addRuleCmd], protocolErrors, error, resultErrorData);
  2003. +    sendResponse(callId, result, commandName(kCSS_addRuleCmd), protocolErrors, error, resultErrorData);
  2004.  }
  2005.  
  2006.  void InspectorBackendDispatcherImpl::CSS_getSupportedCSSProperties(long callId, JSONObject*)
  2007. @@ -4392,7 +4632,7 @@
  2008.              result->setValue("cssProperties", out_cssProperties);
  2009.          }
  2010.      }
  2011. -    sendResponse(callId, result, commandNames[kCSS_getSupportedCSSPropertiesCmd], protocolErrors, error, resultErrorData);
  2012. +    sendResponse(callId, result, commandName(kCSS_getSupportedCSSPropertiesCmd), protocolErrors, error, resultErrorData);
  2013.  }
  2014.  
  2015.  void InspectorBackendDispatcherImpl::CSS_forcePseudoState(long callId, JSONObject* requestMessageObject)
  2016. @@ -4417,7 +4657,7 @@
  2017.  
  2018.  
  2019.      }
  2020. -    sendResponse(callId, result, commandNames[kCSS_forcePseudoStateCmd], protocolErrors, error, resultErrorData);
  2021. +    sendResponse(callId, result, commandName(kCSS_forcePseudoStateCmd), protocolErrors, error, resultErrorData);
  2022.  }
  2023.  
  2024.  void InspectorBackendDispatcherImpl::CSS_getNamedFlowCollection(long callId, JSONObject* requestMessageObject)
  2025. @@ -4445,7 +4685,7 @@
  2026.              result->setValue("namedFlows", out_namedFlows);
  2027.          }
  2028.      }
  2029. -    sendResponse(callId, result, commandNames[kCSS_getNamedFlowCollectionCmd], protocolErrors, error, resultErrorData);
  2030. +    sendResponse(callId, result, commandName(kCSS_getNamedFlowCollectionCmd), protocolErrors, error, resultErrorData);
  2031.  }
  2032.  
  2033.  void InspectorBackendDispatcherImpl::Timeline_enable(long callId, JSONObject*)
  2034. @@ -4464,7 +4704,7 @@
  2035.  
  2036.  
  2037.      }
  2038. -    sendResponse(callId, result, commandNames[kTimeline_enableCmd], protocolErrors, error, resultErrorData);
  2039. +    sendResponse(callId, result, commandName(kTimeline_enableCmd), protocolErrors, error, resultErrorData);
  2040.  }
  2041.  
  2042.  void InspectorBackendDispatcherImpl::Timeline_disable(long callId, JSONObject*)
  2043. @@ -4483,7 +4723,7 @@
  2044.  
  2045.  
  2046.      }
  2047. -    sendResponse(callId, result, commandNames[kTimeline_disableCmd], protocolErrors, error, resultErrorData);
  2048. +    sendResponse(callId, result, commandName(kTimeline_disableCmd), protocolErrors, error, resultErrorData);
  2049.  }
  2050.  
  2051.  void InspectorBackendDispatcherImpl::Timeline_start(long callId, JSONObject* requestMessageObject)
  2052. @@ -4512,7 +4752,7 @@
  2053.  
  2054.  
  2055.      }
  2056. -    sendResponse(callId, result, commandNames[kTimeline_startCmd], protocolErrors, error, resultErrorData);
  2057. +    sendResponse(callId, result, commandName(kTimeline_startCmd), protocolErrors, error, resultErrorData);
  2058.  }
  2059.  
  2060.  void InspectorBackendDispatcherImpl::Timeline_stop(long callId, JSONObject*)
  2061. @@ -4536,7 +4776,7 @@
  2062.                  result->setValue("events", out_events);
  2063.          }
  2064.      }
  2065. -    sendResponse(callId, result, commandNames[kTimeline_stopCmd], protocolErrors, error, resultErrorData);
  2066. +    sendResponse(callId, result, commandName(kTimeline_stopCmd), protocolErrors, error, resultErrorData);
  2067.  }
  2068.  
  2069.  void InspectorBackendDispatcherImpl::Debugger_enable(long callId, JSONObject*)
  2070. @@ -4555,7 +4795,7 @@
  2071.  
  2072.  
  2073.      }
  2074. -    sendResponse(callId, result, commandNames[kDebugger_enableCmd], protocolErrors, error, resultErrorData);
  2075. +    sendResponse(callId, result, commandName(kDebugger_enableCmd), protocolErrors, error, resultErrorData);
  2076.  }
  2077.  
  2078.  void InspectorBackendDispatcherImpl::Debugger_disable(long callId, JSONObject*)
  2079. @@ -4574,7 +4814,7 @@
  2080.  
  2081.  
  2082.      }
  2083. -    sendResponse(callId, result, commandNames[kDebugger_disableCmd], protocolErrors, error, resultErrorData);
  2084. +    sendResponse(callId, result, commandName(kDebugger_disableCmd), protocolErrors, error, resultErrorData);
  2085.  }
  2086.  
  2087.  void InspectorBackendDispatcherImpl::Debugger_setBreakpointsActive(long callId, JSONObject* requestMessageObject)
  2088. @@ -4598,7 +4838,7 @@
  2089.  
  2090.  
  2091.      }
  2092. -    sendResponse(callId, result, commandNames[kDebugger_setBreakpointsActiveCmd], protocolErrors, error, resultErrorData);
  2093. +    sendResponse(callId, result, commandName(kDebugger_setBreakpointsActiveCmd), protocolErrors, error, resultErrorData);
  2094.  }
  2095.  
  2096.  void InspectorBackendDispatcherImpl::Debugger_setSkipAllPauses(long callId, JSONObject* requestMessageObject)
  2097. @@ -4624,7 +4864,7 @@
  2098.  
  2099.  
  2100.      }
  2101. -    sendResponse(callId, result, commandNames[kDebugger_setSkipAllPausesCmd], protocolErrors, error, resultErrorData);
  2102. +    sendResponse(callId, result, commandName(kDebugger_setSkipAllPausesCmd), protocolErrors, error, resultErrorData);
  2103.  }
  2104.  
  2105.  void InspectorBackendDispatcherImpl::Debugger_setBreakpointByUrl(long callId, JSONObject* requestMessageObject)
  2106. @@ -4664,7 +4904,7 @@
  2107.              result->setValue("locations", out_locations);
  2108.          }
  2109.      }
  2110. -    sendResponse(callId, result, commandNames[kDebugger_setBreakpointByUrlCmd], protocolErrors, error, resultErrorData);
  2111. +    sendResponse(callId, result, commandName(kDebugger_setBreakpointByUrlCmd), protocolErrors, error, resultErrorData);
  2112.  }
  2113.  
  2114.  void InspectorBackendDispatcherImpl::Debugger_setBreakpoint(long callId, JSONObject* requestMessageObject)
  2115. @@ -4696,7 +4936,7 @@
  2116.              result->setValue("actualLocation", out_actualLocation);
  2117.          }
  2118.      }
  2119. -    sendResponse(callId, result, commandNames[kDebugger_setBreakpointCmd], protocolErrors, error, resultErrorData);
  2120. +    sendResponse(callId, result, commandName(kDebugger_setBreakpointCmd), protocolErrors, error, resultErrorData);
  2121.  }
  2122.  
  2123.  void InspectorBackendDispatcherImpl::Debugger_removeBreakpoint(long callId, JSONObject* requestMessageObject)
  2124. @@ -4720,7 +4960,7 @@
  2125.  
  2126.  
  2127.      }
  2128. -    sendResponse(callId, result, commandNames[kDebugger_removeBreakpointCmd], protocolErrors, error, resultErrorData);
  2129. +    sendResponse(callId, result, commandName(kDebugger_removeBreakpointCmd), protocolErrors, error, resultErrorData);
  2130.  }
  2131.  
  2132.  void InspectorBackendDispatcherImpl::Debugger_continueToLocation(long callId, JSONObject* requestMessageObject)
  2133. @@ -4746,7 +4986,7 @@
  2134.  
  2135.  
  2136.      }
  2137. -    sendResponse(callId, result, commandNames[kDebugger_continueToLocationCmd], protocolErrors, error, resultErrorData);
  2138. +    sendResponse(callId, result, commandName(kDebugger_continueToLocationCmd), protocolErrors, error, resultErrorData);
  2139.  }
  2140.  
  2141.  void InspectorBackendDispatcherImpl::Debugger_stepOver(long callId, JSONObject* requestMessageObject)
  2142. @@ -4771,7 +5011,7 @@
  2143.  
  2144.  
  2145.      }
  2146. -    sendResponse(callId, result, commandNames[kDebugger_stepOverCmd], protocolErrors, error, resultErrorData);
  2147. +    sendResponse(callId, result, commandName(kDebugger_stepOverCmd), protocolErrors, error, resultErrorData);
  2148.  }
  2149.  
  2150.  void InspectorBackendDispatcherImpl::Debugger_stepInto(long callId, JSONObject*)
  2151. @@ -4790,7 +5030,7 @@
  2152.  
  2153.  
  2154.      }
  2155. -    sendResponse(callId, result, commandNames[kDebugger_stepIntoCmd], protocolErrors, error, resultErrorData);
  2156. +    sendResponse(callId, result, commandName(kDebugger_stepIntoCmd), protocolErrors, error, resultErrorData);
  2157.  }
  2158.  
  2159.  void InspectorBackendDispatcherImpl::Debugger_stepOut(long callId, JSONObject* requestMessageObject)
  2160. @@ -4815,7 +5055,7 @@
  2161.  
  2162.  
  2163.      }
  2164. -    sendResponse(callId, result, commandNames[kDebugger_stepOutCmd], protocolErrors, error, resultErrorData);
  2165. +    sendResponse(callId, result, commandName(kDebugger_stepOutCmd), protocolErrors, error, resultErrorData);
  2166.  }
  2167.  
  2168.  void InspectorBackendDispatcherImpl::Debugger_pause(long callId, JSONObject*)
  2169. @@ -4834,7 +5074,7 @@
  2170.  
  2171.  
  2172.      }
  2173. -    sendResponse(callId, result, commandNames[kDebugger_pauseCmd], protocolErrors, error, resultErrorData);
  2174. +    sendResponse(callId, result, commandName(kDebugger_pauseCmd), protocolErrors, error, resultErrorData);
  2175.  }
  2176.  
  2177.  void InspectorBackendDispatcherImpl::Debugger_resume(long callId, JSONObject*)
  2178. @@ -4853,7 +5093,7 @@
  2179.  
  2180.  
  2181.      }
  2182. -    sendResponse(callId, result, commandNames[kDebugger_resumeCmd], protocolErrors, error, resultErrorData);
  2183. +    sendResponse(callId, result, commandName(kDebugger_resumeCmd), protocolErrors, error, resultErrorData);
  2184.  }
  2185.  
  2186.  void InspectorBackendDispatcherImpl::Debugger_searchInContent(long callId, JSONObject* requestMessageObject)
  2187. @@ -4886,7 +5126,7 @@
  2188.              result->setValue("result", out_result);
  2189.          }
  2190.      }
  2191. -    sendResponse(callId, result, commandNames[kDebugger_searchInContentCmd], protocolErrors, error, resultErrorData);
  2192. +    sendResponse(callId, result, commandName(kDebugger_searchInContentCmd), protocolErrors, error, resultErrorData);
  2193.  }
  2194.  
  2195.  void InspectorBackendDispatcherImpl::Debugger_canSetScriptSource(long callId, JSONObject*)
  2196. @@ -4909,7 +5149,7 @@
  2197.              result->setBoolean("result", out_result);
  2198.          }
  2199.      }
  2200. -    sendResponse(callId, result, commandNames[kDebugger_canSetScriptSourceCmd], protocolErrors, error, resultErrorData);
  2201. +    sendResponse(callId, result, commandName(kDebugger_canSetScriptSourceCmd), protocolErrors, error, resultErrorData);
  2202.  }
  2203.  
  2204.  void InspectorBackendDispatcherImpl::Debugger_setScriptSource(long callId, JSONObject* requestMessageObject)
  2205. @@ -4949,7 +5189,7 @@
  2206.                  result->setValue("result", out_result);
  2207.          }
  2208.      }
  2209. -    sendResponse(callId, result, commandNames[kDebugger_setScriptSourceCmd], protocolErrors, error, resultErrorData);
  2210. +    sendResponse(callId, result, commandName(kDebugger_setScriptSourceCmd), protocolErrors, error, resultErrorData);
  2211.  }
  2212.  
  2213.  void InspectorBackendDispatcherImpl::Debugger_restartFrame(long callId, JSONObject* requestMessageObject)
  2214. @@ -4979,7 +5219,7 @@
  2215.              result->setValue("result", out_result);
  2216.          }
  2217.      }
  2218. -    sendResponse(callId, result, commandNames[kDebugger_restartFrameCmd], protocolErrors, error, resultErrorData);
  2219. +    sendResponse(callId, result, commandName(kDebugger_restartFrameCmd), protocolErrors, error, resultErrorData);
  2220.  }
  2221.  
  2222.  void InspectorBackendDispatcherImpl::Debugger_getScriptSource(long callId, JSONObject* requestMessageObject)
  2223. @@ -5007,7 +5247,7 @@
  2224.              result->setString("scriptSource", out_scriptSource);
  2225.          }
  2226.      }
  2227. -    sendResponse(callId, result, commandNames[kDebugger_getScriptSourceCmd], protocolErrors, error, resultErrorData);
  2228. +    sendResponse(callId, result, commandName(kDebugger_getScriptSourceCmd), protocolErrors, error, resultErrorData);
  2229.  }
  2230.  
  2231.  void InspectorBackendDispatcherImpl::Debugger_getFunctionDetails(long callId, JSONObject* requestMessageObject)
  2232. @@ -5035,7 +5275,7 @@
  2233.              result->setValue("details", out_details);
  2234.          }
  2235.      }
  2236. -    sendResponse(callId, result, commandNames[kDebugger_getFunctionDetailsCmd], protocolErrors, error, resultErrorData);
  2237. +    sendResponse(callId, result, commandName(kDebugger_getFunctionDetailsCmd), protocolErrors, error, resultErrorData);
  2238.  }
  2239.  
  2240.  void InspectorBackendDispatcherImpl::Debugger_setPauseOnExceptions(long callId, JSONObject* requestMessageObject)
  2241. @@ -5059,7 +5299,7 @@
  2242.  
  2243.  
  2244.      }
  2245. -    sendResponse(callId, result, commandNames[kDebugger_setPauseOnExceptionsCmd], protocolErrors, error, resultErrorData);
  2246. +    sendResponse(callId, result, commandName(kDebugger_setPauseOnExceptionsCmd), protocolErrors, error, resultErrorData);
  2247.  }
  2248.  
  2249.  void InspectorBackendDispatcherImpl::Debugger_evaluateOnCallFrame(long callId, JSONObject* requestMessageObject)
  2250. @@ -5101,7 +5341,7 @@
  2251.                  result->setBoolean("wasThrown", out_wasThrown.getValue());
  2252.          }
  2253.      }
  2254. -    sendResponse(callId, result, commandNames[kDebugger_evaluateOnCallFrameCmd], protocolErrors, error, resultErrorData);
  2255. +    sendResponse(callId, result, commandName(kDebugger_evaluateOnCallFrameCmd), protocolErrors, error, resultErrorData);
  2256.  }
  2257.  
  2258.  void InspectorBackendDispatcherImpl::Debugger_compileScript(long callId, JSONObject* requestMessageObject)
  2259. @@ -5134,7 +5374,7 @@
  2260.                  result->setString("syntaxErrorMessage", out_syntaxErrorMessage.getValue());
  2261.          }
  2262.      }
  2263. -    sendResponse(callId, result, commandNames[kDebugger_compileScriptCmd], protocolErrors, error, resultErrorData);
  2264. +    sendResponse(callId, result, commandName(kDebugger_compileScriptCmd), protocolErrors, error, resultErrorData);
  2265.  }
  2266.  
  2267.  void InspectorBackendDispatcherImpl::Debugger_runScript(long callId, JSONObject* requestMessageObject)
  2268. @@ -5171,7 +5411,7 @@
  2269.                  result->setBoolean("wasThrown", out_wasThrown.getValue());
  2270.          }
  2271.      }
  2272. -    sendResponse(callId, result, commandNames[kDebugger_runScriptCmd], protocolErrors, error, resultErrorData);
  2273. +    sendResponse(callId, result, commandName(kDebugger_runScriptCmd), protocolErrors, error, resultErrorData);
  2274.  }
  2275.  
  2276.  void InspectorBackendDispatcherImpl::Debugger_setOverlayMessage(long callId, JSONObject* requestMessageObject)
  2277. @@ -5196,7 +5436,7 @@
  2278.  
  2279.  
  2280.      }
  2281. -    sendResponse(callId, result, commandNames[kDebugger_setOverlayMessageCmd], protocolErrors, error, resultErrorData);
  2282. +    sendResponse(callId, result, commandName(kDebugger_setOverlayMessageCmd), protocolErrors, error, resultErrorData);
  2283.  }
  2284.  
  2285.  void InspectorBackendDispatcherImpl::Debugger_setVariableValue(long callId, JSONObject* requestMessageObject)
  2286. @@ -5226,7 +5466,7 @@
  2287.  
  2288.  
  2289.      }
  2290. -    sendResponse(callId, result, commandNames[kDebugger_setVariableValueCmd], protocolErrors, error, resultErrorData);
  2291. +    sendResponse(callId, result, commandName(kDebugger_setVariableValueCmd), protocolErrors, error, resultErrorData);
  2292.  }
  2293.  
  2294.  void InspectorBackendDispatcherImpl::Debugger_getStepInPositions(long callId, JSONObject* requestMessageObject)
  2295. @@ -5255,7 +5495,7 @@
  2296.                  result->setValue("stepInPositions", out_stepInPositions);
  2297.          }
  2298.      }
  2299. -    sendResponse(callId, result, commandNames[kDebugger_getStepInPositionsCmd], protocolErrors, error, resultErrorData);
  2300. +    sendResponse(callId, result, commandName(kDebugger_getStepInPositionsCmd), protocolErrors, error, resultErrorData);
  2301.  }
  2302.  
  2303.  void InspectorBackendDispatcherImpl::Debugger_getBacktrace(long callId, JSONObject*)
  2304. @@ -5278,7 +5518,7 @@
  2305.              result->setValue("callFrames", out_callFrames);
  2306.          }
  2307.      }
  2308. -    sendResponse(callId, result, commandNames[kDebugger_getBacktraceCmd], protocolErrors, error, resultErrorData);
  2309. +    sendResponse(callId, result, commandName(kDebugger_getBacktraceCmd), protocolErrors, error, resultErrorData);
  2310.  }
  2311.  
  2312.  void InspectorBackendDispatcherImpl::Debugger_skipStackFrames(long callId, JSONObject* requestMessageObject)
  2313. @@ -5303,7 +5543,7 @@
  2314.  
  2315.  
  2316.      }
  2317. -    sendResponse(callId, result, commandNames[kDebugger_skipStackFramesCmd], protocolErrors, error, resultErrorData);
  2318. +    sendResponse(callId, result, commandName(kDebugger_skipStackFramesCmd), protocolErrors, error, resultErrorData);
  2319.  }
  2320.  
  2321.  void InspectorBackendDispatcherImpl::DOMDebugger_setDOMBreakpoint(long callId, JSONObject* requestMessageObject)
  2322. @@ -5328,7 +5568,7 @@
  2323.  
  2324.  
  2325.      }
  2326. -    sendResponse(callId, result, commandNames[kDOMDebugger_setDOMBreakpointCmd], protocolErrors, error, resultErrorData);
  2327. +    sendResponse(callId, result, commandName(kDOMDebugger_setDOMBreakpointCmd), protocolErrors, error, resultErrorData);
  2328.  }
  2329.  
  2330.  void InspectorBackendDispatcherImpl::DOMDebugger_removeDOMBreakpoint(long callId, JSONObject* requestMessageObject)
  2331. @@ -5353,7 +5593,7 @@
  2332.  
  2333.  
  2334.      }
  2335. -    sendResponse(callId, result, commandNames[kDOMDebugger_removeDOMBreakpointCmd], protocolErrors, error, resultErrorData);
  2336. +    sendResponse(callId, result, commandName(kDOMDebugger_removeDOMBreakpointCmd), protocolErrors, error, resultErrorData);
  2337.  }
  2338.  
  2339.  void InspectorBackendDispatcherImpl::DOMDebugger_setEventListenerBreakpoint(long callId, JSONObject* requestMessageObject)
  2340. @@ -5377,7 +5617,7 @@
  2341.  
  2342.  
  2343.      }
  2344. -    sendResponse(callId, result, commandNames[kDOMDebugger_setEventListenerBreakpointCmd], protocolErrors, error, resultErrorData);
  2345. +    sendResponse(callId, result, commandName(kDOMDebugger_setEventListenerBreakpointCmd), protocolErrors, error, resultErrorData);
  2346.  }
  2347.  
  2348.  void InspectorBackendDispatcherImpl::DOMDebugger_removeEventListenerBreakpoint(long callId, JSONObject* requestMessageObject)
  2349. @@ -5401,7 +5641,7 @@
  2350.  
  2351.  
  2352.      }
  2353. -    sendResponse(callId, result, commandNames[kDOMDebugger_removeEventListenerBreakpointCmd], protocolErrors, error, resultErrorData);
  2354. +    sendResponse(callId, result, commandName(kDOMDebugger_removeEventListenerBreakpointCmd), protocolErrors, error, resultErrorData);
  2355.  }
  2356.  
  2357.  void InspectorBackendDispatcherImpl::DOMDebugger_setInstrumentationBreakpoint(long callId, JSONObject* requestMessageObject)
  2358. @@ -5425,7 +5665,7 @@
  2359.  
  2360.  
  2361.      }
  2362. -    sendResponse(callId, result, commandNames[kDOMDebugger_setInstrumentationBreakpointCmd], protocolErrors, error, resultErrorData);
  2363. +    sendResponse(callId, result, commandName(kDOMDebugger_setInstrumentationBreakpointCmd), protocolErrors, error, resultErrorData);
  2364.  }
  2365.  
  2366.  void InspectorBackendDispatcherImpl::DOMDebugger_removeInstrumentationBreakpoint(long callId, JSONObject* requestMessageObject)
  2367. @@ -5449,7 +5689,7 @@
  2368.  
  2369.  
  2370.      }
  2371. -    sendResponse(callId, result, commandNames[kDOMDebugger_removeInstrumentationBreakpointCmd], protocolErrors, error, resultErrorData);
  2372. +    sendResponse(callId, result, commandName(kDOMDebugger_removeInstrumentationBreakpointCmd), protocolErrors, error, resultErrorData);
  2373.  }
  2374.  
  2375.  void InspectorBackendDispatcherImpl::DOMDebugger_setXHRBreakpoint(long callId, JSONObject* requestMessageObject)
  2376. @@ -5473,7 +5713,7 @@
  2377.  
  2378.  
  2379.      }
  2380. -    sendResponse(callId, result, commandNames[kDOMDebugger_setXHRBreakpointCmd], protocolErrors, error, resultErrorData);
  2381. +    sendResponse(callId, result, commandName(kDOMDebugger_setXHRBreakpointCmd), protocolErrors, error, resultErrorData);
  2382.  }
  2383.  
  2384.  void InspectorBackendDispatcherImpl::DOMDebugger_removeXHRBreakpoint(long callId, JSONObject* requestMessageObject)
  2385. @@ -5497,7 +5737,7 @@
  2386.  
  2387.  
  2388.      }
  2389. -    sendResponse(callId, result, commandNames[kDOMDebugger_removeXHRBreakpointCmd], protocolErrors, error, resultErrorData);
  2390. +    sendResponse(callId, result, commandName(kDOMDebugger_removeXHRBreakpointCmd), protocolErrors, error, resultErrorData);
  2391.  }
  2392.  
  2393.  void InspectorBackendDispatcherImpl::Profiler_enable(long callId, JSONObject*)
  2394. @@ -5516,7 +5756,7 @@
  2395.  
  2396.  
  2397.      }
  2398. -    sendResponse(callId, result, commandNames[kProfiler_enableCmd], protocolErrors, error, resultErrorData);
  2399. +    sendResponse(callId, result, commandName(kProfiler_enableCmd), protocolErrors, error, resultErrorData);
  2400.  }
  2401.  
  2402.  void InspectorBackendDispatcherImpl::Profiler_disable(long callId, JSONObject*)
  2403. @@ -5535,7 +5775,7 @@
  2404.  
  2405.  
  2406.      }
  2407. -    sendResponse(callId, result, commandNames[kProfiler_disableCmd], protocolErrors, error, resultErrorData);
  2408. +    sendResponse(callId, result, commandName(kProfiler_disableCmd), protocolErrors, error, resultErrorData);
  2409.  }
  2410.  
  2411.  void InspectorBackendDispatcherImpl::Profiler_setSamplingInterval(long callId, JSONObject* requestMessageObject)
  2412. @@ -5559,7 +5799,7 @@
  2413.  
  2414.  
  2415.      }
  2416. -    sendResponse(callId, result, commandNames[kProfiler_setSamplingIntervalCmd], protocolErrors, error, resultErrorData);
  2417. +    sendResponse(callId, result, commandName(kProfiler_setSamplingIntervalCmd), protocolErrors, error, resultErrorData);
  2418.  }
  2419.  
  2420.  void InspectorBackendDispatcherImpl::Profiler_start(long callId, JSONObject*)
  2421. @@ -5578,7 +5818,7 @@
  2422.  
  2423.  
  2424.      }
  2425. -    sendResponse(callId, result, commandNames[kProfiler_startCmd], protocolErrors, error, resultErrorData);
  2426. +    sendResponse(callId, result, commandName(kProfiler_startCmd), protocolErrors, error, resultErrorData);
  2427.  }
  2428.  
  2429.  void InspectorBackendDispatcherImpl::Profiler_stop(long callId, JSONObject*)
  2430. @@ -5601,7 +5841,7 @@
  2431.              result->setValue("header", out_header);
  2432.          }
  2433.      }
  2434. -    sendResponse(callId, result, commandNames[kProfiler_stopCmd], protocolErrors, error, resultErrorData);
  2435. +    sendResponse(callId, result, commandName(kProfiler_stopCmd), protocolErrors, error, resultErrorData);
  2436.  }
  2437.  
  2438.  void InspectorBackendDispatcherImpl::Profiler_getCPUProfile(long callId, JSONObject* requestMessageObject)
  2439. @@ -5629,7 +5869,7 @@
  2440.              result->setValue("profile", out_profile);
  2441.          }
  2442.      }
  2443. -    sendResponse(callId, result, commandNames[kProfiler_getCPUProfileCmd], protocolErrors, error, resultErrorData);
  2444. +    sendResponse(callId, result, commandName(kProfiler_getCPUProfileCmd), protocolErrors, error, resultErrorData);
  2445.  }
  2446.  
  2447.  void InspectorBackendDispatcherImpl::Profiler_removeProfile(long callId, JSONObject* requestMessageObject)
  2448. @@ -5654,7 +5894,7 @@
  2449.  
  2450.  
  2451.      }
  2452. -    sendResponse(callId, result, commandNames[kProfiler_removeProfileCmd], protocolErrors, error, resultErrorData);
  2453. +    sendResponse(callId, result, commandName(kProfiler_removeProfileCmd), protocolErrors, error, resultErrorData);
  2454.  }
  2455.  
  2456.  void InspectorBackendDispatcherImpl::Profiler_clearProfiles(long callId, JSONObject*)
  2457. @@ -5673,7 +5913,7 @@
  2458.  
  2459.  
  2460.      }
  2461. -    sendResponse(callId, result, commandNames[kProfiler_clearProfilesCmd], protocolErrors, error, resultErrorData);
  2462. +    sendResponse(callId, result, commandName(kProfiler_clearProfilesCmd), protocolErrors, error, resultErrorData);
  2463.  }
  2464.  
  2465.  void InspectorBackendDispatcherImpl::HeapProfiler_enable(long callId, JSONObject*)
  2466. @@ -5692,7 +5932,7 @@
  2467.  
  2468.  
  2469.      }
  2470. -    sendResponse(callId, result, commandNames[kHeapProfiler_enableCmd], protocolErrors, error, resultErrorData);
  2471. +    sendResponse(callId, result, commandName(kHeapProfiler_enableCmd), protocolErrors, error, resultErrorData);
  2472.  }
  2473.  
  2474.  void InspectorBackendDispatcherImpl::HeapProfiler_disable(long callId, JSONObject*)
  2475. @@ -5711,7 +5951,7 @@
  2476.  
  2477.  
  2478.      }
  2479. -    sendResponse(callId, result, commandNames[kHeapProfiler_disableCmd], protocolErrors, error, resultErrorData);
  2480. +    sendResponse(callId, result, commandName(kHeapProfiler_disableCmd), protocolErrors, error, resultErrorData);
  2481.  }
  2482.  
  2483.  void InspectorBackendDispatcherImpl::HeapProfiler_startTrackingHeapObjects(long callId, JSONObject*)
  2484. @@ -5730,7 +5970,7 @@
  2485.  
  2486.  
  2487.      }
  2488. -    sendResponse(callId, result, commandNames[kHeapProfiler_startTrackingHeapObjectsCmd], protocolErrors, error, resultErrorData);
  2489. +    sendResponse(callId, result, commandName(kHeapProfiler_startTrackingHeapObjectsCmd), protocolErrors, error, resultErrorData);
  2490.  }
  2491.  
  2492.  void InspectorBackendDispatcherImpl::HeapProfiler_stopTrackingHeapObjects(long callId, JSONObject*)
  2493. @@ -5749,7 +5989,7 @@
  2494.  
  2495.  
  2496.      }
  2497. -    sendResponse(callId, result, commandNames[kHeapProfiler_stopTrackingHeapObjectsCmd], protocolErrors, error, resultErrorData);
  2498. +    sendResponse(callId, result, commandName(kHeapProfiler_stopTrackingHeapObjectsCmd), protocolErrors, error, resultErrorData);
  2499.  }
  2500.  
  2501.  void InspectorBackendDispatcherImpl::HeapProfiler_getHeapSnapshot(long callId, JSONObject* requestMessageObject)
  2502. @@ -5773,7 +6013,7 @@
  2503.  
  2504.  
  2505.      }
  2506. -    sendResponse(callId, result, commandNames[kHeapProfiler_getHeapSnapshotCmd], protocolErrors, error, resultErrorData);
  2507. +    sendResponse(callId, result, commandName(kHeapProfiler_getHeapSnapshotCmd), protocolErrors, error, resultErrorData);
  2508.  }
  2509.  
  2510.  void InspectorBackendDispatcherImpl::HeapProfiler_removeProfile(long callId, JSONObject* requestMessageObject)
  2511. @@ -5797,7 +6037,7 @@
  2512.  
  2513.  
  2514.      }
  2515. -    sendResponse(callId, result, commandNames[kHeapProfiler_removeProfileCmd], protocolErrors, error, resultErrorData);
  2516. +    sendResponse(callId, result, commandName(kHeapProfiler_removeProfileCmd), protocolErrors, error, resultErrorData);
  2517.  }
  2518.  
  2519.  void InspectorBackendDispatcherImpl::HeapProfiler_clearProfiles(long callId, JSONObject*)
  2520. @@ -5816,7 +6056,7 @@
  2521.  
  2522.  
  2523.      }
  2524. -    sendResponse(callId, result, commandNames[kHeapProfiler_clearProfilesCmd], protocolErrors, error, resultErrorData);
  2525. +    sendResponse(callId, result, commandName(kHeapProfiler_clearProfilesCmd), protocolErrors, error, resultErrorData);
  2526.  }
  2527.  
  2528.  void InspectorBackendDispatcherImpl::HeapProfiler_takeHeapSnapshot(long callId, JSONObject* requestMessageObject)
  2529. @@ -5841,7 +6081,7 @@
  2530.  
  2531.  
  2532.      }
  2533. -    sendResponse(callId, result, commandNames[kHeapProfiler_takeHeapSnapshotCmd], protocolErrors, error, resultErrorData);
  2534. +    sendResponse(callId, result, commandName(kHeapProfiler_takeHeapSnapshotCmd), protocolErrors, error, resultErrorData);
  2535.  }
  2536.  
  2537.  void InspectorBackendDispatcherImpl::HeapProfiler_collectGarbage(long callId, JSONObject*)
  2538. @@ -5860,7 +6100,7 @@
  2539.  
  2540.  
  2541.      }
  2542. -    sendResponse(callId, result, commandNames[kHeapProfiler_collectGarbageCmd], protocolErrors, error, resultErrorData);
  2543. +    sendResponse(callId, result, commandName(kHeapProfiler_collectGarbageCmd), protocolErrors, error, resultErrorData);
  2544.  }
  2545.  
  2546.  void InspectorBackendDispatcherImpl::HeapProfiler_getObjectByHeapObjectId(long callId, JSONObject* requestMessageObject)
  2547. @@ -5890,7 +6130,7 @@
  2548.              result->setValue("result", out_result);
  2549.          }
  2550.      }
  2551. -    sendResponse(callId, result, commandNames[kHeapProfiler_getObjectByHeapObjectIdCmd], protocolErrors, error, resultErrorData);
  2552. +    sendResponse(callId, result, commandName(kHeapProfiler_getObjectByHeapObjectIdCmd), protocolErrors, error, resultErrorData);
  2553.  }
  2554.  
  2555.  void InspectorBackendDispatcherImpl::HeapProfiler_getHeapObjectId(long callId, JSONObject* requestMessageObject)
  2556. @@ -5918,7 +6158,7 @@
  2557.              result->setString("heapSnapshotObjectId", out_heapSnapshotObjectId);
  2558.          }
  2559.      }
  2560. -    sendResponse(callId, result, commandNames[kHeapProfiler_getHeapObjectIdCmd], protocolErrors, error, resultErrorData);
  2561. +    sendResponse(callId, result, commandName(kHeapProfiler_getHeapObjectIdCmd), protocolErrors, error, resultErrorData);
  2562.  }
  2563.  
  2564.  void InspectorBackendDispatcherImpl::Worker_enable(long callId, JSONObject*)
  2565. @@ -5937,7 +6177,7 @@
  2566.  
  2567.  
  2568.      }
  2569. -    sendResponse(callId, result, commandNames[kWorker_enableCmd], protocolErrors, error, resultErrorData);
  2570. +    sendResponse(callId, result, commandName(kWorker_enableCmd), protocolErrors, error, resultErrorData);
  2571.  }
  2572.  
  2573.  void InspectorBackendDispatcherImpl::Worker_disable(long callId, JSONObject*)
  2574. @@ -5956,7 +6196,7 @@
  2575.  
  2576.  
  2577.      }
  2578. -    sendResponse(callId, result, commandNames[kWorker_disableCmd], protocolErrors, error, resultErrorData);
  2579. +    sendResponse(callId, result, commandName(kWorker_disableCmd), protocolErrors, error, resultErrorData);
  2580.  }
  2581.  
  2582.  void InspectorBackendDispatcherImpl::Worker_sendMessageToWorker(long callId, JSONObject* requestMessageObject)
  2583. @@ -5981,7 +6221,7 @@
  2584.  
  2585.  
  2586.      }
  2587. -    sendResponse(callId, result, commandNames[kWorker_sendMessageToWorkerCmd], protocolErrors, error, resultErrorData);
  2588. +    sendResponse(callId, result, commandName(kWorker_sendMessageToWorkerCmd), protocolErrors, error, resultErrorData);
  2589.  }
  2590.  
  2591.  void InspectorBackendDispatcherImpl::Worker_canInspectWorkers(long callId, JSONObject*)
  2592. @@ -6004,7 +6244,7 @@
  2593.              result->setBoolean("result", out_result);
  2594.          }
  2595.      }
  2596. -    sendResponse(callId, result, commandNames[kWorker_canInspectWorkersCmd], protocolErrors, error, resultErrorData);
  2597. +    sendResponse(callId, result, commandName(kWorker_canInspectWorkersCmd), protocolErrors, error, resultErrorData);
  2598.  }
  2599.  
  2600.  void InspectorBackendDispatcherImpl::Worker_connectToWorker(long callId, JSONObject* requestMessageObject)
  2601. @@ -6028,7 +6268,7 @@
  2602.  
  2603.  
  2604.      }
  2605. -    sendResponse(callId, result, commandNames[kWorker_connectToWorkerCmd], protocolErrors, error, resultErrorData);
  2606. +    sendResponse(callId, result, commandName(kWorker_connectToWorkerCmd), protocolErrors, error, resultErrorData);
  2607.  }
  2608.  
  2609.  void InspectorBackendDispatcherImpl::Worker_disconnectFromWorker(long callId, JSONObject* requestMessageObject)
  2610. @@ -6052,7 +6292,7 @@
  2611.  
  2612.  
  2613.      }
  2614. -    sendResponse(callId, result, commandNames[kWorker_disconnectFromWorkerCmd], protocolErrors, error, resultErrorData);
  2615. +    sendResponse(callId, result, commandName(kWorker_disconnectFromWorkerCmd), protocolErrors, error, resultErrorData);
  2616.  }
  2617.  
  2618.  void InspectorBackendDispatcherImpl::Worker_setAutoconnectToWorkers(long callId, JSONObject* requestMessageObject)
  2619. @@ -6076,7 +6316,7 @@
  2620.  
  2621.  
  2622.      }
  2623. -    sendResponse(callId, result, commandNames[kWorker_setAutoconnectToWorkersCmd], protocolErrors, error, resultErrorData);
  2624. +    sendResponse(callId, result, commandName(kWorker_setAutoconnectToWorkersCmd), protocolErrors, error, resultErrorData);
  2625.  }
  2626.  
  2627.  void InspectorBackendDispatcherImpl::Canvas_enable(long callId, JSONObject*)
  2628. @@ -6095,7 +6335,7 @@
  2629.  
  2630.  
  2631.      }
  2632. -    sendResponse(callId, result, commandNames[kCanvas_enableCmd], protocolErrors, error, resultErrorData);
  2633. +    sendResponse(callId, result, commandName(kCanvas_enableCmd), protocolErrors, error, resultErrorData);
  2634.  }
  2635.  
  2636.  void InspectorBackendDispatcherImpl::Canvas_disable(long callId, JSONObject*)
  2637. @@ -6114,7 +6354,7 @@
  2638.  
  2639.  
  2640.      }
  2641. -    sendResponse(callId, result, commandNames[kCanvas_disableCmd], protocolErrors, error, resultErrorData);
  2642. +    sendResponse(callId, result, commandName(kCanvas_disableCmd), protocolErrors, error, resultErrorData);
  2643.  }
  2644.  
  2645.  void InspectorBackendDispatcherImpl::Canvas_dropTraceLog(long callId, JSONObject* requestMessageObject)
  2646. @@ -6138,7 +6378,7 @@
  2647.  
  2648.  
  2649.      }
  2650. -    sendResponse(callId, result, commandNames[kCanvas_dropTraceLogCmd], protocolErrors, error, resultErrorData);
  2651. +    sendResponse(callId, result, commandName(kCanvas_dropTraceLogCmd), protocolErrors, error, resultErrorData);
  2652.  }
  2653.  
  2654.  void InspectorBackendDispatcherImpl::Canvas_hasUninstrumentedCanvases(long callId, JSONObject*)
  2655. @@ -6161,7 +6401,7 @@
  2656.              result->setBoolean("result", out_result);
  2657.          }
  2658.      }
  2659. -    sendResponse(callId, result, commandNames[kCanvas_hasUninstrumentedCanvasesCmd], protocolErrors, error, resultErrorData);
  2660. +    sendResponse(callId, result, commandName(kCanvas_hasUninstrumentedCanvasesCmd), protocolErrors, error, resultErrorData);
  2661.  }
  2662.  
  2663.  void InspectorBackendDispatcherImpl::Canvas_captureFrame(long callId, JSONObject* requestMessageObject)
  2664. @@ -6190,7 +6430,7 @@
  2665.              result->setString("traceLogId", out_traceLogId);
  2666.          }
  2667.      }
  2668. -    sendResponse(callId, result, commandNames[kCanvas_captureFrameCmd], protocolErrors, error, resultErrorData);
  2669. +    sendResponse(callId, result, commandName(kCanvas_captureFrameCmd), protocolErrors, error, resultErrorData);
  2670.  }
  2671.  
  2672.  void InspectorBackendDispatcherImpl::Canvas_startCapturing(long callId, JSONObject* requestMessageObject)
  2673. @@ -6219,7 +6459,7 @@
  2674.              result->setString("traceLogId", out_traceLogId);
  2675.          }
  2676.      }
  2677. -    sendResponse(callId, result, commandNames[kCanvas_startCapturingCmd], protocolErrors, error, resultErrorData);
  2678. +    sendResponse(callId, result, commandName(kCanvas_startCapturingCmd), protocolErrors, error, resultErrorData);
  2679.  }
  2680.  
  2681.  void InspectorBackendDispatcherImpl::Canvas_stopCapturing(long callId, JSONObject* requestMessageObject)
  2682. @@ -6243,7 +6483,7 @@
  2683.  
  2684.  
  2685.      }
  2686. -    sendResponse(callId, result, commandNames[kCanvas_stopCapturingCmd], protocolErrors, error, resultErrorData);
  2687. +    sendResponse(callId, result, commandName(kCanvas_stopCapturingCmd), protocolErrors, error, resultErrorData);
  2688.  }
  2689.  
  2690.  void InspectorBackendDispatcherImpl::Canvas_getTraceLog(long callId, JSONObject* requestMessageObject)
  2691. @@ -6275,7 +6515,7 @@
  2692.              result->setValue("traceLog", out_traceLog);
  2693.          }
  2694.      }
  2695. -    sendResponse(callId, result, commandNames[kCanvas_getTraceLogCmd], protocolErrors, error, resultErrorData);
  2696. +    sendResponse(callId, result, commandName(kCanvas_getTraceLogCmd), protocolErrors, error, resultErrorData);
  2697.  }
  2698.  
  2699.  void InspectorBackendDispatcherImpl::Canvas_replayTraceLog(long callId, JSONObject* requestMessageObject)
  2700. @@ -6306,7 +6546,7 @@
  2701.              result->setNumber("replayTime", out_replayTime);
  2702.          }
  2703.      }
  2704. -    sendResponse(callId, result, commandNames[kCanvas_replayTraceLogCmd], protocolErrors, error, resultErrorData);
  2705. +    sendResponse(callId, result, commandName(kCanvas_replayTraceLogCmd), protocolErrors, error, resultErrorData);
  2706.  }
  2707.  
  2708.  void InspectorBackendDispatcherImpl::Canvas_getResourceState(long callId, JSONObject* requestMessageObject)
  2709. @@ -6335,7 +6575,7 @@
  2710.              result->setValue("resourceState", out_resourceState);
  2711.          }
  2712.      }
  2713. -    sendResponse(callId, result, commandNames[kCanvas_getResourceStateCmd], protocolErrors, error, resultErrorData);
  2714. +    sendResponse(callId, result, commandName(kCanvas_getResourceStateCmd), protocolErrors, error, resultErrorData);
  2715.  }
  2716.  
  2717.  void InspectorBackendDispatcherImpl::Canvas_evaluateTraceLogCallArgument(long callId, JSONObject* requestMessageObject)
  2718. @@ -6371,7 +6611,7 @@
  2719.                  result->setValue("resourceState", out_resourceState);
  2720.          }
  2721.      }
  2722. -    sendResponse(callId, result, commandNames[kCanvas_evaluateTraceLogCallArgumentCmd], protocolErrors, error, resultErrorData);
  2723. +    sendResponse(callId, result, commandName(kCanvas_evaluateTraceLogCallArgumentCmd), protocolErrors, error, resultErrorData);
  2724.  }
  2725.  
  2726.  void InspectorBackendDispatcherImpl::Input_dispatchKeyEvent(long callId, JSONObject* requestMessageObject)
  2727. @@ -6417,7 +6657,7 @@
  2728.  
  2729.  
  2730.      }
  2731. -    sendResponse(callId, result, commandNames[kInput_dispatchKeyEventCmd], protocolErrors, error, resultErrorData);
  2732. +    sendResponse(callId, result, commandName(kInput_dispatchKeyEventCmd), protocolErrors, error, resultErrorData);
  2733.  }
  2734.  
  2735.  void InspectorBackendDispatcherImpl::Input_dispatchMouseEvent(long callId, JSONObject* requestMessageObject)
  2736. @@ -6453,7 +6693,7 @@
  2737.  
  2738.  
  2739.      }
  2740. -    sendResponse(callId, result, commandNames[kInput_dispatchMouseEventCmd], protocolErrors, error, resultErrorData);
  2741. +    sendResponse(callId, result, commandName(kInput_dispatchMouseEventCmd), protocolErrors, error, resultErrorData);
  2742.  }
  2743.  
  2744.  void InspectorBackendDispatcherImpl::Input_dispatchTouchEvent(long callId, JSONObject* requestMessageObject)
  2745. @@ -6482,7 +6722,7 @@
  2746.  
  2747.  
  2748.      }
  2749. -    sendResponse(callId, result, commandNames[kInput_dispatchTouchEventCmd], protocolErrors, error, resultErrorData);
  2750. +    sendResponse(callId, result, commandName(kInput_dispatchTouchEventCmd), protocolErrors, error, resultErrorData);
  2751.  }
  2752.  
  2753.  void InspectorBackendDispatcherImpl::Input_dispatchGestureEvent(long callId, JSONObject* requestMessageObject)
  2754. @@ -6516,7 +6756,7 @@
  2755.  
  2756.  
  2757.      }
  2758. -    sendResponse(callId, result, commandNames[kInput_dispatchGestureEventCmd], protocolErrors, error, resultErrorData);
  2759. +    sendResponse(callId, result, commandName(kInput_dispatchGestureEventCmd), protocolErrors, error, resultErrorData);
  2760.  }
  2761.  
  2762.  void InspectorBackendDispatcherImpl::LayerTree_enable(long callId, JSONObject*)
  2763. @@ -6535,7 +6775,7 @@
  2764.  
  2765.  
  2766.      }
  2767. -    sendResponse(callId, result, commandNames[kLayerTree_enableCmd], protocolErrors, error, resultErrorData);
  2768. +    sendResponse(callId, result, commandName(kLayerTree_enableCmd), protocolErrors, error, resultErrorData);
  2769.  }
  2770.  
  2771.  void InspectorBackendDispatcherImpl::LayerTree_disable(long callId, JSONObject*)
  2772. @@ -6554,7 +6794,7 @@
  2773.  
  2774.  
  2775.      }
  2776. -    sendResponse(callId, result, commandNames[kLayerTree_disableCmd], protocolErrors, error, resultErrorData);
  2777. +    sendResponse(callId, result, commandName(kLayerTree_disableCmd), protocolErrors, error, resultErrorData);
  2778.  }
  2779.  
  2780.  void InspectorBackendDispatcherImpl::LayerTree_getLayers(long callId, JSONObject* requestMessageObject)
  2781. @@ -6583,7 +6823,7 @@
  2782.              result->setValue("layers", out_layers);
  2783.          }
  2784.      }
  2785. -    sendResponse(callId, result, commandNames[kLayerTree_getLayersCmd], protocolErrors, error, resultErrorData);
  2786. +    sendResponse(callId, result, commandName(kLayerTree_getLayersCmd), protocolErrors, error, resultErrorData);
  2787.  }
  2788.  
  2789.  void InspectorBackendDispatcherImpl::LayerTree_compositingReasons(long callId, JSONObject* requestMessageObject)
  2790. @@ -6611,7 +6851,7 @@
  2791.              result->setValue("compositingReasons", out_compositingReasons);
  2792.          }
  2793.      }
  2794. -    sendResponse(callId, result, commandNames[kLayerTree_compositingReasonsCmd], protocolErrors, error, resultErrorData);
  2795. +    sendResponse(callId, result, commandName(kLayerTree_compositingReasonsCmd), protocolErrors, error, resultErrorData);
  2796.  }
  2797.  
  2798.  void InspectorBackendDispatcherImpl::Tracing_start(long callId, JSONObject* requestMessageObject)
  2799. @@ -6635,7 +6875,7 @@
  2800.  
  2801.  
  2802.      }
  2803. -    sendResponse(callId, result, commandNames[kTracing_startCmd], protocolErrors, error, resultErrorData);
  2804. +    sendResponse(callId, result, commandName(kTracing_startCmd), protocolErrors, error, resultErrorData);
  2805.  }
  2806.  
  2807.  void InspectorBackendDispatcherImpl::Tracing_end(long callId, JSONObject*)
  2808. @@ -6654,7 +6894,7 @@
  2809.  
  2810.  
  2811.      }
  2812. -    sendResponse(callId, result, commandNames[kTracing_endCmd], protocolErrors, error, resultErrorData);
  2813. +    sendResponse(callId, result, commandName(kTracing_endCmd), protocolErrors, error, resultErrorData);
  2814.  }
  2815.  
  2816.  
  2817. @@ -6908,9 +7148,8 @@
  2818.              &InspectorBackendDispatcherImpl::Tracing_start,
  2819.              &InspectorBackendDispatcherImpl::Tracing_end,
  2820.          };
  2821. -        size_t length = WTF_ARRAY_LENGTH(commandNames);
  2822. -        for (size_t i = 0; i < length; ++i)
  2823. -            dispatchMap.add(commandNames[i], handlers[i]);
  2824. +        for (size_t i = 0; i < kMethodNamesEnumSize; ++i)
  2825. +            dispatchMap.add(commandName(static_cast<MethodNames>(i)), handlers[i]);
  2826.      }
  2827.  
  2828.      RefPtr<JSONValue> parsedMessage = parseJSON(message);
  2829. @@ -7130,7 +7369,5 @@
  2830.      m_alreadySent = true;
  2831.  }
  2832.  
  2833. -COMPILE_ASSERT(static_cast<int>(InspectorBackendDispatcher::kMethodNamesEnumSize) == WTF_ARRAY_LENGTH(InspectorBackendDispatcher::commandNames), command_name_array_problem);
  2834. -
  2835.  } // namespace WebCore
Add Comment
Please, Sign In to add comment