Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / extensions / browser / guest_view / web_view / web_view_constants.cc
blobfd028c1e5b1f52b957ece173c8a6713feff3d029
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 #include "extensions/browser/guest_view/web_view/web_view_constants.h"
7 namespace webview {
9 // Attributes.
10 const char kAttributeAutoSize[] = "autosize";
11 const char kAttributeMaxHeight[] = "maxheight";
12 const char kAttributeMaxWidth[] = "maxwidth";
13 const char kAttributeMinHeight[] = "minheight";
14 const char kAttributeMinWidth[] = "minwidth";
16 // API namespace.
17 const char kAPINamespace[] = "webViewInternal";
19 // Events.
20 const char kEventClose[] = "webViewInternal.onClose";
21 const char kEventConsoleMessage[] = "webViewInternal.onConsoleMessage";
22 const char kEventContentLoad[] = "webViewInternal.onContentLoad";
23 const char kEventContextMenu[] = "webViewInternal.contextmenu";
24 const char kEventDialog[] = "webViewInternal.onDialog";
25 const char kEventExit[] = "webViewInternal.onExit";
26 const char kEventFindReply[] = "webViewInternal.onFindReply";
27 const char kEventFrameNameChanged[] = "webViewInternal.onFrameNameChanged";
28 const char kEventLoadAbort[] = "webViewInternal.onLoadAbort";
29 const char kEventLoadCommit[] = "webViewInternal.onLoadCommit";
30 const char kEventLoadProgress[] = "webViewInternal.onLoadProgress";
31 const char kEventLoadRedirect[] = "webViewInternal.onLoadRedirect";
32 const char kEventLoadStart[] = "webViewInternal.onLoadStart";
33 const char kEventLoadStop[] = "webViewInternal.onLoadStop";
34 const char kEventMessage[] = "webViewInternal.onMessage";
35 const char kEventNewWindow[] = "webViewInternal.onNewWindow";
36 const char kEventPermissionRequest[] = "webViewInternal.onPermissionRequest";
37 const char kEventPluginDestroyed[] = "webViewInternal.onPluginDestroyed";
38 const char kEventResponsive[] = "webViewInternal.onResponsive";
39 const char kEventSizeChanged[] = "webViewInternal.onSizeChanged";
40 const char kEventUnresponsive[] = "webViewInternal.onUnresponsive";
41 const char kEventZoomChange[] = "webViewInternal.onZoomChange";
43 // Event related constants.
44 const char kWebViewEventPrefix[] = "webViewInternal.";
46 // Parameters/properties on events.
47 const char kContextMenuItems[] = "items";
48 const char kDefaultPromptText[] = "defaultPromptText";
49 const char kFindSearchText[] = "searchText";
50 const char kFindFinalUpdate[] = "finalUpdate";
51 const char kInitialHeight[] = "initialHeight";
52 const char kInitialWidth[] = "initialWidth";
53 const char kLastUnlockedBySelf[] = "lastUnlockedBySelf";
54 const char kLevel[] = "level";
55 const char kLine[] = "line";
56 const char kMessage[] = "message";
57 const char kMessageText[] = "messageText";
58 const char kMessageType[] = "messageType";
59 const char kName[] = "name";
60 const char kNewHeight[] = "newHeight";
61 const char kNewURL[] = "newUrl";
62 const char kNewWidth[] = "newWidth";
63 const char kOldHeight[] = "oldHeight";
64 const char kOldURL[] = "oldUrl";
65 const char kPermission[] = "permission";
66 const char kPermissionTypeDialog[] = "dialog";
67 const char kPermissionTypeDownload[] = "download";
68 const char kPermissionTypeFileSystem[] = "filesystem";
69 const char kPermissionTypeGeolocation[] = "geolocation";
70 const char kPermissionTypeLoadPlugin[] = "loadplugin";
71 const char kPermissionTypeMedia[] = "media";
72 const char kPermissionTypeNewWindow[] = "newwindow";
73 const char kPermissionTypePointerLock[] = "pointerLock";
74 const char kOldWidth[] = "oldWidth";
75 const char kProcessId[] = "processId";
76 const char kProgress[] = "progress";
77 const char kReason[] = "reason";
78 const char kRequestId[] = "requestId";
79 const char kSourceId[] = "sourceId";
80 const char kTargetURL[] = "targetUrl";
81 const char kWindowID[] = "windowId";
82 const char kWindowOpenDisposition[] = "windowOpenDisposition";
83 const char kOldZoomFactor[] = "oldZoomFactor";
84 const char kNewZoomFactor[] = "newZoomFactor";
86 // Internal parameters/properties on events.
87 const char kInternalCurrentEntryIndex[] = "currentEntryIndex";
88 const char kInternalEntryCount[] = "entryCount";
89 const char kInternalProcessId[] = "processId";
91 // Parameters to callback functions.
92 const char kFindNumberOfMatches[] = "numberOfMatches";
93 const char kFindActiveMatchOrdinal[] = "activeMatchOrdinal";
94 const char kFindSelectionRect[] = "selectionRect";
95 const char kFindRectLeft[] = "left";
96 const char kFindRectTop[] = "top";
97 const char kFindRectWidth[] = "width";
98 const char kFindRectHeight[] = "height";
99 const char kFindCanceled[] = "canceled";
101 // Initialization parameters.
102 const char kParameterUserAgentOverride[] = "userAgentOverride";
104 // Miscellaneous.
105 const char kMenuItemCommandId[] = "commandId";
106 const char kMenuItemLabel[] = "label";
107 const char kPersistPrefix[] = "persist:";
108 const char kStoragePartitionId[] = "storagePartitionId";
109 const unsigned int kMaxOutstandingPermissionRequests = 1024;
110 const int kInvalidPermissionRequestID = 0;
112 } // namespace webview