OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 // Constants used for the WebView API. |
| 6 |
| 7 #ifndef CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_CONSTANTS_H_ |
| 8 #define CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_CONSTANTS_H_ |
| 9 |
| 10 namespace webview { |
| 11 |
| 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[]; |
| 18 |
| 19 // API namespace. |
| 20 // TODO(kalman): Consolidate this with the other API constants. |
| 21 extern const char kAPINamespace[]; |
| 22 |
| 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 kEventResponsive[]; |
| 42 extern const char kEventSizeChanged[]; |
| 43 extern const char kEventUnresponsive[]; |
| 44 extern const char kEventZoomChange[]; |
| 45 |
| 46 // Event related constants. |
| 47 extern const char kWebViewEventPrefix[]; |
| 48 |
| 49 // Parameters/properties on events. |
| 50 extern const char kContextMenuItems[]; |
| 51 extern const char kDefaultPromptText[]; |
| 52 extern const char kFindSearchText[]; |
| 53 extern const char kFindFinalUpdate[]; |
| 54 extern const char kInitialHeight[]; |
| 55 extern const char kInitialWidth[]; |
| 56 extern const char kLastUnlockedBySelf[]; |
| 57 extern const char kLevel[]; |
| 58 extern const char kLine[]; |
| 59 extern const char kMessage[]; |
| 60 extern const char kMessageText[]; |
| 61 extern const char kMessageType[]; |
| 62 extern const char kName[]; |
| 63 extern const char kNewHeight[]; |
| 64 extern const char kNewURL[]; |
| 65 extern const char kNewWidth[]; |
| 66 extern const char kOldHeight[]; |
| 67 extern const char kOldURL[]; |
| 68 extern const char kPermission[]; |
| 69 extern const char kPermissionTypeDialog[]; |
| 70 extern const char kPermissionTypeDownload[]; |
| 71 extern const char kPermissionTypeFileSystem[]; |
| 72 extern const char kPermissionTypeGeolocation[]; |
| 73 extern const char kPermissionTypeLoadPlugin[]; |
| 74 extern const char kPermissionTypeMedia[]; |
| 75 extern const char kPermissionTypeNewWindow[]; |
| 76 extern const char kPermissionTypePointerLock[]; |
| 77 extern const char kOldWidth[]; |
| 78 extern const char kProcessId[]; |
| 79 extern const char kProgress[]; |
| 80 extern const char kReason[]; |
| 81 extern const char kRequestId[]; |
| 82 extern const char kSourceId[]; |
| 83 extern const char kTargetURL[]; |
| 84 extern const char kWindowID[]; |
| 85 extern const char kWindowOpenDisposition[]; |
| 86 extern const char kOldZoomFactor[]; |
| 87 extern const char kNewZoomFactor[]; |
| 88 |
| 89 // Internal parameters/properties on events. |
| 90 extern const char kInternalCurrentEntryIndex[]; |
| 91 extern const char kInternalEntryCount[]; |
| 92 extern const char kInternalProcessId[]; |
| 93 |
| 94 // Parameters to callback functions. |
| 95 extern const char kFindNumberOfMatches[]; |
| 96 extern const char kFindActiveMatchOrdinal[]; |
| 97 extern const char kFindSelectionRect[]; |
| 98 extern const char kFindRectLeft[]; |
| 99 extern const char kFindRectTop[]; |
| 100 extern const char kFindRectWidth[]; |
| 101 extern const char kFindRectHeight[]; |
| 102 extern const char kFindCanceled[]; |
| 103 extern const char kFindDone[]; |
| 104 |
| 105 // Initialization parameters. |
| 106 extern const char kParameterUserAgentOverride[]; |
| 107 |
| 108 // Miscellaneous. |
| 109 extern const char kMenuItemCommandId[]; |
| 110 extern const char kMenuItemLabel[]; |
| 111 extern const char kPersistPrefix[]; |
| 112 extern const char kStoragePartitionId[]; |
| 113 extern const unsigned int kMaxOutstandingPermissionRequests; |
| 114 extern const int kInvalidPermissionRequestID; |
| 115 |
| 116 } // namespace webview |
| 117 |
| 118 #endif // CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_CONSTANTS_H_ |
OLD | NEW |