Chromium Code Reviews| Index: android_webview/java/src/org/chromium/android_webview/AwContents.java |
| diff --git a/android_webview/java/src/org/chromium/android_webview/AwContents.java b/android_webview/java/src/org/chromium/android_webview/AwContents.java |
| index 1a0acbfb9d883386d19a1026b0a087017e734252..5f0b9b7e03b17a557deca4d6d19462de0e486a00 100644 |
| --- a/android_webview/java/src/org/chromium/android_webview/AwContents.java |
| +++ b/android_webview/java/src/org/chromium/android_webview/AwContents.java |
| @@ -8,6 +8,7 @@ import android.annotation.SuppressLint; |
| import android.app.Activity; |
| import android.content.ComponentCallbacks2; |
| import android.content.Context; |
| +import android.content.Intent; |
| import android.content.res.Configuration; |
| import android.graphics.Bitmap; |
| import android.graphics.Canvas; |
| @@ -153,6 +154,11 @@ public class AwContents implements SmartClipProvider, |
| * @see View#getScrollBarStyle() |
| */ |
| int super_getScrollBarStyle(); |
| + |
| + /** |
| + * @see View#startActivityForResult(Intent, int) |
| + */ |
| + void super_startActivityForResult(Intent intent, int requestCode); |
| } |
| /** |
| @@ -2199,6 +2205,20 @@ public class AwContents implements SmartClipProvider, |
| //-------------------------------------------------------------------------------------------- |
| // View and ViewGroup method implementations |
| //-------------------------------------------------------------------------------------------- |
| + /** |
| + * Calls android.view.View#startActivityForResult. A RuntimeException will |
| + * be thrown by Android framework if startActivityForResult is called with |
| + * a non-Activity context. |
| + */ |
| + public void startActivityForResult(Intent intent, int requestCode) { |
| + mFullScreenTransitionsState.getInitialInternalAccessDelegate() |
|
boliu
2015/10/21 00:22:17
This deserves a comment of why not just mInternalA
hush (inactive)
2015/10/21 01:23:24
Done.
|
| + .super_startActivityForResult(intent, requestCode); |
| + } |
| + |
| + public void onActivityResult(int requestCode, int resultCode, Intent data) { |
| + // TODO(hush): Forward the activity result to content view core and |
| + // replace the text with translated text. |
| + } |
| /** |
| * @see android.webkit.View#onTouchEvent() |