| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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/guest_view/web_view/web_view_constants.h" | 5 #include "chrome/browser/guest_view/web_view/web_view_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"; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 const char kEventResponsive[] = "webview.onResponsive"; | 25 const char kEventResponsive[] = "webview.onResponsive"; |
| 26 const char kEventSizeChanged[] = "webview.onSizeChanged"; | 26 const char kEventSizeChanged[] = "webview.onSizeChanged"; |
| 27 const char kEventUnresponsive[] = "webview.onUnresponsive"; | 27 const char kEventUnresponsive[] = "webview.onUnresponsive"; |
| 28 const char kEventZoomChange[] = "webview.onZoomChange"; | 28 const char kEventZoomChange[] = "webview.onZoomChange"; |
| 29 | 29 |
| 30 // Parameters/properties on events. | 30 // Parameters/properties on events. |
| 31 const char kContextMenuItems[] = "items"; | 31 const char kContextMenuItems[] = "items"; |
| 32 const char kDefaultPromptText[] = "defaultPromptText"; | 32 const char kDefaultPromptText[] = "defaultPromptText"; |
| 33 const char kFindSearchText[] = "searchText"; | 33 const char kFindSearchText[] = "searchText"; |
| 34 const char kFindFinalUpdate[] = "finalUpdate"; | 34 const char kFindFinalUpdate[] = "finalUpdate"; |
| 35 const char kInitialHeight[] = "initialHeight"; |
| 36 const char kInitialWidth[] = "initialWidth"; |
| 35 const char kLastUnlockedBySelf[] = "lastUnlockedBySelf"; | 37 const char kLastUnlockedBySelf[] = "lastUnlockedBySelf"; |
| 36 const char kLevel[] = "level"; | 38 const char kLevel[] = "level"; |
| 37 const char kLine[] = "line"; | 39 const char kLine[] = "line"; |
| 38 const char kMessage[] = "message"; | 40 const char kMessage[] = "message"; |
| 39 const char kMessageText[] = "messageText"; | 41 const char kMessageText[] = "messageText"; |
| 40 const char kMessageType[] = "messageType"; | 42 const char kMessageType[] = "messageType"; |
| 43 const char kName[] = "name"; |
| 41 const char kNewHeight[] = "newHeight"; | 44 const char kNewHeight[] = "newHeight"; |
| 42 const char kNewURL[] = "newUrl"; | 45 const char kNewURL[] = "newUrl"; |
| 43 const char kNewWidth[] = "newWidth"; | 46 const char kNewWidth[] = "newWidth"; |
| 44 const char kOldHeight[] = "oldHeight"; | 47 const char kOldHeight[] = "oldHeight"; |
| 45 const char kOldURL[] = "oldUrl"; | 48 const char kOldURL[] = "oldUrl"; |
| 46 const char kPermission[] = "permission"; | 49 const char kPermission[] = "permission"; |
| 47 const char kPermissionTypeDialog[] = "dialog"; | 50 const char kPermissionTypeDialog[] = "dialog"; |
| 48 const char kPermissionTypeDownload[] = "download"; | 51 const char kPermissionTypeDownload[] = "download"; |
| 49 const char kPermissionTypeGeolocation[] = "geolocation"; | 52 const char kPermissionTypeGeolocation[] = "geolocation"; |
| 50 const char kPermissionTypeLoadPlugin[] = "loadplugin"; | 53 const char kPermissionTypeLoadPlugin[] = "loadplugin"; |
| 51 const char kPermissionTypeMedia[] = "media"; | 54 const char kPermissionTypeMedia[] = "media"; |
| 52 const char kPermissionTypeNewWindow[] = "newwindow"; | 55 const char kPermissionTypeNewWindow[] = "newwindow"; |
| 53 const char kPermissionTypePointerLock[] = "pointerLock"; | 56 const char kPermissionTypePointerLock[] = "pointerLock"; |
| 54 const char kOldWidth[] = "oldWidth"; | 57 const char kOldWidth[] = "oldWidth"; |
| 55 const char kProcessId[] = "processId"; | 58 const char kProcessId[] = "processId"; |
| 56 const char kProgress[] = "progress"; | 59 const char kProgress[] = "progress"; |
| 57 const char kReason[] = "reason"; | 60 const char kReason[] = "reason"; |
| 58 const char kRequestId[] = "requestId"; | 61 const char kRequestId[] = "requestId"; |
| 59 const char kSourceId[] = "sourceId"; | 62 const char kSourceId[] = "sourceId"; |
| 63 const char kTargetURL[] = "targetUrl"; |
| 64 const char kWindowID[] = "windowId"; |
| 65 const char kWindowOpenDisposition[] = "windowOpenDisposition"; |
| 60 const char kOldZoomFactor[] = "oldZoomFactor"; | 66 const char kOldZoomFactor[] = "oldZoomFactor"; |
| 61 const char kNewZoomFactor[] = "newZoomFactor"; | 67 const char kNewZoomFactor[] = "newZoomFactor"; |
| 62 | 68 |
| 63 // Internal parameters/properties on events. | 69 // Internal parameters/properties on events. |
| 64 const char kInternalCurrentEntryIndex[] = "currentEntryIndex"; | 70 const char kInternalCurrentEntryIndex[] = "currentEntryIndex"; |
| 65 const char kInternalEntryCount[] = "entryCount"; | 71 const char kInternalEntryCount[] = "entryCount"; |
| 66 const char kInternalProcessId[] = "processId"; | 72 const char kInternalProcessId[] = "processId"; |
| 67 | 73 |
| 68 // Parameters to callback functions. | 74 // Parameters to callback functions. |
| 69 const char kFindNumberOfMatches[] = "numberOfMatches"; | 75 const char kFindNumberOfMatches[] = "numberOfMatches"; |
| 70 const char kFindActiveMatchOrdinal[] = "activeMatchOrdinal"; | 76 const char kFindActiveMatchOrdinal[] = "activeMatchOrdinal"; |
| 71 const char kFindSelectionRect[] = "selectionRect"; | 77 const char kFindSelectionRect[] = "selectionRect"; |
| 72 const char kFindRectLeft[] = "left"; | 78 const char kFindRectLeft[] = "left"; |
| 73 const char kFindRectTop[] = "top"; | 79 const char kFindRectTop[] = "top"; |
| 74 const char kFindRectWidth[] = "width"; | 80 const char kFindRectWidth[] = "width"; |
| 75 const char kFindRectHeight[] = "height"; | 81 const char kFindRectHeight[] = "height"; |
| 76 const char kFindCanceled[] = "canceled"; | 82 const char kFindCanceled[] = "canceled"; |
| 77 | 83 |
| 78 // Initialization parameters. | 84 // Initialization parameters. |
| 79 const char kParameterUserAgentOverride[] = "userAgentOverride"; | 85 const char kParameterUserAgentOverride[] = "userAgentOverride"; |
| 80 | 86 |
| 81 // Miscellaneous. | 87 // Miscellaneous. |
| 82 const char kMenuItemCommandId[] = "commandId"; | 88 const char kMenuItemCommandId[] = "commandId"; |
| 83 const char kMenuItemLabel[] = "label"; | 89 const char kMenuItemLabel[] = "label"; |
| 84 const unsigned int kMaxOutstandingPermissionRequests = 1024; | 90 const unsigned int kMaxOutstandingPermissionRequests = 1024; |
| 85 const int kInvalidPermissionRequestID = 0; | 91 const int kInvalidPermissionRequestID = 0; |
| 86 | 92 |
| 87 } // namespace webview | 93 } // namespace webview |
| OLD | NEW |