1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 // THIS FILE IS AUTOGENERATED. 6 // If you need change something in this file, please see 7 // protocol.json and browser_protocol.json 8 9 #include "content/browser/devtools/devtools_protocol_constants.h" 10 11 namespace content { 12 namespace devtools { 13 14 const char kResult[] = "result"; 15 16 namespace DOM { 17 const char kName[] = "DOM"; 18 19 namespace Rect { 20 const char kParamHeight[] = "height"; 21 const char kParamWidth[] = "width"; 22 const char kParamX[] = "x"; 23 const char kParamY[] = "y"; 24 } // Rect 25 26 namespace setFileInputFiles { 27 const char kName[] = "DOM.setFileInputFiles"; 28 const char kParamFiles[] = "files"; 29 const char kParamNodeId[] = "nodeId"; 30 } // setFileInputFiles 31 } // DOM 32 33 namespace Input { 34 const char kName[] = "Input"; 35 36 namespace dispatchGestureEvent { 37 const char kName[] = "Input.dispatchGestureEvent"; 38 const char kParamDeltaX[] = "deltaX"; 39 const char kParamDeltaY[] = "deltaY"; 40 const char kParamPinchScale[] = "pinchScale"; 41 const char kParamTimestamp[] = "timestamp"; 42 const char kParamType[] = "type"; 43 const char kParamX[] = "x"; 44 const char kParamY[] = "y"; 45 46 namespace Type { 47 const char kEnumPinchBegin[] = "pinchBegin"; 48 const char kEnumPinchEnd[] = "pinchEnd"; 49 const char kEnumPinchUpdate[] = "pinchUpdate"; 50 const char kEnumScrollBegin[] = "scrollBegin"; 51 const char kEnumScrollEnd[] = "scrollEnd"; 52 const char kEnumScrollUpdate[] = "scrollUpdate"; 53 const char kEnumTap[] = "tap"; 54 const char kEnumTapDown[] = "tapDown"; 55 } // Type 56 } // dispatchGestureEvent 57 58 namespace dispatchMouseEvent { 59 const char kName[] = "Input.dispatchMouseEvent"; 60 const char kParamButton[] = "button"; 61 const char kParamClickCount[] = "clickCount"; 62 const char kParamDeviceSpace[] = "deviceSpace"; 63 const char kParamModifiers[] = "modifiers"; 64 const char kParamTimestamp[] = "timestamp"; 65 const char kParamType[] = "type"; 66 const char kParamX[] = "x"; 67 const char kParamY[] = "y"; 68 69 namespace Button { 70 const char kEnumLeft[] = "left"; 71 const char kEnumMiddle[] = "middle"; 72 const char kEnumNone[] = "none"; 73 const char kEnumRight[] = "right"; 74 } // Button 75 76 namespace Type { 77 const char kEnumMouseMoved[] = "mouseMoved"; 78 const char kEnumMousePressed[] = "mousePressed"; 79 const char kEnumMouseReleased[] = "mouseReleased"; 80 } // Type 81 } // dispatchMouseEvent 82 } // Input 83 84 namespace Inspector { 85 const char kName[] = "Inspector"; 86 87 namespace detached { 88 const char kName[] = "Inspector.detached"; 89 const char kParamReason[] = "reason"; 90 } // detached 91 92 namespace targetCrashed { 93 const char kName[] = "Inspector.targetCrashed"; 94 } // targetCrashed 95 } // Inspector 96 97 namespace Page { 98 const char kName[] = "Page"; 99 100 namespace NavigationEntry { 101 const char kParamId[] = "id"; 102 const char kParamTitle[] = "title"; 103 const char kParamUrl[] = "url"; 104 } // NavigationEntry 105 106 namespace Quota { 107 const char kParamPersistent[] = "persistent"; 108 const char kParamTemporary[] = "temporary"; 109 } // Quota 110 111 namespace ScreencastFrameMetadata { 112 const char kParamDeviceScaleFactor[] = "deviceScaleFactor"; 113 const char kParamOffsetBottom[] = "offsetBottom"; 114 const char kParamOffsetTop[] = "offsetTop"; 115 const char kParamPageScaleFactor[] = "pageScaleFactor"; 116 const char kParamPageScaleFactorMax[] = "pageScaleFactorMax"; 117 const char kParamPageScaleFactorMin[] = "pageScaleFactorMin"; 118 const char kParamViewport[] = "viewport"; 119 } // ScreencastFrameMetadata 120 121 namespace Usage { 122 const char kParamPersistent[] = "persistent"; 123 const char kParamSyncable[] = "syncable"; 124 const char kParamTemporary[] = "temporary"; 125 } // Usage 126 127 namespace UsageItem { 128 const char kParamId[] = "id"; 129 const char kParamValue[] = "value"; 130 131 namespace Id { 132 const char kEnumAppcache[] = "appcache"; 133 const char kEnumDatabase[] = "database"; 134 const char kEnumFilesystem[] = "filesystem"; 135 const char kEnumIndexeddatabase[] = "indexeddatabase"; 136 } // Id 137 } // UsageItem 138 139 namespace canScreencast { 140 const char kName[] = "Page.canScreencast"; 141 const char kResponseResult[] = "result"; 142 } // canScreencast 143 144 namespace captureScreenshot { 145 const char kName[] = "Page.captureScreenshot"; 146 const char kParamFormat[] = "format"; 147 const char kParamMaxHeight[] = "maxHeight"; 148 const char kParamMaxWidth[] = "maxWidth"; 149 const char kParamQuality[] = "quality"; 150 const char kResponseData[] = "data"; 151 const char kResponseMetadata[] = "metadata"; 152 153 namespace Format { 154 const char kEnumJpeg[] = "jpeg"; 155 const char kEnumPng[] = "png"; 156 } // Format 157 } // captureScreenshot 158 159 namespace disable { 160 const char kName[] = "Page.disable"; 161 } // disable 162 163 namespace getNavigationHistory { 164 const char kName[] = "Page.getNavigationHistory"; 165 const char kResponseCurrentIndex[] = "currentIndex"; 166 const char kResponseEntries[] = "entries"; 167 } // getNavigationHistory 168 169 namespace handleJavaScriptDialog { 170 const char kName[] = "Page.handleJavaScriptDialog"; 171 const char kParamAccept[] = "accept"; 172 const char kParamPromptText[] = "promptText"; 173 } // handleJavaScriptDialog 174 175 namespace navigate { 176 const char kName[] = "Page.navigate"; 177 const char kParamUrl[] = "url"; 178 } // navigate 179 180 namespace navigateToHistoryEntry { 181 const char kName[] = "Page.navigateToHistoryEntry"; 182 const char kParamEntryId[] = "entryId"; 183 } // navigateToHistoryEntry 184 185 namespace queryUsageAndQuota { 186 const char kName[] = "Page.queryUsageAndQuota"; 187 const char kParamSecurityOrigin[] = "securityOrigin"; 188 const char kResponseQuota[] = "quota"; 189 const char kResponseUsage[] = "usage"; 190 } // queryUsageAndQuota 191 192 namespace reload { 193 const char kName[] = "Page.reload"; 194 const char kParamIgnoreCache[] = "ignoreCache"; 195 const char kParamScriptPreprocessor[] = "scriptPreprocessor"; 196 const char kParamScriptToEvaluateOnLoad[] = "scriptToEvaluateOnLoad"; 197 } // reload 198 199 namespace screencastFrame { 200 const char kName[] = "Page.screencastFrame"; 201 const char kParamData[] = "data"; 202 const char kParamMetadata[] = "metadata"; 203 } // screencastFrame 204 205 namespace screencastVisibilityChanged { 206 const char kName[] = "Page.screencastVisibilityChanged"; 207 const char kParamVisible[] = "visible"; 208 } // screencastVisibilityChanged 209 210 namespace startScreencast { 211 const char kName[] = "Page.startScreencast"; 212 const char kParamFormat[] = "format"; 213 const char kParamMaxHeight[] = "maxHeight"; 214 const char kParamMaxWidth[] = "maxWidth"; 215 const char kParamQuality[] = "quality"; 216 217 namespace Format { 218 const char kEnumJpeg[] = "jpeg"; 219 const char kEnumPng[] = "png"; 220 } // Format 221 } // startScreencast 222 223 namespace stopScreencast { 224 const char kName[] = "Page.stopScreencast"; 225 } // stopScreencast 226 } // Page 227 228 namespace SystemInfo { 229 const char kName[] = "SystemInfo"; 230 231 namespace GPUDevice { 232 const char kParamDeviceId[] = "deviceId"; 233 const char kParamDeviceString[] = "deviceString"; 234 const char kParamVendorId[] = "vendorId"; 235 const char kParamVendorString[] = "vendorString"; 236 } // GPUDevice 237 238 namespace GPUInfo { 239 const char kParamAuxAttributes[] = "auxAttributes"; 240 const char kParamDevices[] = "devices"; 241 const char kParamFeatureStatus[] = "featureStatus"; 242 } // GPUInfo 243 244 namespace SystemInfo { 245 const char kParamGpu[] = "gpu"; 246 const char kParamModelName[] = "modelName"; 247 } // SystemInfo 248 249 namespace getInfo { 250 const char kName[] = "SystemInfo.getInfo"; 251 const char kResponseInfo[] = "info"; 252 } // getInfo 253 } // SystemInfo 254 255 namespace Tracing { 256 const char kName[] = "Tracing"; 257 258 namespace dataCollected { 259 const char kName[] = "Tracing.dataCollected"; 260 const char kParamValue[] = "value"; 261 } // dataCollected 262 263 namespace end { 264 const char kName[] = "Tracing.end"; 265 } // end 266 267 namespace start { 268 const char kName[] = "Tracing.start"; 269 const char kParamCategories[] = "categories"; 270 const char kParamOptions[] = "options"; 271 } // start 272 273 namespace tracingComplete { 274 const char kName[] = "Tracing.tracingComplete"; 275 } // tracingComplete 276 } // Tracing 277 278 namespace Worker { 279 const char kName[] = "Worker"; 280 281 namespace disconnectFromWorker { 282 const char kName[] = "Worker.disconnectFromWorker"; 283 const char kParamWorkerId[] = "workerId"; 284 } // disconnectFromWorker 285 286 namespace disconnectedFromWorker { 287 const char kName[] = "Worker.disconnectedFromWorker"; 288 } // disconnectedFromWorker 289 } // Worker 290 291 292 } // devtools 293 } // content 294