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 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 kEventLoadAbort
[];
41 extern const char kEventLoadCommit
[];
42 extern const char kEventLoadProgress
[];
43 extern const char kEventLoadRedirect
[];
44 extern const char kEventLoadStart
[];
45 extern const char kEventLoadStop
[];
46 extern const char kEventMessage
[];
47 extern const char kEventNewWindow
[];
48 extern const char kEventPermissionRequest
[];
49 extern const char kEventResponsive
[];
50 extern const char kEventSizeChanged
[];
51 extern const char kEventUnresponsive
[];
52 extern const char kEventZoomChange
[];
54 // Event related constants.
55 extern const char kWebViewEventPrefix
[];
57 // Parameters/properties on events.
58 extern const char kContextMenuItems
[];
59 extern const char kDefaultPromptText
[];
60 extern const char kFindSearchText
[];
61 extern const char kFindFinalUpdate
[];
62 extern const char kInitialHeight
[];
63 extern const char kInitialWidth
[];
64 extern const char kLastUnlockedBySelf
[];
65 extern const char kLevel
[];
66 extern const char kLine
[];
67 extern const char kMessage
[];
68 extern const char kMessageText
[];
69 extern const char kMessageType
[];
70 extern const char kName
[];
71 extern const char kNewHeight
[];
72 extern const char kNewURL
[];
73 extern const char kNewWidth
[];
74 extern const char kOldHeight
[];
75 extern const char kOldURL
[];
76 extern const char kOrigin
[];
77 extern const char kPermission
[];
78 extern const char kPermissionTypeDialog
[];
79 extern const char kPermissionTypeDownload
[];
80 extern const char kPermissionTypeFileSystem
[];
81 extern const char kPermissionTypeFullscreen
[];
82 extern const char kPermissionTypeGeolocation
[];
83 extern const char kPermissionTypeLoadPlugin
[];
84 extern const char kPermissionTypeMedia
[];
85 extern const char kPermissionTypeNewWindow
[];
86 extern const char kPermissionTypePointerLock
[];
87 extern const char kOldWidth
[];
88 extern const char kProcessId
[];
89 extern const char kProgress
[];
90 extern const char kReason
[];
91 extern const char kRequestId
[];
92 extern const char kSourceId
[];
93 extern const char kTargetURL
[];
94 extern const char kWindowID
[];
95 extern const char kWindowOpenDisposition
[];
96 extern const char kOldZoomFactor
[];
97 extern const char kNewZoomFactor
[];
99 // Internal parameters/properties on events.
100 extern const char kInternalBaseURLForDataURL
[];
101 extern const char kInternalCurrentEntryIndex
[];
102 extern const char kInternalEntryCount
[];
103 extern const char kInternalProcessId
[];
105 // Parameters to callback functions.
106 extern const char kFindNumberOfMatches
[];
107 extern const char kFindActiveMatchOrdinal
[];
108 extern const char kFindSelectionRect
[];
109 extern const char kFindRectLeft
[];
110 extern const char kFindRectTop
[];
111 extern const char kFindRectWidth
[];
112 extern const char kFindRectHeight
[];
113 extern const char kFindCanceled
[];
114 extern const char kFindDone
[];
116 // Initialization parameters.
117 extern const char kParameterUserAgentOverride
[];
120 extern const char kMenuItemCommandId
[];
121 extern const char kMenuItemLabel
[];
122 extern const char kPersistPrefix
[];
123 extern const char kStoragePartitionId
[];
124 extern const unsigned int kMaxOutstandingPermissionRequests
;
125 extern const int kInvalidPermissionRequestID
;
127 // ClearData API constants.
129 // Note that these are not in an enum because using enums to declare bitmasks
130 // results in the enum values being signed.
131 extern const uint32 WEB_VIEW_REMOVE_DATA_MASK_APPCACHE
;
132 extern const uint32 WEB_VIEW_REMOVE_DATA_MASK_CACHE
;
133 extern const uint32 WEB_VIEW_REMOVE_DATA_MASK_COOKIES
;
134 extern const uint32 WEB_VIEW_REMOVE_DATA_MASK_FILE_SYSTEMS
;
135 extern const uint32 WEB_VIEW_REMOVE_DATA_MASK_INDEXEDDB
;
136 extern const uint32 WEB_VIEW_REMOVE_DATA_MASK_LOCAL_STORAGE
;
137 extern const uint32 WEB_VIEW_REMOVE_DATA_MASK_WEBSQL
;
139 } // namespace webview
141 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_CONSTANTS_H_