Home | History | Annotate | Download | only in webview
      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 
     27 // Parameters/properties on events.
     28 const char kLevel[] = "level";
     29 const char kLine[] = "line";
     30 const char kMessage[] = "message";
     31 const char kNewHeight[] = "newHeight";
     32 const char kNewURL[] = "newUrl";
     33 const char kNewWidth[] = "newWidth";
     34 const char kOldHeight[] = "oldHeight";
     35 const char kOldURL[] = "oldUrl";
     36 const char kPermission[] = "permission";
     37 const char kPermissionTypeDialog[] = "dialog";
     38 const char kPermissionTypeDownload[] = "download";
     39 const char kPermissionTypeGeolocation[] = "geolocation";
     40 const char kPermissionTypeLoadPlugin[] = "loadplugin";
     41 const char kPermissionTypeMedia[] = "media";
     42 const char kPermissionTypeNewWindow[] = "newwindow";
     43 const char kPermissionTypePointerLock[] = "pointerLock";
     44 const char kOldWidth[] = "oldWidth";
     45 const char kProcessId[] = "processId";
     46 const char kProgress[] = "progress";
     47 const char kReason[] = "reason";
     48 const char kRequestId[] = "requestId";
     49 const char kSourceId[] = "sourceId";
     50 
     51 // Internal parameters/properties on events.
     52 const char kInternalCurrentEntryIndex[] = "currentEntryIndex";
     53 const char kInternalEntryCount[] = "entryCount";
     54 const char kInternalProcessId[] = "processId";
     55 
     56 // Initialization parameters.
     57 const char kParameterUserAgentOverride[] = "userAgentOverride";
     58 
     59 const unsigned int kMaxOutstandingPermissionRequests = 1024;
     60 
     61 }  // namespace webview
     62