Bug 697641, part 4: Pass sensor events from Android to Gecko. r=cjones

This commit is contained in:
Sinker Li
2012-01-16 14:38:00 +01:00
parent 81c7f5ce72
commit 2379acdfce
4 changed files with 42 additions and 4 deletions

View File

@@ -440,6 +440,7 @@ public:
double X() { return mX; }
double Y() { return mY; }
double Z() { return mZ; }
double Distance() { return mDistance; }
const nsIntRect& Rect() { return mRect; }
nsAString& Characters() { return mCharacters; }
nsAString& CharactersExtra() { return mCharactersExtra; }
@@ -470,6 +471,7 @@ protected:
int mRangeForeColor, mRangeBackColor;
double mAlpha, mBeta, mGamma;
double mX, mY, mZ;
double mDistance;
nsString mCharacters, mCharactersExtra;
nsRefPtr<nsGeoPosition> mGeoPosition;
nsRefPtr<nsGeoPositionAddress> mGeoAddress;
@@ -492,6 +494,7 @@ protected:
static jfieldID jXField;
static jfieldID jYField;
static jfieldID jZField;
static jfieldID jDistanceField;
static jfieldID jRectField;
static jfieldID jNativeWindowField;
@@ -534,6 +537,7 @@ public:
VIEWPORT = 20,
TILE_SIZE = 21,
VISITED = 22,
PROXIMITY_EVENT = 23,
dummy_java_enum_list_end
};