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

Unified Diff: android_webview/native/aw_contents.h

Issue 2458453002: [sensors] Add Permission guard to the generic sensor apis.
Patch Set: Created 4 years, 2 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: android_webview/native/aw_contents.h
diff --git a/android_webview/native/aw_contents.h b/android_webview/native/aw_contents.h
index 13de1a4d8097cda6c0d3523db67068800933b960..51eca176233e556abd3a854b200596df8bd41233 100644
--- a/android_webview/native/aw_contents.h
+++ b/android_webview/native/aw_contents.h
@@ -238,6 +238,10 @@ class AwContents : public FindHelper::Listener,
const GURL& origin,
const base::Callback<void(bool)>& callback) override;
void CancelMIDISysexPermissionRequests(const GURL& origin) override;
+ void RequestSensorPermission(
+ const GURL& origin,
+ const base::Callback<void(bool)>& callback) override;
+ void CancelSensorPermissionRequests(const GURL& origin) override;
// Find-in-page API and related methods.
void FindAllAsync(JNIEnv* env,

Powered by Google App Engine
This is Rietveld 408576698