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 // Internal method bindings. | 11 // Internal method bindings. |
12 const char kMethodInternalAttach[] = "-internal-attach"; | 12 const char kMethodInternalAttach[] = "-internal-attach"; |
13 | 13 |
14 // Internal events. | |
15 const char kEventInternalInstanceIDAllocated[] = "instanceid-allocated"; | |
16 | |
17 // Attributes. | 14 // Attributes. |
18 const char kAttributeAllowTransparency[] = "allowtransparency"; | 15 const char kAttributeAllowTransparency[] = "allowtransparency"; |
19 const char kAttributeAutoSize[] = "autosize"; | 16 const char kAttributeAutoSize[] = "autosize"; |
20 const char kAttributeContentWindow[] = "contentWindow"; | 17 const char kAttributeContentWindow[] = "contentWindow"; |
21 const char kAttributeMaxHeight[] = "maxheight"; | 18 const char kAttributeMaxHeight[] = "maxheight"; |
22 const char kAttributeMaxWidth[] = "maxwidth"; | 19 const char kAttributeMaxWidth[] = "maxwidth"; |
23 const char kAttributeMinHeight[] = "minheight"; | 20 const char kAttributeMinHeight[] = "minheight"; |
24 const char kAttributeMinWidth[] = "minwidth"; | 21 const char kAttributeMinWidth[] = "minwidth"; |
25 const char kAttributeName[] = "name"; | 22 const char kAttributeName[] = "name"; |
26 const char kAttributePartition[] = "partition"; | 23 const char kAttributePartition[] = "partition"; |
27 const char kAttributeSrc[] = "src"; | 24 const char kAttributeSrc[] = "src"; |
28 | 25 |
29 // Parameters/properties on events. | 26 // Parameters/properties on events. |
30 const char kPersistPrefix[] = "persist:"; | |
31 const char kWindowID[] = "windowId"; | 27 const char kWindowID[] = "windowId"; |
32 | 28 |
33 // Error messages. | 29 // Error messages. |
34 const char kErrorAlreadyNavigated[] = | |
35 "The object has already navigated, so its partition cannot be changed."; | |
36 const char kErrorInvalidPartition[] = | |
37 "Invalid partition attribute."; | |
38 const char kErrorCannotRemovePartition[] = | 30 const char kErrorCannotRemovePartition[] = |
39 "Cannot remove partition attribute after navigating."; | 31 "Cannot remove partition attribute after navigating."; |
40 | 32 |
41 // Other. | 33 // Other. |
42 const int kInstanceIDNone = 0; | 34 const int kInstanceIDNone = 0; |
43 const int kInvalidPermissionRequestID = 0; | 35 const int kInvalidPermissionRequestID = 0; |
44 | 36 |
45 } // namespace browser_plugin | 37 } // namespace browser_plugin |
46 | 38 |
47 } // namespace content | 39 } // namespace content |
OLD | NEW |