Allow only one bookmark to be added for multiple fast starring
[chromium-blink-merge.git] / extensions / browser / guest_view / web_view / web_view_constants.h
blob8dfd28773db371d8df4a1312ef73ca4650b49023
1 // Copyright 2014 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.
5 // Constants used for the WebView API.
7 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_CONSTANTS_H_
8 #define EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_CONSTANTS_H_
10 #include "base/basictypes.h"
12 namespace webview {
14 // Attributes.
15 extern const char kAttributeAllowTransparency[];
16 extern const char kAttributeAllowScaling[];
17 extern const char kAttributeName[];
18 extern const char kAttributeSrc[];
20 // API namespace.
21 // TODO(kalman): Consolidate this with the other API constants.
22 extern const char kAPINamespace[];
24 // API error messages.
25 extern const char kAPILoadDataInvalidDataURL[];
26 extern const char kAPILoadDataInvalidBaseURL[];
27 extern const char kAPILoadDataInvalidVirtualURL[];
29 // Events.
30 extern const char kEventClose[];
31 extern const char kEventConsoleMessage[];
32 extern const char kEventContentLoad[];
33 extern const char kEventContextMenuShow[];
34 extern const char kEventDialog[];
35 extern const char kEventDropLink[];
36 extern const char kEventExit[];
37 extern const char kEventExitFullscreen[];
38 extern const char kEventFindReply[];
39 extern const char kEventFrameNameChanged[];
40 extern const char kEventLoadAbort[];
41 extern const char kEventLoadCommit[];
42 extern const char kEventLoadProgress[];
43 extern const char kEventLoadRedirect[];
44 extern const char kEventLoadStart[];
45 extern const char kEventLoadStop[];
46 extern const char kEventMessage[];
47 extern const char kEventNewWindow[];
48 extern const char kEventPermissionRequest[];
49 extern const char kEventResponsive[];
50 extern const char kEventSizeChanged[];
51 extern const char kEventUnresponsive[];
52 extern const char kEventZoomChange[];
54 // Event related constants.
55 extern const char kWebViewEventPrefix[];
57 // Parameters/properties on events.
58 extern const char kContextMenuItems[];
59 extern const char kDefaultPromptText[];
60 extern const char kFindSearchText[];
61 extern const char kFindFinalUpdate[];
62 extern const char kInitialHeight[];
63 extern const char kInitialWidth[];
64 extern const char kLastUnlockedBySelf[];
65 extern const char kLevel[];
66 extern const char kLine[];
67 extern const char kMessage[];
68 extern const char kMessageText[];
69 extern const char kMessageType[];
70 extern const char kName[];
71 extern const char kNewHeight[];
72 extern const char kNewURL[];
73 extern const char kNewWidth[];
74 extern const char kOldHeight[];
75 extern const char kOldURL[];
76 extern const char kOrigin[];
77 extern const char kPermission[];
78 extern const char kPermissionTypeDialog[];
79 extern const char kPermissionTypeDownload[];
80 extern const char kPermissionTypeFileSystem[];
81 extern const char kPermissionTypeFullscreen[];
82 extern const char kPermissionTypeGeolocation[];
83 extern const char kPermissionTypeLoadPlugin[];
84 extern const char kPermissionTypeMedia[];
85 extern const char kPermissionTypeNewWindow[];
86 extern const char kPermissionTypePointerLock[];
87 extern const char kOldWidth[];
88 extern const char kProcessId[];
89 extern const char kProgress[];
90 extern const char kReason[];
91 extern const char kRequestId[];
92 extern const char kRequestInfo[];
93 extern const char kSourceId[];
94 extern const char kTargetURL[];
95 extern const char kWindowID[];
96 extern const char kWindowOpenDisposition[];
97 extern const char kOldZoomFactor[];
98 extern const char kNewZoomFactor[];
100 // Internal parameters/properties on events.
101 extern const char kInternalBaseURLForDataURL[];
102 extern const char kInternalCurrentEntryIndex[];
103 extern const char kInternalEntryCount[];
104 extern const char kInternalProcessId[];
106 // Parameters to callback functions.
107 extern const char kFindNumberOfMatches[];
108 extern const char kFindActiveMatchOrdinal[];
109 extern const char kFindSelectionRect[];
110 extern const char kFindRectLeft[];
111 extern const char kFindRectTop[];
112 extern const char kFindRectWidth[];
113 extern const char kFindRectHeight[];
114 extern const char kFindCanceled[];
115 extern const char kFindDone[];
117 // Initialization parameters.
118 extern const char kInitialZoomFactor[];
119 extern const char kParameterUserAgentOverride[];
121 // Miscellaneous.
122 extern const char kMenuItemCommandId[];
123 extern const char kMenuItemLabel[];
124 extern const char kPersistPrefix[];
125 extern const char kStoragePartitionId[];
126 extern const unsigned int kMaxOutstandingPermissionRequests;
127 extern const int kInvalidPermissionRequestID;
129 // ClearData API constants.
131 // Note that these are not in an enum because using enums to declare bitmasks
132 // results in the enum values being signed.
133 extern const uint32 WEB_VIEW_REMOVE_DATA_MASK_APPCACHE;
134 extern const uint32 WEB_VIEW_REMOVE_DATA_MASK_CACHE;
135 extern const uint32 WEB_VIEW_REMOVE_DATA_MASK_COOKIES;
136 extern const uint32 WEB_VIEW_REMOVE_DATA_MASK_FILE_SYSTEMS;
137 extern const uint32 WEB_VIEW_REMOVE_DATA_MASK_INDEXEDDB;
138 extern const uint32 WEB_VIEW_REMOVE_DATA_MASK_LOCAL_STORAGE;
139 extern const uint32 WEB_VIEW_REMOVE_DATA_MASK_WEBSQL;
141 // Other.
142 extern const char kWebViewContentScriptManagerKeyName[];
144 } // namespace webview
146 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_CONSTANTS_H_