OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/guestview/webview/webview_constants.h" | 5 #include "chrome/browser/guestview/webview/webview_constants.h" |
6 | 6 |
7 namespace webview { | 7 namespace webview { |
8 | 8 |
9 // Events. | 9 // Events. |
10 const char kEventClose[] = "webview.onClose"; | 10 const char kEventClose[] = "webview.onClose"; |
11 const char kEventConsoleMessage[] = "webview.onConsoleMessage"; | 11 const char kEventConsoleMessage[] = "webview.onConsoleMessage"; |
12 const char kEventContentLoad[] = "webview.onContentLoad"; | 12 const char kEventContentLoad[] = "webview.onContentLoad"; |
13 const char kEventDialog[] = "webview.onDialog"; | 13 const char kEventDialog[] = "webview.onDialog"; |
14 const char kEventExit[] = "webview.onExit"; | 14 const char kEventExit[] = "webview.onExit"; |
15 const char kEventFindReply[] = "webview.onFindReply"; | 15 const char kEventFindReply[] = "webview.onFindReply"; |
16 const char kEventLoadAbort[] = "webview.onLoadAbort"; | 16 const char kEventLoadAbort[] = "webview.onLoadAbort"; |
17 const char kEventLoadCommit[] = "webview.onLoadCommit"; | 17 const char kEventLoadCommit[] = "webview.onLoadCommit"; |
18 const char kEventLoadProgress[] = "webview.onLoadProgress"; | 18 const char kEventLoadProgress[] = "webview.onLoadProgress"; |
19 const char kEventLoadRedirect[] = "webview.onLoadRedirect"; | 19 const char kEventLoadRedirect[] = "webview.onLoadRedirect"; |
20 const char kEventLoadStart[] = "webview.onLoadStart"; | 20 const char kEventLoadStart[] = "webview.onLoadStart"; |
21 const char kEventLoadStop[] = "webview.onLoadStop"; | 21 const char kEventLoadStop[] = "webview.onLoadStop"; |
22 const char kEventNewWindow[] = "webview.onNewWindow"; | 22 const char kEventNewWindow[] = "webview.onNewWindow"; |
23 const char kEventPermissionRequest[] = "webview.onPermissionRequest"; | 23 const char kEventPermissionRequest[] = "webview.onPermissionRequest"; |
24 const char kEventResponsive[] = "webview.onResponsive"; | 24 const char kEventResponsive[] = "webview.onResponsive"; |
25 const char kEventSizeChanged[] = "webview.onSizeChanged"; | 25 const char kEventSizeChanged[] = "webview.onSizeChanged"; |
26 const char kEventUnresponsive[] = "webview.onUnresponsive"; | 26 const char kEventUnresponsive[] = "webview.onUnresponsive"; |
27 const char kEventZoomChange[] = "webview.onZoomChange"; | 27 const char kEventZoomChange[] = "webview.onZoomChange"; |
28 | 28 |
29 // Parameters/properties on events. | 29 // Parameters/properties on events. |
| 30 const char kDefaultPromptText[] = "defaultPromptText"; |
30 const char kFindSearchText[] = "searchText"; | 31 const char kFindSearchText[] = "searchText"; |
31 const char kFindFinalUpdate[] = "finalUpdate"; | 32 const char kFindFinalUpdate[] = "finalUpdate"; |
32 const char kLastUnlockedBySelf[] = "lastUnlockedBySelf"; | 33 const char kLastUnlockedBySelf[] = "lastUnlockedBySelf"; |
33 const char kLevel[] = "level"; | 34 const char kLevel[] = "level"; |
34 const char kLine[] = "line"; | 35 const char kLine[] = "line"; |
35 const char kMessage[] = "message"; | 36 const char kMessage[] = "message"; |
| 37 const char kMessageText[] = "messageText"; |
| 38 const char kMessageType[] = "messageType"; |
36 const char kNewHeight[] = "newHeight"; | 39 const char kNewHeight[] = "newHeight"; |
37 const char kNewURL[] = "newUrl"; | 40 const char kNewURL[] = "newUrl"; |
38 const char kNewWidth[] = "newWidth"; | 41 const char kNewWidth[] = "newWidth"; |
39 const char kOldHeight[] = "oldHeight"; | 42 const char kOldHeight[] = "oldHeight"; |
40 const char kOldURL[] = "oldUrl"; | 43 const char kOldURL[] = "oldUrl"; |
41 const char kPermission[] = "permission"; | 44 const char kPermission[] = "permission"; |
42 const char kPermissionTypeDialog[] = "dialog"; | 45 const char kPermissionTypeDialog[] = "dialog"; |
43 const char kPermissionTypeDownload[] = "download"; | 46 const char kPermissionTypeDownload[] = "download"; |
44 const char kPermissionTypeGeolocation[] = "geolocation"; | 47 const char kPermissionTypeGeolocation[] = "geolocation"; |
45 const char kPermissionTypeLoadPlugin[] = "loadplugin"; | 48 const char kPermissionTypeLoadPlugin[] = "loadplugin"; |
(...skipping 25 matching lines...) Expand all Loading... |
71 const char kFindCanceled[] = "canceled"; | 74 const char kFindCanceled[] = "canceled"; |
72 | 75 |
73 // Initialization parameters. | 76 // Initialization parameters. |
74 const char kParameterUserAgentOverride[] = "userAgentOverride"; | 77 const char kParameterUserAgentOverride[] = "userAgentOverride"; |
75 | 78 |
76 // Miscellaneous. | 79 // Miscellaneous. |
77 const unsigned int kMaxOutstandingPermissionRequests = 1024; | 80 const unsigned int kMaxOutstandingPermissionRequests = 1024; |
78 const int kInvalidPermissionRequestID = 0; | 81 const int kInvalidPermissionRequestID = 0; |
79 | 82 |
80 } // namespace webview | 83 } // namespace webview |
OLD | NEW |