| 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. | 11 // Method bindings. |
| 12 const char kMethodBack[] = "back"; | 12 const char kMethodBack[] = "back"; |
| 13 const char kMethodCanGoBack[] = "canGoBack"; | 13 const char kMethodCanGoBack[] = "canGoBack"; |
| 14 const char kMethodCanGoForward[] = "canGoForward"; | 14 const char kMethodCanGoForward[] = "canGoForward"; |
| 15 const char kMethodForward[] = "forward"; | 15 const char kMethodForward[] = "forward"; |
| 16 const char kMethodGetInstanceId[] = "getInstanceId"; | 16 const char kMethodGetInstanceId[] = "getInstanceId"; |
| 17 const char kMethodGetGuestInstanceId[] = "getGuestInstanceId"; | 17 const char kMethodGetGuestInstanceId[] = "getGuestInstanceId"; |
| 18 const char kMethodGo[] = "go"; | 18 const char kMethodGo[] = "go"; |
| 19 const char kMethodReload[] = "reload"; | 19 const char kMethodReload[] = "reload"; |
| 20 const char kMethodStop[] = "stop"; | 20 const char kMethodStop[] = "stop"; |
| 21 const char kMethodTerminate[] = "terminate"; | 21 const char kMethodTerminate[] = "terminate"; |
| 22 | 22 |
| 23 // Internal method bindings. | 23 // Internal method bindings. |
| 24 const char kMethodInternalAttach[] = "-internal-attach"; | 24 const char kMethodInternalAttach[] = "-internal-attach"; |
| 25 const char kMethodInternalAttachWindowTo[] = "-internal-attachWindowTo"; | 25 const char kMethodInternalAttachWindowTo[] = "-internal-attachWindowTo"; |
| 26 const char kMethodInternalTrackObjectLifetime[] = | 26 const char kMethodInternalTrackObjectLifetime[] = |
| 27 "-internal-trackObjectLifetime"; | 27 "-internal-trackObjectLifetime"; |
| 28 const char kMethodInternalSetPermission[] = "-internal-setPermission"; | |
| 29 | 28 |
| 30 // Internal events. | 29 // Internal events. |
| 31 const char kEventInternalInstanceIDAllocated[] = "instanceid-allocated"; | 30 const char kEventInternalInstanceIDAllocated[] = "instanceid-allocated"; |
| 32 const char kEventInternalTrackedObjectGone[] = "trackedobjectgone"; | 31 const char kEventInternalTrackedObjectGone[] = "trackedobjectgone"; |
| 33 | 32 |
| 34 // Attributes. | 33 // Attributes. |
| 35 const char kAttributeApi[] = "api"; | 34 const char kAttributeApi[] = "api"; |
| 36 const char kAttributeAutoSize[] = "autosize"; | 35 const char kAttributeAutoSize[] = "autosize"; |
| 37 const char kAttributeContentWindow[] = "contentWindow"; | 36 const char kAttributeContentWindow[] = "contentWindow"; |
| 38 const char kAttributeMaxHeight[] = "maxheight"; | 37 const char kAttributeMaxHeight[] = "maxheight"; |
| 39 const char kAttributeMaxWidth[] = "maxwidth"; | 38 const char kAttributeMaxWidth[] = "maxwidth"; |
| 40 const char kAttributeMinHeight[] = "minheight"; | 39 const char kAttributeMinHeight[] = "minheight"; |
| 41 const char kAttributeMinWidth[] = "minwidth"; | 40 const char kAttributeMinWidth[] = "minwidth"; |
| 42 const char kAttributeName[] = "name"; | 41 const char kAttributeName[] = "name"; |
| 43 const char kAttributePartition[] = "partition"; | 42 const char kAttributePartition[] = "partition"; |
| 44 const char kAttributeSrc[] = "src"; | 43 const char kAttributeSrc[] = "src"; |
| 45 | 44 |
| 46 // Events. | 45 // Events. |
| 47 const char kEventDialog[] = "dialog"; | |
| 48 const char kEventNewWindow[] = "newwindow"; | |
| 49 const char kEventRequestPermission[] = "permissionrequest"; | |
| 50 const char kEventResponsive[] = "responsive"; | |
| 51 const char kEventSizeChanged[] = "sizechanged"; | 46 const char kEventSizeChanged[] = "sizechanged"; |
| 52 const char kEventUnresponsive[] = "unresponsive"; | |
| 53 | 47 |
| 54 // Parameters/properties on events. | 48 // Parameters/properties on events. |
| 55 const char kDefaultPromptText[] = "defaultPromptText"; | 49 const char kDefaultPromptText[] = "defaultPromptText"; |
| 56 const char kId[] = "id"; | 50 const char kId[] = "id"; |
| 57 const char kInitialHeight[] = "initialHeight"; | 51 const char kInitialHeight[] = "initialHeight"; |
| 58 const char kInitialWidth[] = "initialWidth"; | 52 const char kInitialWidth[] = "initialWidth"; |
| 59 const char kIsTopLevel[] = "isTopLevel"; | 53 const char kIsTopLevel[] = "isTopLevel"; |
| 60 const char kLastUnlockedBySelf[] = "lastUnlockedBySelf"; | 54 const char kLastUnlockedBySelf[] = "lastUnlockedBySelf"; |
| 61 const char kMessageText[] = "messageText"; | 55 const char kMessageText[] = "messageText"; |
| 62 const char kMessageType[] = "messageType"; | 56 const char kMessageType[] = "messageType"; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 86 const char kErrorAlreadyNavigated[] = | 80 const char kErrorAlreadyNavigated[] = |
| 87 "The object has already navigated, so its partition cannot be changed."; | 81 "The object has already navigated, so its partition cannot be changed."; |
| 88 const char kErrorInvalidPartition[] = | 82 const char kErrorInvalidPartition[] = |
| 89 "Invalid partition attribute."; | 83 "Invalid partition attribute."; |
| 90 const char kErrorCannotRemovePartition[] = | 84 const char kErrorCannotRemovePartition[] = |
| 91 "Cannot remove partition attribute after navigating."; | 85 "Cannot remove partition attribute after navigating."; |
| 92 | 86 |
| 93 // Other. | 87 // Other. |
| 94 const char kBrowserPluginGuestManagerKeyName[] = "browser_plugin_guest_manager"; | 88 const char kBrowserPluginGuestManagerKeyName[] = "browser_plugin_guest_manager"; |
| 95 const int kInstanceIDNone = 0; | 89 const int kInstanceIDNone = 0; |
| 90 const int kInvalidPermissionRequestID = 0; |
| 96 | 91 |
| 97 } // namespace browser_plugin | 92 } // namespace browser_plugin |
| 98 | 93 |
| 99 } // namespace content | 94 } // namespace content |
| OLD | NEW |