| 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"; |
| 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 kEventContextMenu[] = "webview.contextmenu"; | 13 const char kEventContextMenu[] = "webview.contextmenu"; |
| 14 const char kEventDialog[] = "webview.onDialog"; | 14 const char kEventDialog[] = "webview.onDialog"; |
| 15 const char kEventExit[] = "webview.onExit"; | 15 const char kEventExit[] = "webview.onExit"; |
| 16 const char kEventFindReply[] = "webview.onFindReply"; | 16 const char kEventFindReply[] = "webview.onFindReply"; |
| 17 const char kEventFrameNameChanged[] = "webview.onFrameNameChanged"; | 17 const char kEventFrameNameChanged[] = "webview.onFrameNameChanged"; |
| 18 const char kEventLoadAbort[] = "webview.onLoadAbort"; | 18 const char kEventLoadAbort[] = "webview.onLoadAbort"; |
| 19 const char kEventLoadCommit[] = "webview.onLoadCommit"; | 19 const char kEventLoadCommit[] = "webview.onLoadCommit"; |
| 20 const char kEventLoadProgress[] = "webview.onLoadProgress"; | 20 const char kEventLoadProgress[] = "webview.onLoadProgress"; |
| 21 const char kEventLoadRedirect[] = "webview.onLoadRedirect"; | 21 const char kEventLoadRedirect[] = "webview.onLoadRedirect"; |
| 22 const char kEventLoadStart[] = "webview.onLoadStart"; | 22 const char kEventLoadStart[] = "webview.onLoadStart"; |
| 23 const char kEventLoadStop[] = "webview.onLoadStop"; | 23 const char kEventLoadStop[] = "webview.onLoadStop"; |
| 24 const char kEventMessage[] = "webview.onMessage"; |
| 24 const char kEventNewWindow[] = "webview.onNewWindow"; | 25 const char kEventNewWindow[] = "webview.onNewWindow"; |
| 25 const char kEventPermissionRequest[] = "webview.onPermissionRequest"; | 26 const char kEventPermissionRequest[] = "webview.onPermissionRequest"; |
| 26 const char kEventResponsive[] = "webview.onResponsive"; | 27 const char kEventResponsive[] = "webview.onResponsive"; |
| 27 const char kEventSizeChanged[] = "webview.onSizeChanged"; | 28 const char kEventSizeChanged[] = "webview.onSizeChanged"; |
| 28 const char kEventUnresponsive[] = "webview.onUnresponsive"; | 29 const char kEventUnresponsive[] = "webview.onUnresponsive"; |
| 29 const char kEventZoomChange[] = "webview.onZoomChange"; | 30 const char kEventZoomChange[] = "webview.onZoomChange"; |
| 30 | 31 |
| 31 // Parameters/properties on events. | 32 // Parameters/properties on events. |
| 32 const char kContextMenuItems[] = "items"; | 33 const char kContextMenuItems[] = "items"; |
| 33 const char kDefaultPromptText[] = "defaultPromptText"; | 34 const char kDefaultPromptText[] = "defaultPromptText"; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 // Initialization parameters. | 86 // Initialization parameters. |
| 86 const char kParameterUserAgentOverride[] = "userAgentOverride"; | 87 const char kParameterUserAgentOverride[] = "userAgentOverride"; |
| 87 | 88 |
| 88 // Miscellaneous. | 89 // Miscellaneous. |
| 89 const char kMenuItemCommandId[] = "commandId"; | 90 const char kMenuItemCommandId[] = "commandId"; |
| 90 const char kMenuItemLabel[] = "label"; | 91 const char kMenuItemLabel[] = "label"; |
| 91 const unsigned int kMaxOutstandingPermissionRequests = 1024; | 92 const unsigned int kMaxOutstandingPermissionRequests = 1024; |
| 92 const int kInvalidPermissionRequestID = 0; | 93 const int kInvalidPermissionRequestID = 0; |
| 93 | 94 |
| 94 } // namespace webview | 95 } // namespace webview |
| OLD | NEW |