Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(895)

Unified Diff: third_party/WebKit/Source/modules/permissions/PermissionDescriptor.idl

Issue 2458453002: [sensors] Add Permission guard to the generic sensor apis.
Patch Set: rebase + blink reformat Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/permissions/PermissionDescriptor.idl
diff --git a/third_party/WebKit/Source/modules/permissions/PermissionDescriptor.idl b/third_party/WebKit/Source/modules/permissions/PermissionDescriptor.idl
index 37cfa8659aa02c1fd07075e5e18b85cdd459cac7..fbd01f504672a81f169c110b25797f0cf016823a 100644
--- a/third_party/WebKit/Source/modules/permissions/PermissionDescriptor.idl
+++ b/third_party/WebKit/Source/modules/permissions/PermissionDescriptor.idl
@@ -7,7 +7,13 @@ enum PermissionName {
"midi",
"notifications",
"push",
- "background-sync"
+ "background-sync",
+ "ambient-light-sensor",
+ "accelerometer",
+ "gyroscope",
+ "magnetometer",
+ "orientation-sensor",
+ "sensors", // Default name for all implemented or not implemented sensors.
};
// The PermissionDescriptor dictionary is a base to describe permissions. Some

Powered by Google App Engine
This is Rietveld 408576698