Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / guestview / webview / webview_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 "chrome/browser/guestview/webview/webview_constants.h"
6
7 namespace webview {
8
9 // Events.
10 const char kEventClose[] = "webview.onClose";
11 const char kEventConsoleMessage[] = "webview.onConsoleMessage";
12 const char kEventContentLoad[] = "webview.onContentLoad";
13 const char kEventDialog[] = "webview.onDialog";
14 const char kEventExit[] = "webview.onExit";
15 const char kEventLoadAbort[] = "webview.onLoadAbort";
16 const char kEventLoadCommit[] = "webview.onLoadCommit";
17 const char kEventLoadProgress[] = "webview.onLoadProgress";
18 const char kEventLoadRedirect[] = "webview.onLoadRedirect";
19 const char kEventLoadStart[] = "webview.onLoadStart";
20 const char kEventLoadStop[] = "webview.onLoadStop";
21 const char kEventNewWindow[] = "webview.onNewWindow";
22 const char kEventPermissionRequest[] = "webview.onPermissionRequest";
23 const char kEventResponsive[] = "webview.onResponsive";
24 const char kEventSizeChanged[] = "webview.onSizeChanged";
25 const char kEventUnresponsive[] = "webview.onUnresponsive";
26 const char kEventZoomChange[] = "webview.onZoomChange";
27
28 // Parameters/properties on events.
29 const char kLevel[] = "level";
30 const char kLine[] = "line";
31 const char kMessage[] = "message";
32 const char kNewHeight[] = "newHeight";
33 const char kNewURL[] = "newUrl";
34 const char kNewWidth[] = "newWidth";
35 const char kOldHeight[] = "oldHeight";
36 const char kOldURL[] = "oldUrl";
37 const char kPermission[] = "permission";
38 const char kPermissionTypeDialog[] = "dialog";
39 const char kPermissionTypeDownload[] = "download";
40 const char kPermissionTypeGeolocation[] = "geolocation";
41 const char kPermissionTypeLoadPlugin[] = "loadplugin";
42 const char kPermissionTypeMedia[] = "media";
43 const char kPermissionTypeNewWindow[] = "newwindow";
44 const char kPermissionTypePointerLock[] = "pointerLock";
45 const char kOldWidth[] = "oldWidth";
46 const char kProcessId[] = "processId";
47 const char kProgress[] = "progress";
48 const char kReason[] = "reason";
49 const char kRequestId[] = "requestId";
50 const char kSourceId[] = "sourceId";
51 const char kOldZoomFactor[] = "oldZoomFactor";
52 const char kNewZoomFactor[] = "newZoomFactor";
53
54 // Internal parameters/properties on events.
55 const char kInternalCurrentEntryIndex[] = "currentEntryIndex";
56 const char kInternalEntryCount[] = "entryCount";
57 const char kInternalProcessId[] = "processId";
58
59 // Initialization parameters.
60 const char kParameterUserAgentOverride[] = "userAgentOverride";
61
62 const unsigned int kMaxOutstandingPermissionRequests = 1024;
63
64 }  // namespace webview