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" |
| 11 |
10 namespace webview { | 12 namespace webview { |
11 | 13 |
12 // Attributes. | 14 // Attributes. |
13 extern const char kAttributeAllowTransparency[]; | 15 extern const char kAttributeAllowTransparency[]; |
14 extern const char kAttributeAllowScaling[]; | 16 extern const char kAttributeAllowScaling[]; |
15 extern const char kAttributeName[]; | 17 extern const char kAttributeName[]; |
16 extern const char kAttributeSrc[]; | 18 extern const char kAttributeSrc[]; |
17 | 19 |
18 // API namespace. | 20 // API namespace. |
19 // TODO(kalman): Consolidate this with the other API constants. | 21 // TODO(kalman): Consolidate this with the other API constants. |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 extern const char kParameterUserAgentOverride[]; | 117 extern const char kParameterUserAgentOverride[]; |
116 | 118 |
117 // Miscellaneous. | 119 // Miscellaneous. |
118 extern const char kMenuItemCommandId[]; | 120 extern const char kMenuItemCommandId[]; |
119 extern const char kMenuItemLabel[]; | 121 extern const char kMenuItemLabel[]; |
120 extern const char kPersistPrefix[]; | 122 extern const char kPersistPrefix[]; |
121 extern const char kStoragePartitionId[]; | 123 extern const char kStoragePartitionId[]; |
122 extern const unsigned int kMaxOutstandingPermissionRequests; | 124 extern const unsigned int kMaxOutstandingPermissionRequests; |
123 extern const int kInvalidPermissionRequestID; | 125 extern const int kInvalidPermissionRequestID; |
124 | 126 |
| 127 // ClearData API constants. |
| 128 // |
| 129 // Note that these are not in an enum because using enums to declare bitmasks |
| 130 // results in the enum values being signed. |
| 131 extern const uint32 WEB_VIEW_REMOVE_DATA_MASK_APPCACHE; |
| 132 extern const uint32 WEB_VIEW_REMOVE_DATA_MASK_CACHE; |
| 133 extern const uint32 WEB_VIEW_REMOVE_DATA_MASK_COOKIES; |
| 134 extern const uint32 WEB_VIEW_REMOVE_DATA_MASK_FILE_SYSTEMS; |
| 135 extern const uint32 WEB_VIEW_REMOVE_DATA_MASK_INDEXEDDB; |
| 136 extern const uint32 WEB_VIEW_REMOVE_DATA_MASK_LOCAL_STORAGE; |
| 137 extern const uint32 WEB_VIEW_REMOVE_DATA_MASK_WEBSQL; |
| 138 |
125 } // namespace webview | 139 } // namespace webview |
126 | 140 |
127 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_CONSTANTS_H_ | 141 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_CONSTANTS_H_ |
OLD | NEW |