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

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

Issue 657163004: Fix Java indentation issues. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/accessibility/BrowserAccessibilityManager.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/accessibility/BrowserAccessibilityManager.java b/content/public/android/java/src/org/chromium/content/browser/accessibility/BrowserAccessibilityManager.java
index 4e6433419f122520c7723053f933e9c1717f26a6..3d55f437f9fe3220acdc3d77c38682e9d5ccf352 100644
--- a/content/public/android/java/src/org/chromium/content/browser/accessibility/BrowserAccessibilityManager.java
+++ b/content/public/android/java/src/org/chromium/content/browser/accessibility/BrowserAccessibilityManager.java
@@ -196,22 +196,18 @@ public class BrowserAccessibilityManager {
return true;
case AccessibilityNodeInfo.ACTION_NEXT_HTML_ELEMENT: {
- if (arguments == null)
- return false;
+ if (arguments == null) return false;
String elementType = arguments.getString(
- AccessibilityNodeInfo.ACTION_ARGUMENT_HTML_ELEMENT_STRING);
- if (elementType == null)
- return false;
+ AccessibilityNodeInfo.ACTION_ARGUMENT_HTML_ELEMENT_STRING);
+ if (elementType == null) return false;
elementType = elementType.toUpperCase(Locale.US);
return jumpToElementType(elementType, true);
}
case AccessibilityNodeInfo.ACTION_PREVIOUS_HTML_ELEMENT: {
- if (arguments == null)
- return false;
+ if (arguments == null) return false;
String elementType = arguments.getString(
- AccessibilityNodeInfo.ACTION_ARGUMENT_HTML_ELEMENT_STRING);
- if (elementType == null)
- return false;
+ AccessibilityNodeInfo.ACTION_ARGUMENT_HTML_ELEMENT_STRING);
+ if (elementType == null) return false;
elementType = elementType.toUpperCase(Locale.US);
return jumpToElementType(elementType, false);
}
@@ -261,8 +257,7 @@ public class BrowserAccessibilityManager {
* web coordinates to screen coordinates.
*/
public void notifyFrameInfoInitialized() {
- if (mNotifyFrameInfoInitializedCalled)
- return;
+ if (mNotifyFrameInfoInitializedCalled) return;
mNotifyFrameInfoInitializedCalled = true;
@@ -279,16 +274,14 @@ public class BrowserAccessibilityManager {
private boolean jumpToElementType(String elementType, boolean forwards) {
int id = nativeFindElementType(mNativeObj, mAccessibilityFocusId, elementType, forwards);
- if (id == 0)
- return false;
+ if (id == 0) return false;
moveAccessibilityFocusToId(id);
return true;
}
private boolean moveAccessibilityFocusToId(int newAccessibilityFocusId) {
- if (newAccessibilityFocusId == mAccessibilityFocusId)
- return false;
+ if (newAccessibilityFocusId == mAccessibilityFocusId) return false;
mAccessibilityFocusId = newAccessibilityFocusId;
mAccessibilityFocusRect = null;
@@ -735,10 +728,10 @@ public class BrowserAccessibilityManager {
private native boolean nativeIsNodeValid(long nativeBrowserAccessibilityManagerAndroid, int id);
private native void nativeHitTest(long nativeBrowserAccessibilityManagerAndroid, int x, int y);
private native boolean nativePopulateAccessibilityNodeInfo(
- long nativeBrowserAccessibilityManagerAndroid, AccessibilityNodeInfo info, int id);
+ long nativeBrowserAccessibilityManagerAndroid, AccessibilityNodeInfo info, int id);
private native boolean nativePopulateAccessibilityEvent(
- long nativeBrowserAccessibilityManagerAndroid, AccessibilityEvent event, int id,
- int eventType);
+ long nativeBrowserAccessibilityManagerAndroid, AccessibilityEvent event, int id,
+ int eventType);
private native void nativeClick(long nativeBrowserAccessibilityManagerAndroid, int id);
private native void nativeFocus(long nativeBrowserAccessibilityManagerAndroid, int id);
private native void nativeBlur(long nativeBrowserAccessibilityManagerAndroid);

Powered by Google App Engine
This is Rietveld 408576698