- add sources.
[platform/framework/web/crosswalk.git] / src / content / common / browser_plugin / browser_plugin_constants.cc
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 kAttributeApi[] = "api";
35 const char kAttributeAutoSize[] = "autosize";
36 const char kAttributeContentWindow[] = "contentWindow";
37 const char kAttributeMaxHeight[] = "maxheight";
38 const char kAttributeMaxWidth[] = "maxwidth";
39 const char kAttributeMinHeight[] = "minheight";
40 const char kAttributeMinWidth[] = "minwidth";
41 const char kAttributeName[] = "name";
42 const char kAttributePartition[] = "partition";
43 const char kAttributeSrc[] = "src";
44
45 // Parameters/properties on events.
46 const char kDefaultPromptText[] = "defaultPromptText";
47 const char kId[] = "id";
48 const char kInitialHeight[] = "initialHeight";
49 const char kInitialWidth[] = "initialWidth";
50 const char kLastUnlockedBySelf[] = "lastUnlockedBySelf";
51 const char kMessageText[] = "messageText";
52 const char kMessageType[] = "messageType";
53 const char kName[] = "name";
54 const char kPermission[] = "permission";
55 const char kPermissionTypeDialog[] = "dialog";
56 const char kPermissionTypeDownload[] = "download";
57 const char kPermissionTypeGeolocation[] = "geolocation";
58 const char kPermissionTypeMedia[] = "media";
59 const char kPermissionTypeNewWindow[] = "newwindow";
60 const char kPermissionTypePointerLock[] = "pointerLock";
61 const char kPersistPrefix[] = "persist:";
62 const char kProcessId[] = "processId";
63 const char kRequestId[] = "requestId";
64 const char kRequestMethod[] = "requestMethod";
65 const char kTargetURL[] = "targetUrl";
66 const char kURL[] = "url";
67 const char kWindowID[] = "windowId";
68 const char kWindowOpenDisposition[] = "windowOpenDisposition";
69 const char kUserGesture[] = "userGesture";
70
71 // Error messages.
72 const char kErrorAlreadyNavigated[] =
73     "The object has already navigated, so its partition cannot be changed.";
74 const char kErrorInvalidPartition[] =
75     "Invalid partition attribute.";
76 const char kErrorCannotRemovePartition[] =
77     "Cannot remove partition attribute after navigating.";
78
79 // Other.
80 const char kBrowserPluginGuestManagerKeyName[] = "browser_plugin_guest_manager";
81 const int kInstanceIDNone = 0;
82 const int kInvalidPermissionRequestID = 0;
83
84 }  // namespace browser_plugin
85
86 }  // namespace content