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