Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / extensions / browser / guest_view / web_view / web_view_constants.h
blobd0a24e23c78cf6a4b6b53961501605a808c0ca63
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 namespace webview {
12 // Attributes.
13 extern const char kAttributeAutoSize[];
14 extern const char kAttributeMaxHeight[];
15 extern const char kAttributeMaxWidth[];
16 extern const char kAttributeMinHeight[];
17 extern const char kAttributeMinWidth[];
19 // API namespace.
20 // TODO(kalman): Consolidate this with the other API constants.
21 extern const char kAPINamespace[];
23 // Events.
24 extern const char kEventClose[];
25 extern const char kEventConsoleMessage[];
26 extern const char kEventContentLoad[];
27 extern const char kEventContextMenu[];
28 extern const char kEventDialog[];
29 extern const char kEventExit[];
30 extern const char kEventFindReply[];
31 extern const char kEventFrameNameChanged[];
32 extern const char kEventLoadAbort[];
33 extern const char kEventLoadCommit[];
34 extern const char kEventLoadProgress[];
35 extern const char kEventLoadRedirect[];
36 extern const char kEventLoadStart[];
37 extern const char kEventLoadStop[];
38 extern const char kEventMessage[];
39 extern const char kEventNewWindow[];
40 extern const char kEventPermissionRequest[];
41 extern const char kEventPluginDestroyed[];
42 extern const char kEventResponsive[];
43 extern const char kEventSizeChanged[];
44 extern const char kEventUnresponsive[];
45 extern const char kEventZoomChange[];
47 // Event related constants.
48 extern const char kWebViewEventPrefix[];
50 // Parameters/properties on events.
51 extern const char kContextMenuItems[];
52 extern const char kDefaultPromptText[];
53 extern const char kFindSearchText[];
54 extern const char kFindFinalUpdate[];
55 extern const char kInitialHeight[];
56 extern const char kInitialWidth[];
57 extern const char kLastUnlockedBySelf[];
58 extern const char kLevel[];
59 extern const char kLine[];
60 extern const char kMessage[];
61 extern const char kMessageText[];
62 extern const char kMessageType[];
63 extern const char kName[];
64 extern const char kNewHeight[];
65 extern const char kNewURL[];
66 extern const char kNewWidth[];
67 extern const char kOldHeight[];
68 extern const char kOldURL[];
69 extern const char kPermission[];
70 extern const char kPermissionTypeDialog[];
71 extern const char kPermissionTypeDownload[];
72 extern const char kPermissionTypeFileSystem[];
73 extern const char kPermissionTypeGeolocation[];
74 extern const char kPermissionTypeLoadPlugin[];
75 extern const char kPermissionTypeMedia[];
76 extern const char kPermissionTypeNewWindow[];
77 extern const char kPermissionTypePointerLock[];
78 extern const char kOldWidth[];
79 extern const char kProcessId[];
80 extern const char kProgress[];
81 extern const char kReason[];
82 extern const char kRequestId[];
83 extern const char kSourceId[];
84 extern const char kTargetURL[];
85 extern const char kWindowID[];
86 extern const char kWindowOpenDisposition[];
87 extern const char kOldZoomFactor[];
88 extern const char kNewZoomFactor[];
90 // Internal parameters/properties on events.
91 extern const char kInternalCurrentEntryIndex[];
92 extern const char kInternalEntryCount[];
93 extern const char kInternalProcessId[];
95 // Parameters to callback functions.
96 extern const char kFindNumberOfMatches[];
97 extern const char kFindActiveMatchOrdinal[];
98 extern const char kFindSelectionRect[];
99 extern const char kFindRectLeft[];
100 extern const char kFindRectTop[];
101 extern const char kFindRectWidth[];
102 extern const char kFindRectHeight[];
103 extern const char kFindCanceled[];
104 extern const char kFindDone[];
106 // Initialization parameters.
107 extern const char kParameterUserAgentOverride[];
109 // Miscellaneous.
110 extern const char kMenuItemCommandId[];
111 extern const char kMenuItemLabel[];
112 extern const char kPersistPrefix[];
113 extern const char kStoragePartitionId[];
114 extern const unsigned int kMaxOutstandingPermissionRequests;
115 extern const int kInvalidPermissionRequestID;
117 } // namespace webview
119 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_CONSTANTS_H_