Bug 1131470 - Part 2: Update screen configuration HAL to report orientation angle. r=snorp,mwu

This commit is contained in:
William Chen
2015-08-18 14:55:15 -07:00
parent ecf84fcf22
commit 8b4785e7f6
14 changed files with 85 additions and 5 deletions

View File

@@ -562,6 +562,7 @@ public:
bool IsWifi() { return mIsWifi; }
int DHCPGateway() { return mDHCPGateway; }
short ScreenOrientation() { return mScreenOrientation; }
short ScreenAngle() { return mScreenAngle; }
RefCountedJavaObject* ByteBuffer() { return mByteBuffer; }
int Width() { return mWidth; }
int Height() { return mHeight; }
@@ -611,6 +612,7 @@ protected:
bool mIsWifi;
int mDHCPGateway;
short mScreenOrientation;
short mScreenAngle;
nsRefPtr<RefCountedJavaObject> mByteBuffer;
int mWidth, mHeight;
int mID;
@@ -696,6 +698,7 @@ protected:
static jfieldID jDHCPGatewayField;
static jfieldID jScreenOrientationField;
static jfieldID jScreenAngleField;
static jfieldID jByteBufferField;
static jfieldID jWidthField;