| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright c) 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 kMethodInternalAttachWindowTo[] = "-internal-attachWindowTo"; | 24 const char kMethodInternalAttachWindowTo[] = "-internal-attachWindowTo"; |
| 25 const char kMethodInternalPersistObject[] = "-internal-persistObject"; | 25 const char kMethodInternalPersistObject[] = "-internal-persistObject"; |
| 26 const char kMethodInternalSetPermission[] = "-internal-setPermission"; | 26 const char kMethodInternalSetPermission[] = "-internal-setPermission"; |
| 27 | 27 |
| 28 // Internal events. |
| 29 const char kEventInternalAttached[] = "attached"; |
| 30 |
| 28 // Attributes. | 31 // Attributes. |
| 29 const char kAttributeAutoSize[] = "autosize"; | 32 const char kAttributeAutoSize[] = "autosize"; |
| 30 const char kAttributeContentWindow[] = "contentWindow"; | 33 const char kAttributeContentWindow[] = "contentWindow"; |
| 31 const char kAttributeMaxHeight[] = "maxheight"; | 34 const char kAttributeMaxHeight[] = "maxheight"; |
| 32 const char kAttributeMaxWidth[] = "maxwidth"; | 35 const char kAttributeMaxWidth[] = "maxwidth"; |
| 33 const char kAttributeMinHeight[] = "minheight"; | 36 const char kAttributeMinHeight[] = "minheight"; |
| 34 const char kAttributeMinWidth[] = "minwidth"; | 37 const char kAttributeMinWidth[] = "minwidth"; |
| 35 const char kAttributeName[] = "name"; | 38 const char kAttributeName[] = "name"; |
| 36 const char kAttributePartition[] = "partition"; | 39 const char kAttributePartition[] = "partition"; |
| 37 const char kAttributeSrc[] = "src"; | 40 const char kAttributeSrc[] = "src"; |
| 38 | 41 |
| 39 // Events. | 42 // Events. |
| 40 const char kEventClose[] = "close"; | 43 const char kEventClose[] = "close"; |
| 41 const char kEventConsoleMessage[] = "consolemessage"; | 44 const char kEventConsoleMessage[] = "consolemessage"; |
| 42 const char kEventContentLoad[] = "contentload"; | 45 const char kEventContentLoad[] = "contentload"; |
| 43 const char kEventExit[] = "exit"; | 46 const char kEventExit[] = "exit"; |
| 44 const char kEventLoadAbort[] = "loadabort"; | 47 const char kEventLoadAbort[] = "loadabort"; |
| 45 const char kEventLoadCommit[] = "loadcommit"; | |
| 46 const char kEventLoadRedirect[] = "loadredirect"; | 48 const char kEventLoadRedirect[] = "loadredirect"; |
| 47 const char kEventLoadStart[] = "loadstart"; | 49 const char kEventLoadStart[] = "loadstart"; |
| 48 const char kEventLoadStop[] = "loadstop"; | 50 const char kEventLoadStop[] = "loadstop"; |
| 49 const char kEventNewWindow[] = "newwindow"; | 51 const char kEventNewWindow[] = "newwindow"; |
| 50 const char kEventRequestPermission[] = "permissionrequest"; | 52 const char kEventRequestPermission[] = "permissionrequest"; |
| 51 const char kEventResponsive[] = "responsive"; | 53 const char kEventResponsive[] = "responsive"; |
| 52 const char kEventSizeChanged[] = "sizechanged"; | 54 const char kEventSizeChanged[] = "sizechanged"; |
| 53 const char kEventUnresponsive[] = "unresponsive"; | 55 const char kEventUnresponsive[] = "unresponsive"; |
| 54 | 56 |
| 55 // Parameters/properties on events. | 57 // Parameters/properties on events. |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 const char kErrorCannotRemovePartition[] = | 95 const char kErrorCannotRemovePartition[] = |
| 94 "Cannot remove partition attribute after navigating."; | 96 "Cannot remove partition attribute after navigating."; |
| 95 | 97 |
| 96 // Other. | 98 // Other. |
| 97 const char kBrowserPluginGuestManagerKeyName[] = "browser_plugin_guest_manager"; | 99 const char kBrowserPluginGuestManagerKeyName[] = "browser_plugin_guest_manager"; |
| 98 const int kInstanceIDNone = 0; | 100 const int kInstanceIDNone = 0; |
| 99 | 101 |
| 100 } // namespace browser_plugin | 102 } // namespace browser_plugin |
| 101 | 103 |
| 102 } // namespace content | 104 } // namespace content |
| OLD | NEW |