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"
15 extern const char kAttributeAllowTransparency
[];
16 extern const char kAttributeAllowScaling
[];
17 extern const char kAttributeName
[];
18 extern const char kAttributeSrc
[];
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
[];
30 extern const char kEventBeforeRequest
[];
31 extern const char kEventBeforeSendHeaders
[];
32 extern const char kEventClose
[];
33 extern const char kEventCompleted
[];
34 extern const char kEventConsoleMessage
[];
35 extern const char kEventContentLoad
[];
36 extern const char kEventContextMenuShow
[];
37 extern const char kEventDialog
[];
38 extern const char kEventDropLink
[];
39 extern const char kEventExit
[];
40 extern const char kEventExitFullscreen
[];
41 extern const char kEventFindReply
[];
42 extern const char kEventFrameNameChanged
[];
43 extern const char kEventHeadersReceived
[];
44 extern const char kEventLoadAbort
[];
45 extern const char kEventLoadCommit
[];
46 extern const char kEventLoadProgress
[];
47 extern const char kEventLoadRedirect
[];
48 extern const char kEventLoadStart
[];
49 extern const char kEventLoadStop
[];
50 extern const char kEventMessage
[];
51 extern const char kEventNewWindow
[];
52 extern const char kEventPermissionRequest
[];
53 extern const char kEventResponseStarted
[];
54 extern const char kEventResponsive
[];
55 extern const char kEventSizeChanged
[];
56 extern const char kEventUnresponsive
[];
57 extern const char kEventZoomChange
[];
59 // Event related constants.
60 extern const char kWebViewEventPrefix
[];
62 // Parameters/properties on events.
63 extern const char kContextMenuItems
[];
64 extern const char kDefaultPromptText
[];
65 extern const char kFindSearchText
[];
66 extern const char kFindFinalUpdate
[];
67 extern const char kInitialHeight
[];
68 extern const char kInitialWidth
[];
69 extern const char kLastUnlockedBySelf
[];
70 extern const char kLevel
[];
71 extern const char kLine
[];
72 extern const char kMessage
[];
73 extern const char kMessageText
[];
74 extern const char kMessageType
[];
75 extern const char kName
[];
76 extern const char kNewHeight
[];
77 extern const char kNewURL
[];
78 extern const char kNewWidth
[];
79 extern const char kOldHeight
[];
80 extern const char kOldURL
[];
81 extern const char kOrigin
[];
82 extern const char kPermission
[];
83 extern const char kPermissionTypeDialog
[];
84 extern const char kPermissionTypeDownload
[];
85 extern const char kPermissionTypeFileSystem
[];
86 extern const char kPermissionTypeFullscreen
[];
87 extern const char kPermissionTypeGeolocation
[];
88 extern const char kPermissionTypeLoadPlugin
[];
89 extern const char kPermissionTypeMedia
[];
90 extern const char kPermissionTypeNewWindow
[];
91 extern const char kPermissionTypePointerLock
[];
92 extern const char kOldWidth
[];
93 extern const char kProcessId
[];
94 extern const char kProgress
[];
95 extern const char kReason
[];
96 extern const char kRequestId
[];
97 extern const char kRequestInfo
[];
98 extern const char kSourceId
[];
99 extern const char kTargetURL
[];
100 extern const char kWindowID
[];
101 extern const char kWindowOpenDisposition
[];
102 extern const char kOldZoomFactor
[];
103 extern const char kNewZoomFactor
[];
105 // Internal parameters/properties on events.
106 extern const char kInternalBaseURLForDataURL
[];
107 extern const char kInternalCurrentEntryIndex
[];
108 extern const char kInternalEntryCount
[];
109 extern const char kInternalProcessId
[];
111 // Parameters to callback functions.
112 extern const char kFindNumberOfMatches
[];
113 extern const char kFindActiveMatchOrdinal
[];
114 extern const char kFindSelectionRect
[];
115 extern const char kFindRectLeft
[];
116 extern const char kFindRectTop
[];
117 extern const char kFindRectWidth
[];
118 extern const char kFindRectHeight
[];
119 extern const char kFindCanceled
[];
120 extern const char kFindDone
[];
122 // Initialization parameters.
123 extern const char kInitialZoomFactor
[];
124 extern const char kParameterUserAgentOverride
[];
127 extern const char kMenuItemCommandId
[];
128 extern const char kMenuItemLabel
[];
129 extern const char kPersistPrefix
[];
130 extern const char kStoragePartitionId
[];
131 extern const unsigned int kMaxOutstandingPermissionRequests
;
132 extern const int kInvalidPermissionRequestID
;
134 // ClearData API constants.
136 // Note that these are not in an enum because using enums to declare bitmasks
137 // results in the enum values being signed.
138 extern const uint32 WEB_VIEW_REMOVE_DATA_MASK_APPCACHE
;
139 extern const uint32 WEB_VIEW_REMOVE_DATA_MASK_CACHE
;
140 extern const uint32 WEB_VIEW_REMOVE_DATA_MASK_COOKIES
;
141 extern const uint32 WEB_VIEW_REMOVE_DATA_MASK_FILE_SYSTEMS
;
142 extern const uint32 WEB_VIEW_REMOVE_DATA_MASK_INDEXEDDB
;
143 extern const uint32 WEB_VIEW_REMOVE_DATA_MASK_LOCAL_STORAGE
;
144 extern const uint32 WEB_VIEW_REMOVE_DATA_MASK_WEBSQL
;
147 extern const char kWebViewContentScriptManagerKeyName
[];
149 } // namespace webview
151 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_CONSTANTS_H_