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 kEventSizeChanged[] = "sizechanged"; | 46 const char kEventSizeChanged[] = "sizechanged"; |
51 | 47 |
52 // Parameters/properties on events. | 48 // Parameters/properties on events. |
53 const char kDefaultPromptText[] = "defaultPromptText"; | 49 const char kDefaultPromptText[] = "defaultPromptText"; |
54 const char kId[] = "id"; | 50 const char kId[] = "id"; |
55 const char kInitialHeight[] = "initialHeight"; | 51 const char kInitialHeight[] = "initialHeight"; |
56 const char kInitialWidth[] = "initialWidth"; | 52 const char kInitialWidth[] = "initialWidth"; |
57 const char kLastUnlockedBySelf[] = "lastUnlockedBySelf"; | 53 const char kLastUnlockedBySelf[] = "lastUnlockedBySelf"; |
58 const char kMessageText[] = "messageText"; | 54 const char kMessageText[] = "messageText"; |
59 const char kMessageType[] = "messageType"; | 55 const char kMessageType[] = "messageType"; |
(...skipping 23 matching lines...) Expand all Loading... |
83 const char kErrorAlreadyNavigated[] = | 79 const char kErrorAlreadyNavigated[] = |
84 "The object has already navigated, so its partition cannot be changed."; | 80 "The object has already navigated, so its partition cannot be changed."; |
85 const char kErrorInvalidPartition[] = | 81 const char kErrorInvalidPartition[] = |
86 "Invalid partition attribute."; | 82 "Invalid partition attribute."; |
87 const char kErrorCannotRemovePartition[] = | 83 const char kErrorCannotRemovePartition[] = |
88 "Cannot remove partition attribute after navigating."; | 84 "Cannot remove partition attribute after navigating."; |
89 | 85 |
90 // Other. | 86 // Other. |
91 const char kBrowserPluginGuestManagerKeyName[] = "browser_plugin_guest_manager"; | 87 const char kBrowserPluginGuestManagerKeyName[] = "browser_plugin_guest_manager"; |
92 const int kInstanceIDNone = 0; | 88 const int kInstanceIDNone = 0; |
| 89 const int kInvalidPermissionRequestID = 0; |
93 | 90 |
94 } // namespace browser_plugin | 91 } // namespace browser_plugin |
95 | 92 |
96 } // namespace content | 93 } // namespace content |
OLD | NEW |