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 3 // found in the LICENSE file. 4 5 #include "content/common/browser_plugin/browser_plugin_constants.h" 6 7 namespace content { 8 9 namespace browser_plugin { 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. 24 const char kMethodInternalAttach[] = "-internal-attach"; 25 const char kMethodInternalAttachWindowTo[] = "-internal-attachWindowTo"; 26 const char kMethodInternalTrackObjectLifetime[] = 27 "-internal-trackObjectLifetime"; 28 29 // Internal events. 30 const char kEventInternalInstanceIDAllocated[] = "instanceid-allocated"; 31 const char kEventInternalTrackedObjectGone[] = "trackedobjectgone"; 32 33 // Attributes. 34 const char kAttributeAllowTransparency[] = "allowtransparency"; 35 const char kAttributeApi[] = "api"; 36 const char kAttributeAutoSize[] = "autosize"; 37 const char kAttributeContentWindow[] = "contentWindow"; 38 const char kAttributeMaxHeight[] = "maxheight"; 39 const char kAttributeMaxWidth[] = "maxwidth"; 40 const char kAttributeMinHeight[] = "minheight"; 41 const char kAttributeMinWidth[] = "minwidth"; 42 const char kAttributeName[] = "name"; 43 const char kAttributePartition[] = "partition"; 44 const char kAttributeSrc[] = "src"; 45 46 // Parameters/properties on events. 47 const char kDefaultPromptText[] = "defaultPromptText"; 48 const char kId[] = "id"; 49 const char kInitialHeight[] = "initialHeight"; 50 const char kInitialWidth[] = "initialWidth"; 51 const char kLastUnlockedBySelf[] = "lastUnlockedBySelf"; 52 const char kMessageText[] = "messageText"; 53 const char kMessageType[] = "messageType"; 54 const char kName[] = "name"; 55 const char kPermission[] = "permission"; 56 const char kPermissionTypeDialog[] = "dialog"; 57 const char kPermissionTypeDownload[] = "download"; 58 const char kPermissionTypeGeolocation[] = "geolocation"; 59 const char kPermissionTypeMedia[] = "media"; 60 const char kPermissionTypeNewWindow[] = "newwindow"; 61 const char kPermissionTypePointerLock[] = "pointerLock"; 62 const char kPersistPrefix[] = "persist:"; 63 const char kProcessId[] = "processId"; 64 const char kRequestId[] = "requestId"; 65 const char kRequestMethod[] = "requestMethod"; 66 const char kTargetURL[] = "targetUrl"; 67 const char kURL[] = "url"; 68 const char kWindowID[] = "windowId"; 69 const char kWindowOpenDisposition[] = "windowOpenDisposition"; 70 const char kUserGesture[] = "userGesture"; 71 72 // Error messages. 73 const char kErrorAlreadyNavigated[] = 74 "The object has already navigated, so its partition cannot be changed."; 75 const char kErrorInvalidPartition[] = 76 "Invalid partition attribute."; 77 const char kErrorCannotRemovePartition[] = 78 "Cannot remove partition attribute after navigating."; 79 80 // Other. 81 const char kBrowserPluginGuestManagerKeyName[] = "browser_plugin_guest_manager"; 82 const int kInstanceIDNone = 0; 83 const int kInvalidPermissionRequestID = 0; 84 85 } // namespace browser_plugin 86 87 } // namespace content 88