| 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 kEventExit[] = "webview.onExit"; | 14 const char kEventExit[] = "webview.onExit"; |
| 14 const char kEventLoadAbort[] = "webview.onLoadAbort"; | 15 const char kEventLoadAbort[] = "webview.onLoadAbort"; |
| 15 const char kEventLoadCommit[] = "webview.onLoadCommit"; | 16 const char kEventLoadCommit[] = "webview.onLoadCommit"; |
| 16 const char kEventLoadRedirect[] = "webview.onLoadRedirect"; | 17 const char kEventLoadRedirect[] = "webview.onLoadRedirect"; |
| 17 const char kEventLoadStart[] = "webview.onLoadStart"; | 18 const char kEventLoadStart[] = "webview.onLoadStart"; |
| 18 const char kEventLoadStop[] = "webview.onLoadStop"; | 19 const char kEventLoadStop[] = "webview.onLoadStop"; |
| 20 const char kEventNewWindow[] = "webview.onNewWindow"; |
| 21 const char kEventPermissionRequest[] = "webview.onPermissionRequest"; |
| 19 const char kEventResponsive[] = "webview.onResponsive"; | 22 const char kEventResponsive[] = "webview.onResponsive"; |
| 20 const char kEventUnresponsive[] = "webview.onUnresponsive"; | 23 const char kEventUnresponsive[] = "webview.onUnresponsive"; |
| 21 | 24 |
| 22 // Parameters/properties on events. | 25 // Parameters/properties on events. |
| 23 const char kLevel[] = "level"; | 26 const char kLevel[] = "level"; |
| 24 const char kLine[] = "line"; | 27 const char kLine[] = "line"; |
| 25 const char kMessage[] = "message"; | 28 const char kMessage[] = "message"; |
| 26 const char kNewURL[] = "newUrl"; | 29 const char kNewURL[] = "newUrl"; |
| 27 const char kOldURL[] = "oldUrl"; | 30 const char kOldURL[] = "oldUrl"; |
| 31 const char kPermission[] = "permission"; |
| 32 const char kPermissionTypeDialog[] = "dialog"; |
| 33 const char kPermissionTypeDownload[] = "download"; |
| 34 const char kPermissionTypeGeolocation[] = "geolocation"; |
| 35 const char kPermissionTypeMedia[] = "media"; |
| 36 const char kPermissionTypeNewWindow[] = "newwindow"; |
| 37 const char kPermissionTypePointerLock[] = "pointerLock"; |
| 28 const char kProcessId[] = "processId"; | 38 const char kProcessId[] = "processId"; |
| 29 const char kReason[] = "reason"; | 39 const char kReason[] = "reason"; |
| 40 const char kRequestId[] = "requestId"; |
| 30 const char kSourceId[] = "sourceId"; | 41 const char kSourceId[] = "sourceId"; |
| 31 | 42 |
| 32 // Internal parameters/properties on events. | 43 // Internal parameters/properties on events. |
| 33 const char kInternalCurrentEntryIndex[] = "currentEntryIndex"; | 44 const char kInternalCurrentEntryIndex[] = "currentEntryIndex"; |
| 34 const char kInternalEntryCount[] = "entryCount"; | 45 const char kInternalEntryCount[] = "entryCount"; |
| 35 const char kInternalProcessId[] = "processId"; | 46 const char kInternalProcessId[] = "processId"; |
| 36 | 47 |
| 37 } // namespace webview | 48 } // namespace webview |
| OLD | NEW |