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 #ifndef CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_PROTOCOL_CONSTANTSH_
6 #define CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_PROTOCOL_CONSTANTSH_
8 // The constants in this file should be used instead manually constructing
9 // strings passed to and from DevTools protocol.
11 // There is a plan to generate this file from inspector.json automatically.
12 // Until then please feel free to add the constants here as needed.
17 extern const char kParamX
[];
18 extern const char kParamY
[];
19 extern const char kParamWidth
[];
20 extern const char kParamHeight
[];
24 namespace setFileInputFiles
{
25 extern const char kName
[];
26 extern const char kParamFiles
[];
27 } // setFileInputFiles
33 extern const char kParamType
[];
34 extern const char kParamModifiers
[];
35 extern const char kParamTimestamp
[];
36 extern const char kParamDeviceSpace
[];
38 namespace dispatchMouseEvent
{
39 extern const char kName
[];
40 extern const char kParamX
[];
41 extern const char kParamY
[];
42 extern const char kParamButton
[];
43 extern const char kParamClickCount
[];
44 } // dispatchMouseEvent
46 namespace dispatchGestureEvent
{
47 extern const char kName
[];
48 extern const char kParamDeltaX
[];
49 extern const char kParamDeltaY
[];
50 extern const char kParamPinchScale
[];
51 } // dispatchGestureEvent
58 extern const char kName
[];
59 extern const char kParamReason
[];
62 namespace targetCrashed
{
63 extern const char kName
[];
70 extern const char kData
[];
71 extern const char kParamDeviceScaleFactor
[];
72 extern const char kParamPageScaleFactor
[];
73 extern const char kParamPageScaleFactorMin
[];
74 extern const char kParamPageScaleFactorMax
[];
75 extern const char kParamOffsetBottom
[];
76 extern const char kParamOffsetTop
[];
77 extern const char kParamViewport
[];
80 extern const char kName
[];
83 namespace handleJavaScriptDialog
{
84 extern const char kName
[];
85 extern const char kParamAccept
[];
86 extern const char kParamPromptText
[];
87 } // handleJavaScriptDialog
90 extern const char kName
[];
91 extern const char kParamUrl
[];
95 extern const char kName
[];
98 namespace getNavigationHistory
{
99 extern const char kName
[];
100 extern const char kResponseCurrentIndex
[];
101 extern const char kResponseEntries
[];
102 extern const char kResponseEntryId
[];
103 extern const char kResponseEntryURL
[];
104 extern const char kResponseEntryTitle
[];
105 } // getNavigationHistory
107 namespace navigateToHistoryEntry
{
108 extern const char kName
[];
109 extern const char kParamEntryId
[];
110 } // navigateToHistoryEntry
112 namespace captureScreenshot
{
113 extern const char kName
[];
114 extern const char kParamFormat
[];
115 extern const char kParamQuality
[];
116 extern const char kParamMaxWidth
[];
117 extern const char kParamMaxHeight
[];
118 } // captureScreenshot
120 namespace startScreencast
{
121 extern const char kName
[];
124 namespace stopScreencast
{
125 extern const char kName
[];
128 namespace screencastFrame
{
129 extern const char kName
[];
132 namespace screencastVisibilityChanged
{
133 extern const char kName
[];
134 extern const char kParamVisible
[];
135 } // screencastVisibilityChanged
139 extern const char kName
[];
142 extern const char kName
[];
143 extern const char kCategories
[];
144 extern const char kTraceOptions
[];
148 extern const char kName
[];
151 namespace tracingComplete
{
152 extern const char kName
[];
155 namespace dataCollected
{
156 extern const char kName
[];
157 extern const char kValue
[];
164 namespace disconnectedFromWorker
{
165 extern const char kName
[];
166 } // disconnectedFromWorker
171 namespace SystemInfo
{
172 extern const char kName
[];
175 extern const char kName
[];
182 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_PROTOCOL_CONSTANTSH_