OLD | NEW |
| (Empty) |
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. | |
4 | |
5 #include "chrome/browser/guest_view/web_view/web_view_constants.h" | |
6 | |
7 namespace webview { | |
8 | |
9 // Events. | |
10 const char kEventClose[] = "webview.onClose"; | |
11 const char kEventConsoleMessage[] = "webview.onConsoleMessage"; | |
12 const char kEventContentLoad[] = "webview.onContentLoad"; | |
13 const char kEventDialog[] = "webview.onDialog"; | |
14 const char kEventExit[] = "webview.onExit"; | |
15 const char kEventFindReply[] = "webview.onFindReply"; | |
16 const char kEventLoadAbort[] = "webview.onLoadAbort"; | |
17 const char kEventLoadCommit[] = "webview.onLoadCommit"; | |
18 const char kEventLoadProgress[] = "webview.onLoadProgress"; | |
19 const char kEventLoadRedirect[] = "webview.onLoadRedirect"; | |
20 const char kEventLoadStart[] = "webview.onLoadStart"; | |
21 const char kEventLoadStop[] = "webview.onLoadStop"; | |
22 const char kEventNewWindow[] = "webview.onNewWindow"; | |
23 const char kEventPermissionRequest[] = "webview.onPermissionRequest"; | |
24 const char kEventResponsive[] = "webview.onResponsive"; | |
25 const char kEventSizeChanged[] = "webview.onSizeChanged"; | |
26 const char kEventUnresponsive[] = "webview.onUnresponsive"; | |
27 const char kEventZoomChange[] = "webview.onZoomChange"; | |
28 | |
29 // Parameters/properties on events. | |
30 const char kDefaultPromptText[] = "defaultPromptText"; | |
31 const char kFindSearchText[] = "searchText"; | |
32 const char kFindFinalUpdate[] = "finalUpdate"; | |
33 const char kLastUnlockedBySelf[] = "lastUnlockedBySelf"; | |
34 const char kLevel[] = "level"; | |
35 const char kLine[] = "line"; | |
36 const char kMessage[] = "message"; | |
37 const char kMessageText[] = "messageText"; | |
38 const char kMessageType[] = "messageType"; | |
39 const char kNewHeight[] = "newHeight"; | |
40 const char kNewURL[] = "newUrl"; | |
41 const char kNewWidth[] = "newWidth"; | |
42 const char kOldHeight[] = "oldHeight"; | |
43 const char kOldURL[] = "oldUrl"; | |
44 const char kPermission[] = "permission"; | |
45 const char kPermissionTypeDialog[] = "dialog"; | |
46 const char kPermissionTypeDownload[] = "download"; | |
47 const char kPermissionTypeGeolocation[] = "geolocation"; | |
48 const char kPermissionTypeLoadPlugin[] = "loadplugin"; | |
49 const char kPermissionTypeMedia[] = "media"; | |
50 const char kPermissionTypeNewWindow[] = "newwindow"; | |
51 const char kPermissionTypePointerLock[] = "pointerLock"; | |
52 const char kOldWidth[] = "oldWidth"; | |
53 const char kProcessId[] = "processId"; | |
54 const char kProgress[] = "progress"; | |
55 const char kReason[] = "reason"; | |
56 const char kRequestId[] = "requestId"; | |
57 const char kSourceId[] = "sourceId"; | |
58 const char kOldZoomFactor[] = "oldZoomFactor"; | |
59 const char kNewZoomFactor[] = "newZoomFactor"; | |
60 | |
61 // Internal parameters/properties on events. | |
62 const char kInternalCurrentEntryIndex[] = "currentEntryIndex"; | |
63 const char kInternalEntryCount[] = "entryCount"; | |
64 const char kInternalProcessId[] = "processId"; | |
65 | |
66 // Parameters to callback functions. | |
67 const char kFindNumberOfMatches[] = "numberOfMatches"; | |
68 const char kFindActiveMatchOrdinal[] = "activeMatchOrdinal"; | |
69 const char kFindSelectionRect[] = "selectionRect"; | |
70 const char kFindRectLeft[] = "left"; | |
71 const char kFindRectTop[] = "top"; | |
72 const char kFindRectWidth[] = "width"; | |
73 const char kFindRectHeight[] = "height"; | |
74 const char kFindCanceled[] = "canceled"; | |
75 | |
76 // Initialization parameters. | |
77 const char kParameterUserAgentOverride[] = "userAgentOverride"; | |
78 | |
79 // Miscellaneous. | |
80 const unsigned int kMaxOutstandingPermissionRequests = 1024; | |
81 const int kInvalidPermissionRequestID = 0; | |
82 | |
83 } // namespace webview | |
OLD | NEW |