Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(977)

Unified Diff: content/public/android/java/src/org/chromium/content/browser/JellyBeanContentView.java

Issue 10854070: Upstream JellyBean Accessibility Support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698