From 8cad413fe902010140cf20aad47c2f4e7a51f8d2 Mon Sep 17 00:00:00 2001 From: Ben Murdoch Date: Wed, 11 Jan 2012 10:56:43 +0000 Subject: Add support for HTML Media Capture "capture" attribute. Receive the value for the new "capture" attribute on HTML file pickers, and do the right thing with it. Requires changes in WebKit (I0a921be31fda79a43c05da4fe22d9c808d92709c) and the framework (I494adc1274ca21ce8fe52a6c7b6b758217927e66). Bug: 5771207 Change-Id: I38dfe2df043fdba1388384dbd3b5370737eb38e5 --- src/com/android/browser/Tab.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/com/android/browser/Tab.java') diff --git a/src/com/android/browser/Tab.java b/src/com/android/browser/Tab.java index cfbd88a31..9b5a67579 100644 --- a/src/com/android/browser/Tab.java +++ b/src/com/android/browser/Tab.java @@ -1234,9 +1234,9 @@ class Tab implements PictureListener { } @Override - public void openFileChooser(ValueCallback uploadMsg, String acceptType) { + public void openFileChooser(ValueCallback uploadMsg, String acceptType, String capture) { if (mInForeground) { - mWebViewController.openFileChooser(uploadMsg, acceptType); + mWebViewController.openFileChooser(uploadMsg, acceptType, capture); } else { uploadMsg.onReceiveValue(null); } -- cgit v1.2.3