Remove linux_chromium_gn_dbg from the chromium CQ.
[chromium-blink-merge.git] / extensions / browser / guest_view / web_view / web_view_constants.h
blob17b1517e1a74df8021e17cdb49fc96b75d53f7cd
1 // Copyright 2014 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 // Constants used for the WebView API.
7 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_CONSTANTS_H_
8 #define EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_CONSTANTS_H_
10 #include "base/basictypes.h"
12 namespace webview {
14 // Attributes.
15 extern const char kAttributeAllowTransparency[];
16 extern const char kAttributeAllowScaling[];
17 extern const char kAttributeName[];
18 extern const char kAttributeSrc[];
20 // API namespace.
21 // TODO(kalman): Consolidate this with the other API constants.
22 extern const char kAPINamespace[];
24 // API error messages.
25 extern const char kAPILoadDataInvalidDataURL[];
26 extern const char kAPILoadDataInvalidBaseURL[];
27 extern const char kAPILoadDataInvalidVirtualURL[];
29 // Events.
30 extern const char kEventClose[];
31 extern const char kEventConsoleMessage[];
32 extern const char kEventContentLoad[];
33 extern const char kEventContextMenuShow[];
34 extern const char kEventDialog[];
35 extern const char kEventDropLink[];
36 extern const char kEventExit[];
37 extern const char kEventExitFullscreen[];
38 extern const char kEventFindReply[];
39 extern const char kEventFrameNameChanged[];
40 extern const char kEventHeadersReceived[];
41 extern const char kEventLoadAbort[];
42 extern const char kEventLoadCommit[];
43 extern const char kEventLoadProgress[];
44 extern const char kEventLoadRedirect[];
45 extern const char kEventLoadStart[];
46 extern const char kEventLoadStop[];
47 extern const char kEventMessage[];
48 extern const char kEventNewWindow[];
49 extern const char kEventPermissionRequest[];
50 extern const char kEventResponseStarted[];
51 extern const char kEventResponsive[];
52 extern const char kEventSizeChanged[];
53 extern const char kEventUnresponsive[];
54 extern const char kEventZoomChange[];
56 // WebRequest API events.
57 extern const char kEventAuthRequired[];
58 extern const char kEventBeforeRedirect[];
59 extern const char kEventBeforeRequest[];
60 extern const char kEventBeforeSendHeaders[];
61 extern const char kEventCompleted[];
62 extern const char kEventErrorOccurred[];
63 extern const char kEventSendHeaders[];
65 // Event related constants.
66 extern const char kWebViewEventPrefix[];
68 // Parameters/properties on events.
69 extern const char kContextMenuItems[];
70 extern const char kDefaultPromptText[];
71 extern const char kFindSearchText[];
72 extern const char kFindFinalUpdate[];
73 extern const char kInitialHeight[];
74 extern const char kInitialWidth[];
75 extern const char kLastUnlockedBySelf[];
76 extern const char kLevel[];
77 extern const char kLine[];
78 extern const char kMessage[];
79 extern const char kMessageText[];
80 extern const char kMessageType[];
81 extern const char kName[];
82 extern const char kNewHeight[];
83 extern const char kNewURL[];
84 extern const char kNewWidth[];
85 extern const char kOldHeight[];
86 extern const char kOldURL[];
87 extern const char kOrigin[];
88 extern const char kPermission[];
89 extern const char kPermissionTypeDialog[];
90 extern const char kPermissionTypeDownload[];
91 extern const char kPermissionTypeFileSystem[];
92 extern const char kPermissionTypeFullscreen[];
93 extern const char kPermissionTypeGeolocation[];
94 extern const char kPermissionTypeLoadPlugin[];
95 extern const char kPermissionTypeMedia[];
96 extern const char kPermissionTypeNewWindow[];
97 extern const char kPermissionTypePointerLock[];
98 extern const char kOldWidth[];
99 extern const char kProcessId[];
100 extern const char kProgress[];
101 extern const char kReason[];
102 extern const char kRequestId[];
103 extern const char kRequestInfo[];
104 extern const char kSourceId[];
105 extern const char kTargetURL[];
106 extern const char kWindowID[];
107 extern const char kWindowOpenDisposition[];
108 extern const char kOldZoomFactor[];
109 extern const char kNewZoomFactor[];
111 // Internal parameters/properties on events.
112 extern const char kInternalBaseURLForDataURL[];
113 extern const char kInternalCurrentEntryIndex[];
114 extern const char kInternalEntryCount[];
115 extern const char kInternalProcessId[];
117 // Parameters to callback functions.
118 extern const char kFindNumberOfMatches[];
119 extern const char kFindActiveMatchOrdinal[];
120 extern const char kFindSelectionRect[];
121 extern const char kFindRectLeft[];
122 extern const char kFindRectTop[];
123 extern const char kFindRectWidth[];
124 extern const char kFindRectHeight[];
125 extern const char kFindCanceled[];
126 extern const char kFindDone[];
128 // Initialization parameters.
129 extern const char kInitialZoomFactor[];
130 extern const char kParameterUserAgentOverride[];
132 // Miscellaneous.
133 extern const char kMenuItemCommandId[];
134 extern const char kMenuItemLabel[];
135 extern const char kPersistPrefix[];
136 extern const char kStoragePartitionId[];
137 extern const unsigned int kMaxOutstandingPermissionRequests;
138 extern const int kInvalidPermissionRequestID;
140 // ClearData API constants.
142 // Note that these are not in an enum because using enums to declare bitmasks
143 // results in the enum values being signed.
144 extern const uint32 WEB_VIEW_REMOVE_DATA_MASK_APPCACHE;
145 extern const uint32 WEB_VIEW_REMOVE_DATA_MASK_CACHE;
146 extern const uint32 WEB_VIEW_REMOVE_DATA_MASK_COOKIES;
147 extern const uint32 WEB_VIEW_REMOVE_DATA_MASK_FILE_SYSTEMS;
148 extern const uint32 WEB_VIEW_REMOVE_DATA_MASK_INDEXEDDB;
149 extern const uint32 WEB_VIEW_REMOVE_DATA_MASK_LOCAL_STORAGE;
150 extern const uint32 WEB_VIEW_REMOVE_DATA_MASK_WEBSQL;
152 // Other.
153 extern const char kWebViewContentScriptManagerKeyName[];
155 } // namespace webview
157 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_CONSTANTS_H_