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 kEventLoadRedirect[] = "webview.onLoadRedirect";
     18 const char kEventLoadStart[] = "webview.onLoadStart";
     19 const char kEventLoadStop[] = "webview.onLoadStop";
     20 const char kEventNewWindow[] = "webview.onNewWindow";
     21 const char kEventPermissionRequest[] = "webview.onPermissionRequest";
     22 const char kEventResponsive[] = "webview.onResponsive";
     23 const char kEventUnresponsive[] = "webview.onUnresponsive";
     24 
     25 // Parameters/properties on events.
     26 const char kLevel[] = "level";
     27 const char kLine[] = "line";
     28 const char kMessage[] = "message";
     29 const char kNewURL[] = "newUrl";
     30 const char kOldURL[] = "oldUrl";
     31 const char kPermission[] = "permission";
     32 const char kPermissionTypeDialog[] = "dialog";
     33 const char kPermissionTypeDownload[] = "download";
     34 const char kPermissionTypeGeolocation[] = "geolocation";
     35 const char kPermissionTypeMedia[] = "media";
     36 const char kPermissionTypeNewWindow[] = "newwindow";
     37 const char kPermissionTypePointerLock[] = "pointerLock";
     38 const char kProcessId[] = "processId";
     39 const char kReason[] = "reason";
     40 const char kRequestId[] = "requestId";
     41 const char kSourceId[] = "sourceId";
     42 
     43 // Internal parameters/properties on events.
     44 const char kInternalCurrentEntryIndex[] = "currentEntryIndex";
     45 const char kInternalEntryCount[] = "entryCount";
     46 const char kInternalProcessId[] = "processId";
     47 
     48 }  // namespace webview
     49