Index: content/public/android/java/src/org/chromium/content/browser/JellyBeanContentView.java |
diff --git a/content/public/android/java/src/org/chromium/content/browser/JellyBeanContentView.java b/content/public/android/java/src/org/chromium/content/browser/JellyBeanContentView.java |
new file mode 100644 |
index 0000000000000000000000000000000000000000..289f869f5bba678b4fe1558ee32bf5de7455e054 |
--- /dev/null |
+++ b/content/public/android/java/src/org/chromium/content/browser/JellyBeanContentView.java |
@@ -0,0 +1,30 @@ |
+// 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.content.browser; |
+ |
+import android.content.Context; |
+import android.os.Bundle; |
+import android.util.AttributeSet; |
+import android.view.View; |
+import android.view.accessibility.AccessibilityNodeInfo; |
+ |
+/** |
+ * A version of {@link ContentView} that supports JellyBean features. |
+ */ |
+class JellyBeanContentView extends ContentView { |
+ JellyBeanContentView(Context context, int nativeWebContents, AttributeSet attrs, int defStyle, |
+ int personality) { |
+ super(context, nativeWebContents, attrs, defStyle, personality); |
+ } |
+ |
+ @Override |
+ public boolean performAccessibilityAction(int action, Bundle arguments) { |
+ if (getContentViewCore().supportsAccessibilityAction(action)) { |
+ return getContentViewCore().performAccessibilityAction(action, arguments); |
+ } |
+ |
+ return super.performAccessibilityAction(action, arguments); |
+ } |
+} |