am b2601359: add interface to return if (x/y) is a plugin

* commit 'b2601359ea8d9675266c6b72b7209b1f6fae0b89':
  add interface to return if (x/y) is a plugin
diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java
index e3b0a60..0a32c9e 100644
--- a/core/java/android/webkit/WebView.java
+++ b/core/java/android/webkit/WebView.java
@@ -6723,6 +6723,14 @@
         }
     }
 
+    /**
+     * Returns true if x/y in content coordinates corresponds to a plugin.
+     */
+    boolean isPluginAt(int x, int y) {
+        return nativePointInNavCache(x, y, mNavSlop) &&
+                nativeCacheHitIsPlugin();
+    }
+
     /*
      * Return true if the view (Plugin) is fully visible and maximized inside
      * the WebView.
@@ -8150,6 +8158,7 @@
     }
 
     private native int nativeCacheHitFramePointer();
+    private native boolean  nativeCacheHitIsPlugin();
     private native Rect nativeCacheHitNodeBounds();
     private native int nativeCacheHitNodePointer();
     /* package */ native void nativeClearCursor();