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 #ifndef CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_PERMISSION_TYPES_H_ | 5 #ifndef CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_PERMISSION_TYPES_H_ |
6 #define CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_PERMISSION_TYPES_H_ | 6 #define CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_PERMISSION_TYPES_H_ |
7 | 7 |
8 #include "content/public/common/browser_plugin_permission_type.h" | 8 enum WebViewPermissionType { |
| 9 // Unknown type of permission request. |
| 10 WEB_VIEW_PERMISSION_TYPE_UNKNOWN, |
9 | 11 |
10 enum WebViewPermissionType { | 12 WEB_VIEW_PERMISSION_TYPE_DOWNLOAD, |
11 WEB_VIEW_PERMISSION_TYPE_DOWNLOAD = | |
12 BROWSER_PLUGIN_PERMISSION_TYPE_CONTENT_END + 1, | |
13 | 13 |
14 WEB_VIEW_PERMISSION_TYPE_GEOLOCATION, | 14 WEB_VIEW_PERMISSION_TYPE_GEOLOCATION, |
15 | 15 |
16 // JavaScript Dialogs: prompt, alert, confirm | 16 // JavaScript Dialogs: prompt, alert, confirm |
17 // Note: Even through dialogs do not use the permission API, the dialog API | 17 // Note: Even through dialogs do not use the permission API, the dialog API |
18 // is sufficiently similiar that it's convenient to consider it a permission | 18 // is sufficiently similiar that it's convenient to consider it a permission |
19 // type for code reuse. | 19 // type for code reuse. |
20 WEB_VIEW_PERMISSION_TYPE_JAVASCRIPT_DIALOG, | 20 WEB_VIEW_PERMISSION_TYPE_JAVASCRIPT_DIALOG, |
21 | 21 |
22 WEB_VIEW_PERMISSION_TYPE_LOAD_PLUGIN, | 22 WEB_VIEW_PERMISSION_TYPE_LOAD_PLUGIN, |
23 | 23 |
24 // Media access (audio/video) permission request type. | 24 // Media access (audio/video) permission request type. |
25 WEB_VIEW_PERMISSION_TYPE_MEDIA, | 25 WEB_VIEW_PERMISSION_TYPE_MEDIA, |
26 | 26 |
| 27 // New window requests. |
| 28 // Note: Even though new windows don't use the permission API, the new window |
| 29 // API is sufficiently similar that it's convenient to consider it a |
| 30 // permission type for code reuse. |
| 31 WEB_VIEW_PERMISSION_TYPE_NEW_WINDOW, |
| 32 |
27 WEB_VIEW_PERMISSION_TYPE_POINTER_LOCK | 33 WEB_VIEW_PERMISSION_TYPE_POINTER_LOCK |
28 }; | 34 }; |
29 | 35 |
30 #endif // CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_PERMISSION_TYPES_H_ | 36 #endif // CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_PERMISSION_TYPES_H_ |
OLD | NEW |