| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Constants used for the WebView API. | 5 // Constants used for the WebView API. |
| 6 | 6 |
| 7 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_CONSTANTS_H_ | 7 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_CONSTANTS_H_ |
| 8 #define EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_CONSTANTS_H_ | 8 #define EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_CONSTANTS_H_ |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 | 11 |
| 12 namespace webview { | 12 namespace webview { |
| 13 | 13 |
| 14 // Attributes. | 14 // Attributes. |
| 15 extern const char kAttributeAllowTransparency[]; | 15 extern const char kAttributeAllowTransparency[]; |
| 16 extern const char kAttributeAllowScaling[]; | 16 extern const char kAttributeAllowScaling[]; |
| 17 extern const char kAttributeName[]; | 17 extern const char kAttributeName[]; |
| 18 extern const char kAttributeSrc[]; | 18 extern const char kAttributeSrc[]; |
| 19 | 19 |
| 20 // API namespace. | 20 // API namespace. |
| 21 // TODO(kalman): Consolidate this with the other API constants. | 21 // TODO(kalman): Consolidate this with the other API constants. |
| 22 extern const char kAPINamespace[]; | 22 extern const char kAPINamespace[]; |
| 23 | 23 |
| 24 // API error messages. | 24 // API error messages. |
| 25 extern const char kAPILoadDataInvalidDataURL[]; | 25 extern const char kAPILoadDataInvalidDataURL[]; |
| 26 extern const char kAPILoadDataInvalidBaseURL[]; | 26 extern const char kAPILoadDataInvalidBaseURL[]; |
| 27 extern const char kAPILoadDataInvalidVirtualURL[]; | 27 extern const char kAPILoadDataInvalidVirtualURL[]; |
| 28 | 28 |
| 29 // Events. | 29 // Events. |
| 30 extern const char kEventBeforeRequest[]; |
| 31 extern const char kEventBeforeSendHeaders[]; |
| 30 extern const char kEventClose[]; | 32 extern const char kEventClose[]; |
| 33 extern const char kEventCompleted[]; |
| 31 extern const char kEventConsoleMessage[]; | 34 extern const char kEventConsoleMessage[]; |
| 32 extern const char kEventContentLoad[]; | 35 extern const char kEventContentLoad[]; |
| 33 extern const char kEventContextMenuShow[]; | 36 extern const char kEventContextMenuShow[]; |
| 34 extern const char kEventDialog[]; | 37 extern const char kEventDialog[]; |
| 35 extern const char kEventDropLink[]; | 38 extern const char kEventDropLink[]; |
| 36 extern const char kEventExit[]; | 39 extern const char kEventExit[]; |
| 37 extern const char kEventExitFullscreen[]; | 40 extern const char kEventExitFullscreen[]; |
| 38 extern const char kEventFindReply[]; | 41 extern const char kEventFindReply[]; |
| 39 extern const char kEventFrameNameChanged[]; | 42 extern const char kEventFrameNameChanged[]; |
| 43 extern const char kEventHeadersReceived[]; |
| 40 extern const char kEventLoadAbort[]; | 44 extern const char kEventLoadAbort[]; |
| 41 extern const char kEventLoadCommit[]; | 45 extern const char kEventLoadCommit[]; |
| 42 extern const char kEventLoadProgress[]; | 46 extern const char kEventLoadProgress[]; |
| 43 extern const char kEventLoadRedirect[]; | 47 extern const char kEventLoadRedirect[]; |
| 44 extern const char kEventLoadStart[]; | 48 extern const char kEventLoadStart[]; |
| 45 extern const char kEventLoadStop[]; | 49 extern const char kEventLoadStop[]; |
| 46 extern const char kEventMessage[]; | 50 extern const char kEventMessage[]; |
| 47 extern const char kEventNewWindow[]; | 51 extern const char kEventNewWindow[]; |
| 48 extern const char kEventPermissionRequest[]; | 52 extern const char kEventPermissionRequest[]; |
| 53 extern const char kEventResponseStarted[]; |
| 49 extern const char kEventResponsive[]; | 54 extern const char kEventResponsive[]; |
| 50 extern const char kEventSizeChanged[]; | 55 extern const char kEventSizeChanged[]; |
| 51 extern const char kEventUnresponsive[]; | 56 extern const char kEventUnresponsive[]; |
| 52 extern const char kEventZoomChange[]; | 57 extern const char kEventZoomChange[]; |
| 53 | 58 |
| 54 // Event related constants. | 59 // Event related constants. |
| 55 extern const char kWebViewEventPrefix[]; | 60 extern const char kWebViewEventPrefix[]; |
| 56 | 61 |
| 57 // Parameters/properties on events. | 62 // Parameters/properties on events. |
| 58 extern const char kContextMenuItems[]; | 63 extern const char kContextMenuItems[]; |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 extern const uint32 WEB_VIEW_REMOVE_DATA_MASK_INDEXEDDB; | 142 extern const uint32 WEB_VIEW_REMOVE_DATA_MASK_INDEXEDDB; |
| 138 extern const uint32 WEB_VIEW_REMOVE_DATA_MASK_LOCAL_STORAGE; | 143 extern const uint32 WEB_VIEW_REMOVE_DATA_MASK_LOCAL_STORAGE; |
| 139 extern const uint32 WEB_VIEW_REMOVE_DATA_MASK_WEBSQL; | 144 extern const uint32 WEB_VIEW_REMOVE_DATA_MASK_WEBSQL; |
| 140 | 145 |
| 141 // Other. | 146 // Other. |
| 142 extern const char kWebViewContentScriptManagerKeyName[]; | 147 extern const char kWebViewContentScriptManagerKeyName[]; |
| 143 | 148 |
| 144 } // namespace webview | 149 } // namespace webview |
| 145 | 150 |
| 146 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_CONSTANTS_H_ | 151 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_CONSTANTS_H_ |
| OLD | NEW |