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

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

Issue 652603004: Fix Java Checkstyle issues. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename R to matrixR in DeviceSensors 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/input/GamepadDevice.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/input/GamepadDevice.java b/content/public/android/java/src/org/chromium/content/browser/input/GamepadDevice.java
index 9665dc0feb8ccbb31e22dabe8bec43255a6890f8..22a43d5049920012b2862e684b4c7e19f60524c4 100644
--- a/content/public/android/java/src/org/chromium/content/browser/input/GamepadDevice.java
+++ b/content/public/android/java/src/org/chromium/content/browser/input/GamepadDevice.java
@@ -32,7 +32,7 @@ class GamepadDevice {
// should correspond to "down" or "right".
private final float[] mAxisValues = new float[CanonicalAxisIndex.COUNT];
- private final float[] mButtonsValues = new float[CanonicalButtonIndex.COUNT];;
+ private final float[] mButtonsValues = new float[CanonicalButtonIndex.COUNT];
// When the user agent recognizes the attached inputDevice, it is recommended
// that it be remapped to a canonical ordering when possible. Devices that are
@@ -76,37 +76,51 @@ class GamepadDevice {
/**
* @return Device Id of the gamepad device.
*/
- public int getId() { return mDeviceId; }
+ public int getId() {
+ return mDeviceId;
+ }
/**
* @return Mapping status of the gamepad device.
*/
- public boolean isStandardGamepad() { return mIsStandardGamepad; }
+ public boolean isStandardGamepad() {
+ return mIsStandardGamepad;
+ }
/**
* @return Device name of the gamepad device.
*/
- public String getName() { return mDeviceName; }
+ public String getName() {
+ return mDeviceName;
+ }
/**
* @return Device index of the gamepad device.
*/
- public int getIndex() { return mDeviceIndex; }
+ public int getIndex() {
+ return mDeviceIndex;
+ }
/**
* @return The timestamp when the gamepad device was last interacted.
*/
- public long getTimestamp() { return mTimestamp; }
+ public long getTimestamp() {
+ return mTimestamp;
+ }
/**
* @return The axes state of the gamepad device.
*/
- public float[] getAxes() { return mAxisValues; }
+ public float[] getAxes() {
+ return mAxisValues;
+ }
/**
* @return The buttons state of the gamepad device.
*/
- public float[] getButtons() { return mButtonsValues; }
+ public float[] getButtons() {
+ return mButtonsValues;
+ }
/**
* Reset the axes and buttons data of the gamepad device everytime gamepad data access is

Powered by Google App Engine
This is Rietveld 408576698