Respond with QuotaExceededError when IndexedDB has no disk space on open.
[chromium-blink-merge.git] / content / browser / devtools / devtools_protocol_constants.h
blob733e697189c3544ca0b158ce5cb27491dc91772c
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.
14 namespace content {
15 namespace devtools {
17 extern const char kParamX[];
18 extern const char kParamY[];
19 extern const char kParamWidth[];
20 extern const char kParamHeight[];
22 namespace DOM {
24 namespace setFileInputFiles {
25 extern const char kName[];
26 extern const char kParamFiles[];
27 } // setFileInputFiles
29 } // DOM
31 namespace Input {
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
53 } // Input
55 namespace Inspector {
57 namespace detached {
58 extern const char kName[];
59 extern const char kParamReason[];
60 } // detached
62 namespace targetCrashed {
63 extern const char kName[];
64 } // targetCrashed
66 } // Inspector
68 namespace Page {
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[];
79 namespace disable {
80 extern const char kName[];
81 } // disable
83 namespace handleJavaScriptDialog {
84 extern const char kName[];
85 extern const char kParamAccept[];
86 extern const char kParamPromptText[];
87 } // handleJavaScriptDialog
89 namespace navigate {
90 extern const char kName[];
91 extern const char kParamUrl[];
92 } // navigate
94 namespace reload {
95 extern const char kName[];
96 } // reload
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[];
122 } // startScreencast
124 namespace stopScreencast {
125 extern const char kName[];
126 } // stopScreencast
128 namespace screencastFrame {
129 extern const char kName[];
130 } // screencastFrame
132 namespace screencastVisibilityChanged {
133 extern const char kName[];
134 extern const char kParamVisible[];
135 } // screencastVisibilityChanged
136 } // Page
138 namespace Tracing {
139 extern const char kName[];
141 namespace start {
142 extern const char kName[];
143 extern const char kCategories[];
144 extern const char kTraceOptions[];
145 } // start
147 namespace end {
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[];
160 } // Tracing
162 namespace Worker {
164 namespace disconnectedFromWorker {
165 extern const char kName[];
166 } // disconnectedFromWorker
168 } // Worker
171 namespace SystemInfo {
172 extern const char kName[];
174 namespace getInfo {
175 extern const char kName[];
176 } // getInfo
177 } // SystemInfo
179 } // devtools
180 } // content
182 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_PROTOCOL_CONSTANTSH_