OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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 CHROME_BROWSER_GUESTVIEW_WEBVIEW_WEBVIEW_CONSTANTS_H_ | 7 #ifndef CHROME_BROWSER_GUESTVIEW_WEBVIEW_WEBVIEW_CONSTANTS_H_ |
8 #define CHROME_BROWSER_GUESTVIEW_WEBVIEW_WEBVIEW_CONSTANTS_H_ | 8 #define CHROME_BROWSER_GUESTVIEW_WEBVIEW_WEBVIEW_CONSTANTS_H_ |
9 | 9 |
10 namespace webview { | 10 namespace webview { |
11 | 11 |
12 // Events. | 12 // Events. |
13 extern const char kEventClose[]; | 13 extern const char kEventClose[]; |
14 extern const char kEventConsoleMessage[]; | 14 extern const char kEventConsoleMessage[]; |
15 extern const char kEventContentLoad[]; | 15 extern const char kEventContentLoad[]; |
| 16 extern const char kEventDialog[]; |
16 extern const char kEventExit[]; | 17 extern const char kEventExit[]; |
17 extern const char kEventLoadAbort[]; | 18 extern const char kEventLoadAbort[]; |
18 extern const char kEventLoadCommit[]; | 19 extern const char kEventLoadCommit[]; |
19 extern const char kEventLoadRedirect[]; | 20 extern const char kEventLoadRedirect[]; |
20 extern const char kEventLoadStart[]; | 21 extern const char kEventLoadStart[]; |
21 extern const char kEventLoadStop[]; | 22 extern const char kEventLoadStop[]; |
| 23 extern const char kEventNewWindow[]; |
| 24 extern const char kEventPermissionRequest[]; |
22 extern const char kEventResponsive[]; | 25 extern const char kEventResponsive[]; |
23 extern const char kEventUnresponsive[]; | 26 extern const char kEventUnresponsive[]; |
24 | 27 |
25 // Parameters/properties on events. | 28 // Parameters/properties on events. |
26 extern const char kLevel[]; | 29 extern const char kLevel[]; |
27 extern const char kLine[]; | 30 extern const char kLine[]; |
28 extern const char kMessage[]; | 31 extern const char kMessage[]; |
29 extern const char kNewURL[]; | 32 extern const char kNewURL[]; |
30 extern const char kOldURL[]; | 33 extern const char kOldURL[]; |
| 34 extern const char kPermission[]; |
| 35 extern const char kPermissionTypeDialog[]; |
| 36 extern const char kPermissionTypeDownload[]; |
| 37 extern const char kPermissionTypeGeolocation[]; |
| 38 extern const char kPermissionTypeMedia[]; |
| 39 extern const char kPermissionTypeNewWindow[]; |
| 40 extern const char kPermissionTypePointerLock[]; |
31 extern const char kProcessId[]; | 41 extern const char kProcessId[]; |
32 extern const char kReason[]; | 42 extern const char kReason[]; |
| 43 extern const char kRequestId[]; |
33 extern const char kSourceId[]; | 44 extern const char kSourceId[]; |
34 | 45 |
35 // Internal parameters/properties on events. | 46 // Internal parameters/properties on events. |
36 extern const char kInternalCurrentEntryIndex[]; | 47 extern const char kInternalCurrentEntryIndex[]; |
37 extern const char kInternalEntryCount[]; | 48 extern const char kInternalEntryCount[]; |
38 extern const char kInternalProcessId[]; | 49 extern const char kInternalProcessId[]; |
39 | 50 |
40 } // namespace webview | 51 } // namespace webview |
41 | 52 |
42 #endif // CHROME_BROWSER_GUESTVIEW_WEBVIEW_WEBVIEW_CONSTANTS_H_ | 53 #endif // CHROME_BROWSER_GUESTVIEW_WEBVIEW_WEBVIEW_CONSTANTS_H_ |
43 | 54 |
OLD | NEW |