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.
5 #include "content/browser/devtools/devtools_protocol_constants.h"
10 const char kParamX
[] = "x";
11 const char kParamY
[] = "y";
12 const char kParamWidth
[] = "width";
13 const char kParamHeight
[] = "height";
17 namespace setFileInputFiles
{
18 const char kName
[] = "DOM.setFileInputFiles";
19 const char kParamFiles
[] = "files";
20 } // setFileInputFiles
26 const char kParamType
[] = "type";
27 const char kParamModifiers
[] = "modifiers";
28 const char kParamTimestamp
[] = "timestamp";
29 const char kParamDeviceSpace
[] = "deviceSpace";
31 namespace dispatchMouseEvent
{
32 const char kName
[] = "Input.dispatchMouseEvent";
33 const char kParamButton
[] = "button";
34 const char kParamClickCount
[] = "clickCount";
35 } // dispatchMouseEvent
37 namespace dispatchGestureEvent
{
38 const char kName
[] = "Input.dispatchGestureEvent";
39 const char kParamDeltaX
[] = "deltaX";
40 const char kParamDeltaY
[] = "deltaY";
41 const char kParamPinchScale
[] = "pinchScale";
42 } // dispatchGestureEvent
49 const char kName
[] = "Inspector.detached";
50 const char kParamReason
[] = "reason";
53 namespace targetCrashed
{
54 const char kName
[] = "Inspector.targetCrashed";
61 const char kData
[] = "data";
62 const char kParamDeviceScaleFactor
[] = "deviceScaleFactor";
63 const char kParamPageScaleFactor
[] = "pageScaleFactor";
64 const char kParamPageScaleFactorMin
[] = "pageScaleFactorMin";
65 const char kParamPageScaleFactorMax
[] = "pageScaleFactorMax";
66 const char kParamOffsetBottom
[] = "offsetBottom";
67 const char kParamOffsetTop
[] = "offsetTop";
68 const char kParamViewport
[] = "viewport";
71 const char kName
[] = "Page.disable";
74 namespace handleJavaScriptDialog
{
75 const char kName
[] = "Page.handleJavaScriptDialog";
76 const char kParamAccept
[] = "accept";
77 const char kParamPromptText
[] = "promptText";
78 } // handleJavaScriptDialog
81 const char kName
[] = "Page.navigate";
82 const char kParamUrl
[] = "url";
86 const char kName
[] = "Page.reload";
89 namespace getNavigationHistory
{
90 const char kName
[] = "Page.getNavigationHistory";
91 const char kResponseCurrentIndex
[] = "currentIndex";
92 const char kResponseEntries
[] = "entries";
93 const char kResponseEntryId
[] = "id";
94 const char kResponseEntryURL
[] = "url";
95 const char kResponseEntryTitle
[] = "title";
96 } // getNavigationHistory
98 namespace navigateToHistoryEntry
{
99 const char kName
[] = "Page.navigateToHistoryEntry";
100 const char kParamEntryId
[] = "entryId";
101 } // navigateToHistoryEntry
103 namespace captureScreenshot
{
104 const char kName
[] = "Page.captureScreenshot";
105 const char kParamFormat
[] = "format";
106 const char kParamQuality
[] = "quality";
107 const char kParamMaxWidth
[] = "maxWidth";
108 const char kParamMaxHeight
[] = "maxHeight";
109 } // captureScreenshot
111 namespace startScreencast
{
112 const char kName
[] = "Page.startScreencast";
115 namespace stopScreencast
{
116 const char kName
[] = "Page.stopScreencast";
119 namespace screencastFrame
{
120 const char kName
[] = "Page.screencastFrame";
123 namespace screencastVisibilityChanged
{
124 const char kName
[] = "Page.screencastVisibilityChanged";
125 const char kParamVisible
[] = "visible";
126 } // screencastVisibilityChanged
132 namespace disconnectedFromWorker
{
133 const char kName
[] = "Worker.disconnectedFromWorker";
134 } // disconnectedFromWorker
139 const char kName
[] = "Tracing";
142 const char kName
[] = "Tracing.start";
143 const char kCategories
[] = "categories";
144 const char kTraceOptions
[] = "trace-options";
148 const char kName
[] = "Tracing.end";
151 namespace tracingComplete
{
152 const char kName
[] = "Tracing.tracingComplete";
155 namespace dataCollected
{
156 const char kName
[] = "Tracing.dataCollected";
157 const char kValue
[] = "value";
162 namespace SystemInfo
{
163 const char kName
[] = "SystemInfo";
166 const char kName
[] = "SystemInfo.getInfo";