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

Side by Side Diff: android_webview/java/src/org/chromium/android_webview/AwContents.java

Issue 268543005: Revert of Handle media access permission request (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 package org.chromium.android_webview; 5 package org.chromium.android_webview;
6 6
7 import android.annotation.SuppressLint; 7 import android.annotation.SuppressLint;
8 import android.app.Activity; 8 import android.app.Activity;
9 import android.content.ComponentCallbacks2; 9 import android.content.ComponentCallbacks2;
10 import android.content.Context; 10 import android.content.Context;
(...skipping 19 matching lines...) Expand all
30 import android.view.accessibility.AccessibilityNodeInfo; 30 import android.view.accessibility.AccessibilityNodeInfo;
31 import android.view.accessibility.AccessibilityNodeProvider; 31 import android.view.accessibility.AccessibilityNodeProvider;
32 import android.view.inputmethod.EditorInfo; 32 import android.view.inputmethod.EditorInfo;
33 import android.view.inputmethod.InputConnection; 33 import android.view.inputmethod.InputConnection;
34 import android.webkit.GeolocationPermissions; 34 import android.webkit.GeolocationPermissions;
35 import android.webkit.ValueCallback; 35 import android.webkit.ValueCallback;
36 import android.widget.OverScroller; 36 import android.widget.OverScroller;
37 37
38 import com.google.common.annotations.VisibleForTesting; 38 import com.google.common.annotations.VisibleForTesting;
39 39
40 import org.chromium.android_webview.permission.AwPermissionRequest;
41 import org.chromium.base.CalledByNative; 40 import org.chromium.base.CalledByNative;
42 import org.chromium.base.JNINamespace; 41 import org.chromium.base.JNINamespace;
43 import org.chromium.base.ThreadUtils; 42 import org.chromium.base.ThreadUtils;
44 import org.chromium.components.navigation_interception.InterceptNavigationDelega te; 43 import org.chromium.components.navigation_interception.InterceptNavigationDelega te;
45 import org.chromium.components.navigation_interception.NavigationParams; 44 import org.chromium.components.navigation_interception.NavigationParams;
46 import org.chromium.content.browser.ContentSettings; 45 import org.chromium.content.browser.ContentSettings;
47 import org.chromium.content.browser.ContentViewClient; 46 import org.chromium.content.browser.ContentViewClient;
48 import org.chromium.content.browser.ContentViewCore; 47 import org.chromium.content.browser.ContentViewCore;
49 import org.chromium.content.browser.ContentViewStatics; 48 import org.chromium.content.browser.ContentViewStatics;
50 import org.chromium.content.browser.LoadUrlParams; 49 import org.chromium.content.browser.LoadUrlParams;
(...skipping 1834 matching lines...) Expand 10 before | Expand all | Expand 10 after
1885 mContentsClient.onGeolocationPermissionsShowPrompt( 1884 mContentsClient.onGeolocationPermissionsShowPrompt(
1886 origin, new AwGeolocationCallback()); 1885 origin, new AwGeolocationCallback());
1887 } 1886 }
1888 1887
1889 @CalledByNative 1888 @CalledByNative
1890 private void onGeolocationPermissionsHidePrompt() { 1889 private void onGeolocationPermissionsHidePrompt() {
1891 mContentsClient.onGeolocationPermissionsHidePrompt(); 1890 mContentsClient.onGeolocationPermissionsHidePrompt();
1892 } 1891 }
1893 1892
1894 @CalledByNative 1893 @CalledByNative
1895 private void onPermissionRequest(AwPermissionRequest awPermissionRequest) {
1896 mContentsClient.onPermissionRequest(awPermissionRequest);
1897 }
1898
1899 @CalledByNative
1900 private void onPermissionRequestCanceled(AwPermissionRequest awPermissionReq uest) {
1901 mContentsClient.onPermissionRequestCanceled(awPermissionRequest);
1902 }
1903
1904 @CalledByNative
1905 public void onFindResultReceived(int activeMatchOrdinal, int numberOfMatches , 1894 public void onFindResultReceived(int activeMatchOrdinal, int numberOfMatches ,
1906 boolean isDoneCounting) { 1895 boolean isDoneCounting) {
1907 mContentsClient.onFindResultReceived(activeMatchOrdinal, numberOfMatches , isDoneCounting); 1896 mContentsClient.onFindResultReceived(activeMatchOrdinal, numberOfMatches , isDoneCounting);
1908 } 1897 }
1909 1898
1910 @CalledByNative 1899 @CalledByNative
1911 public void onNewPicture() { 1900 public void onNewPicture() {
1912 // Don't call capturePicture() here but instead defer it until the poste d task runs within 1901 // Don't call capturePicture() here but instead defer it until the poste d task runs within
1913 // the callback helper, to avoid doubling back into the renderer composi tor in the middle 1902 // the callback helper, to avoid doubling back into the renderer composi tor in the middle
1914 // of the notification it is sending up to here. 1903 // of the notification it is sending up to here.
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
2154 2143
2155 private native void nativeSetJsOnlineProperty(long nativeAwContents, boolean networkUp); 2144 private native void nativeSetJsOnlineProperty(long nativeAwContents, boolean networkUp);
2156 2145
2157 private native void nativeTrimMemoryOnRenderThread(long nativeAwContents, in t level, 2146 private native void nativeTrimMemoryOnRenderThread(long nativeAwContents, in t level,
2158 boolean visible); 2147 boolean visible);
2159 2148
2160 private native void nativeCreatePdfExporter(long nativeAwContents, AwPdfExpo rter awPdfExporter); 2149 private native void nativeCreatePdfExporter(long nativeAwContents, AwPdfExpo rter awPdfExporter);
2161 2150
2162 private native void nativeClearClientCertPreferences(long nativeAwContents); 2151 private native void nativeClearClientCertPreferences(long nativeAwContents);
2163 } 2152 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698