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

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

Issue 11958016: Fix JELLY_BEAN SDK build break (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 | no next file » | 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/accessibility/AccessibilityInjector.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/accessibility/AccessibilityInjector.java b/content/public/android/java/src/org/chromium/content/browser/accessibility/AccessibilityInjector.java
index 0a046bf34dc58f813ff8d4ec99a9518c15bb66d9..d8777987688058e2829f363f6372416f7c1d6774 100644
--- a/content/public/android/java/src/org/chromium/content/browser/accessibility/AccessibilityInjector.java
+++ b/content/public/android/java/src/org/chromium/content/browser/accessibility/AccessibilityInjector.java
@@ -56,6 +56,10 @@ public class AccessibilityInjector extends WebContentsObserverAndroid {
private final String mAccessibilityScreenReaderUrl;
+ // To support building against the JELLY_BEAN and not JELLY_BEAN_MR1 SDK we need to add this
+ // constant here.
+ private static final int FEEDBACK_BRAILLE = 0x00000020;
+
// constants for determining script injection strategy
private static final int ACCESSIBILITY_SCRIPT_INJECTION_UNDEFINED = -1;
private static final int ACCESSIBILITY_SCRIPT_INJECTION_OPTED_OUT = 0;
@@ -171,8 +175,7 @@ public class AccessibilityInjector extends WebContentsObserverAndroid {
// this script.
List<AccessibilityServiceInfo> services =
getAccessibilityManager().getEnabledAccessibilityServiceList(
- AccessibilityServiceInfo.FEEDBACK_BRAILLE |
- AccessibilityServiceInfo.FEEDBACK_SPOKEN);
+ FEEDBACK_BRAILLE | AccessibilityServiceInfo.FEEDBACK_SPOKEN);
return getAccessibilityManager().isEnabled() &&
mContentViewCore.getContentSettings() != null &&
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698