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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/ContentView.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
« no previous file with comments | « no previous file | content/public/android/java/src/org/chromium/content/browser/JellyBeanContentView.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/android/java/src/org/chromium/content/browser/ContentView.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentView.java b/content/public/android/java/src/org/chromium/content/browser/ContentView.java
index 6e796fa7d9d5c02abbc852f88db1d9249bff4987..24aaf9f0975e51784c6d5511ed4102922cd02fdb 100644
--- a/content/public/android/java/src/org/chromium/content/browser/ContentView.java
+++ b/content/public/android/java/src/org/chromium/content/browser/ContentView.java
@@ -143,8 +143,12 @@ public class ContentView extends FrameLayout implements ContentViewCore.Internal
private static ContentView newInstance(Context context, int nativeWebContents,
AttributeSet attrs, int defStyle, int personality) {
- // TODO(dtrainor): Upstream JellyBean version of AccessibilityInjector when SDK is 16.
- return new ContentView(context, nativeWebContents, attrs, defStyle, personality);
+ if (Build.VERSION.SDK_INT < Build.VERSION_CODES.JELLY_BEAN) {
+ return new ContentView(context, nativeWebContents, attrs, defStyle, personality);
+ } else {
+ return new JellyBeanContentView(context, nativeWebContents, attrs, defStyle,
+ personality);
+ }
}
protected ContentView(Context context, int nativeWebContents, AttributeSet attrs, int defStyle,
« no previous file with comments | « no previous file | content/public/android/java/src/org/chromium/content/browser/JellyBeanContentView.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698