diff options
author | benm@chromium.org <benm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-24 12:25:12 +0000 |
---|---|---|
committer | benm@chromium.org <benm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-24 12:25:12 +0000 |
commit | dcf07635e65e91b0ed1df7a84cf5936f241b6b71 (patch) | |
tree | 03db1ba1b5841e43ab8cbd3c02f4c373dc3ba4a9 /android_webview | |
parent | 5249f0d5a1243fe313447fc88a9007ae5fea2419 (diff) | |
download | chromium_src-dcf07635e65e91b0ed1df7a84cf5936f241b6b71.zip chromium_src-dcf07635e65e91b0ed1df7a84cf5936f241b6b71.tar.gz chromium_src-dcf07635e65e91b0ed1df7a84cf5936f241b6b71.tar.bz2 |
[Android] Add AwNativeWindow class to android_webview.
Currently NativeWindow is used for showing the file picker and for
providing a context to show JS modal dialogs. We only require the
modal dialog functionality in android_webview, so leave the file
picker functions as stubs.
Android trybots looked good during review, and only touched Java. No need for CQ to run other bots.
NOTRY=true
Review URL: https://chromiumcodereview.appspot.com/10972006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158260 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'android_webview')
-rw-r--r-- | android_webview/java/src/org/chromium/android_webview/AwNativeWindow.java | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/android_webview/java/src/org/chromium/android_webview/AwNativeWindow.java b/android_webview/java/src/org/chromium/android_webview/AwNativeWindow.java new file mode 100644 index 0000000..31f77dc --- /dev/null +++ b/android_webview/java/src/org/chromium/android_webview/AwNativeWindow.java @@ -0,0 +1,28 @@ +// Copyright (c) 2012 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package org.chromium.android_webview; + +import android.content.Context; +import android.content.Intent; + +import org.chromium.ui.gfx.NativeWindow; + +public class AwNativeWindow extends NativeWindow { + public AwNativeWindow(Context context) { + super(context); + } + + // The following stubs are required for displaying a file picker which is + // unsupported in the WebView. + public void sendBroadcast(Intent intent) { + } + + public boolean showIntent(Intent intent, IntentCallback callback, String error) { + return false; + } + + public void showError(String error) { + } +} |