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

Side by Side Diff: android_webview/native/aw_contents.h

Issue 2458453002: [sensors] Add Permission guard to the generic sensor apis.
Patch Set: Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ 5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
6 #define ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ 6 #define ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include <list> 10 #include <list>
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 void CancelProtectedMediaIdentifierPermissionRequests( 231 void CancelProtectedMediaIdentifierPermissionRequests(
232 const GURL& origin) override; 232 const GURL& origin) override;
233 void RequestGeolocationPermission( 233 void RequestGeolocationPermission(
234 const GURL& origin, 234 const GURL& origin,
235 const base::Callback<void(bool)>& callback) override; 235 const base::Callback<void(bool)>& callback) override;
236 void CancelGeolocationPermissionRequests(const GURL& origin) override; 236 void CancelGeolocationPermissionRequests(const GURL& origin) override;
237 void RequestMIDISysexPermission( 237 void RequestMIDISysexPermission(
238 const GURL& origin, 238 const GURL& origin,
239 const base::Callback<void(bool)>& callback) override; 239 const base::Callback<void(bool)>& callback) override;
240 void CancelMIDISysexPermissionRequests(const GURL& origin) override; 240 void CancelMIDISysexPermissionRequests(const GURL& origin) override;
241 void RequestSensorPermission(
242 const GURL& origin,
243 const base::Callback<void(bool)>& callback) override;
244 void CancelSensorPermissionRequests(const GURL& origin) override;
241 245
242 // Find-in-page API and related methods. 246 // Find-in-page API and related methods.
243 void FindAllAsync(JNIEnv* env, 247 void FindAllAsync(JNIEnv* env,
244 const base::android::JavaParamRef<jobject>& obj, 248 const base::android::JavaParamRef<jobject>& obj,
245 const base::android::JavaParamRef<jstring>& search_string); 249 const base::android::JavaParamRef<jstring>& search_string);
246 void FindNext(JNIEnv* env, 250 void FindNext(JNIEnv* env,
247 const base::android::JavaParamRef<jobject>& obj, 251 const base::android::JavaParamRef<jobject>& obj,
248 jboolean forward); 252 jboolean forward);
249 void ClearMatches(JNIEnv* env, 253 void ClearMatches(JNIEnv* env,
250 const base::android::JavaParamRef<jobject>& obj); 254 const base::android::JavaParamRef<jobject>& obj);
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 GLViewRendererManager::Key renderer_manager_key_; 375 GLViewRendererManager::Key renderer_manager_key_;
372 376
373 DISALLOW_COPY_AND_ASSIGN(AwContents); 377 DISALLOW_COPY_AND_ASSIGN(AwContents);
374 }; 378 };
375 379
376 bool RegisterAwContents(JNIEnv* env); 380 bool RegisterAwContents(JNIEnv* env);
377 381
378 } // namespace android_webview 382 } // namespace android_webview
379 383
380 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ 384 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698