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 namespace webview { | 10 namespace webview { |
11 | 11 |
12 // Attributes. | 12 // Attributes. |
13 extern const char kAttributeAllowTransparency[]; | 13 extern const char kAttributeAllowTransparency[]; |
14 extern const char kAttributeAutoSize[]; | 14 extern const char kAttributeAutoSize[]; |
15 extern const char kAttributeMaxHeight[]; | 15 extern const char kAttributeMaxHeight[]; |
16 extern const char kAttributeMaxWidth[]; | 16 extern const char kAttributeMaxWidth[]; |
17 extern const char kAttributeMinHeight[]; | 17 extern const char kAttributeMinHeight[]; |
18 extern const char kAttributeMinWidth[]; | 18 extern const char kAttributeMinWidth[]; |
19 extern const char kAttributeName[]; | 19 extern const char kAttributeName[]; |
20 extern const char kAttributeSrc[]; | 20 extern const char kAttributeSrc[]; |
21 | 21 |
22 // API namespace. | 22 // API namespace. |
23 // TODO(kalman): Consolidate this with the other API constants. | 23 // TODO(kalman): Consolidate this with the other API constants. |
24 extern const char kAPINamespace[]; | 24 extern const char kAPINamespace[]; |
25 | 25 |
| 26 // API error messages. |
| 27 extern const char kAPILoadDataInvalidDataURL[]; |
| 28 extern const char kAPILoadDataInvalidBaseURL[]; |
| 29 extern const char kAPILoadDataInvalidVirtualURL[]; |
| 30 |
26 // Events. | 31 // Events. |
27 extern const char kEventClose[]; | 32 extern const char kEventClose[]; |
28 extern const char kEventConsoleMessage[]; | 33 extern const char kEventConsoleMessage[]; |
29 extern const char kEventContentLoad[]; | 34 extern const char kEventContentLoad[]; |
30 extern const char kEventContextMenu[]; | 35 extern const char kEventContextMenu[]; |
31 extern const char kEventDialog[]; | 36 extern const char kEventDialog[]; |
32 extern const char kEventExit[]; | 37 extern const char kEventExit[]; |
33 extern const char kEventFindReply[]; | 38 extern const char kEventFindReply[]; |
34 extern const char kEventFrameNameChanged[]; | 39 extern const char kEventFrameNameChanged[]; |
35 extern const char kEventLoadAbort[]; | 40 extern const char kEventLoadAbort[]; |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 extern const char kMenuItemCommandId[]; | 119 extern const char kMenuItemCommandId[]; |
115 extern const char kMenuItemLabel[]; | 120 extern const char kMenuItemLabel[]; |
116 extern const char kPersistPrefix[]; | 121 extern const char kPersistPrefix[]; |
117 extern const char kStoragePartitionId[]; | 122 extern const char kStoragePartitionId[]; |
118 extern const unsigned int kMaxOutstandingPermissionRequests; | 123 extern const unsigned int kMaxOutstandingPermissionRequests; |
119 extern const int kInvalidPermissionRequestID; | 124 extern const int kInvalidPermissionRequestID; |
120 | 125 |
121 } // namespace webview | 126 } // namespace webview |
122 | 127 |
123 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_CONSTANTS_H_ | 128 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_CONSTANTS_H_ |
OLD | NEW |