| 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 "content/common/browser_plugin/browser_plugin_constants.h" | 5 #include "content/common/browser_plugin/browser_plugin_constants.h" |
| 6 | 6 |
| 7 namespace content { | 7 namespace content { |
| 8 | 8 |
| 9 namespace browser_plugin { | 9 namespace browser_plugin { |
| 10 | 10 |
| 11 // Method bindings. | |
| 12 const char kMethodBack[] = "back"; | |
| 13 const char kMethodCanGoBack[] = "canGoBack"; | |
| 14 const char kMethodCanGoForward[] = "canGoForward"; | |
| 15 const char kMethodForward[] = "forward"; | |
| 16 const char kMethodGetInstanceId[] = "getInstanceId"; | |
| 17 const char kMethodGetGuestInstanceId[] = "getGuestInstanceId"; | |
| 18 const char kMethodGo[] = "go"; | |
| 19 const char kMethodReload[] = "reload"; | |
| 20 const char kMethodStop[] = "stop"; | |
| 21 const char kMethodTerminate[] = "terminate"; | |
| 22 | |
| 23 // Internal method bindings. | 11 // Internal method bindings. |
| 24 const char kMethodInternalAttach[] = "-internal-attach"; | 12 const char kMethodInternalAttach[] = "-internal-attach"; |
| 25 const char kMethodInternalAttachWindowTo[] = "-internal-attachWindowTo"; | |
| 26 const char kMethodInternalTrackObjectLifetime[] = | |
| 27 "-internal-trackObjectLifetime"; | |
| 28 | 13 |
| 29 // Internal events. | 14 // Internal events. |
| 30 const char kEventInternalInstanceIDAllocated[] = "instanceid-allocated"; | 15 const char kEventInternalInstanceIDAllocated[] = "instanceid-allocated"; |
| 31 const char kEventInternalTrackedObjectGone[] = "trackedobjectgone"; | |
| 32 | 16 |
| 33 // Attributes. | 17 // Attributes. |
| 34 const char kAttributeAllowTransparency[] = "allowtransparency"; | 18 const char kAttributeAllowTransparency[] = "allowtransparency"; |
| 35 const char kAttributeApi[] = "api"; | |
| 36 const char kAttributeAutoSize[] = "autosize"; | 19 const char kAttributeAutoSize[] = "autosize"; |
| 37 const char kAttributeContentWindow[] = "contentWindow"; | 20 const char kAttributeContentWindow[] = "contentWindow"; |
| 38 const char kAttributeMaxHeight[] = "maxheight"; | 21 const char kAttributeMaxHeight[] = "maxheight"; |
| 39 const char kAttributeMaxWidth[] = "maxwidth"; | 22 const char kAttributeMaxWidth[] = "maxwidth"; |
| 40 const char kAttributeMinHeight[] = "minheight"; | 23 const char kAttributeMinHeight[] = "minheight"; |
| 41 const char kAttributeMinWidth[] = "minwidth"; | 24 const char kAttributeMinWidth[] = "minwidth"; |
| 42 const char kAttributeName[] = "name"; | 25 const char kAttributeName[] = "name"; |
| 43 const char kAttributePartition[] = "partition"; | 26 const char kAttributePartition[] = "partition"; |
| 44 const char kAttributeSrc[] = "src"; | 27 const char kAttributeSrc[] = "src"; |
| 45 | 28 |
| 46 // Parameters/properties on events. | 29 // Parameters/properties on events. |
| 47 const char kId[] = "id"; | |
| 48 const char kInitialHeight[] = "initialHeight"; | |
| 49 const char kInitialWidth[] = "initialWidth"; | |
| 50 const char kLastUnlockedBySelf[] = "lastUnlockedBySelf"; | |
| 51 const char kName[] = "name"; | |
| 52 const char kPermission[] = "permission"; | |
| 53 const char kPermissionTypeDialog[] = "dialog"; | |
| 54 const char kPermissionTypeDownload[] = "download"; | |
| 55 const char kPermissionTypeGeolocation[] = "geolocation"; | |
| 56 const char kPermissionTypeMedia[] = "media"; | |
| 57 const char kPermissionTypeNewWindow[] = "newwindow"; | |
| 58 const char kPermissionTypePointerLock[] = "pointerLock"; | |
| 59 const char kPersistPrefix[] = "persist:"; | 30 const char kPersistPrefix[] = "persist:"; |
| 60 const char kProcessId[] = "processId"; | |
| 61 const char kRequestId[] = "requestId"; | |
| 62 const char kRequestMethod[] = "requestMethod"; | |
| 63 const char kTargetURL[] = "targetUrl"; | |
| 64 const char kURL[] = "url"; | |
| 65 const char kWindowID[] = "windowId"; | 31 const char kWindowID[] = "windowId"; |
| 66 const char kWindowOpenDisposition[] = "windowOpenDisposition"; | |
| 67 | 32 |
| 68 // Error messages. | 33 // Error messages. |
| 69 const char kErrorAlreadyNavigated[] = | 34 const char kErrorAlreadyNavigated[] = |
| 70 "The object has already navigated, so its partition cannot be changed."; | 35 "The object has already navigated, so its partition cannot be changed."; |
| 71 const char kErrorInvalidPartition[] = | 36 const char kErrorInvalidPartition[] = |
| 72 "Invalid partition attribute."; | 37 "Invalid partition attribute."; |
| 73 const char kErrorCannotRemovePartition[] = | 38 const char kErrorCannotRemovePartition[] = |
| 74 "Cannot remove partition attribute after navigating."; | 39 "Cannot remove partition attribute after navigating."; |
| 75 | 40 |
| 76 // Other. | 41 // Other. |
| 77 const char kBrowserPluginGuestManagerKeyName[] = "browser_plugin_guest_manager"; | |
| 78 const int kInstanceIDNone = 0; | 42 const int kInstanceIDNone = 0; |
| 79 const int kInvalidPermissionRequestID = 0; | 43 const int kInvalidPermissionRequestID = 0; |
| 80 | 44 |
| 81 } // namespace browser_plugin | 45 } // namespace browser_plugin |
| 82 | 46 |
| 83 } // namespace content | 47 } // namespace content |
| OLD | NEW |