зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1352177 - 3. Update existing binding config files; r=snorp
Update the existing binding config files to the new format. Bundle is no longer used so Bundle-classes.txt is removed.
This commit is contained in:
Родитель
6723035d5c
Коммит
4ad848635e
|
@ -359,11 +359,9 @@ ConvertRectArrayToJavaRectFArray(const nsTArray<LayoutDeviceIntRect>& aRects,
|
|||
for (size_t i = 0; i < length; i++) {
|
||||
LayoutDeviceIntRect tmp = aRects[i] + aOffset;
|
||||
|
||||
sdk::RectF::LocalRef rect(rects.Env());
|
||||
sdk::RectF::New(tmp.x / aScale.scale, tmp.y / aScale.scale,
|
||||
(tmp.x + tmp.width) / aScale.scale,
|
||||
(tmp.y + tmp.height) / aScale.scale,
|
||||
&rect);
|
||||
auto rect = sdk::RectF::New(tmp.x / aScale.scale, tmp.y / aScale.scale,
|
||||
(tmp.x + tmp.width) / aScale.scale,
|
||||
(tmp.y + tmp.height) / aScale.scale);
|
||||
rects->SetElement(i, rect);
|
||||
}
|
||||
return rects;
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
android.graphics.Rect
|
||||
android.graphics.RectF
|
||||
[android.graphics.Rect]
|
||||
[android.graphics.RectF]
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
android.os.Bundle
|
|
@ -1 +1,3 @@
|
|||
android.view.KeyEvent
|
||||
# We only use constants from KeyEvent
|
||||
[android.view.KeyEvent = skip:true]
|
||||
<field> = skip:false
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
android.media.MediaCodec
|
||||
android.media.MediaCodec$BufferInfo
|
||||
android.media.MediaCodec$CryptoInfo
|
||||
android.media.MediaCrypto
|
||||
android.media.MediaDrm$KeyStatus
|
||||
android.media.MediaFormat
|
||||
[android.media.MediaCodec = exceptionMode:nsresult]
|
||||
[android.media.MediaCodec$BufferInfo = exceptionMode:nsresult]
|
||||
[android.media.MediaCodec$CryptoInfo = exceptionMode:nsresult]
|
||||
|
||||
# We only use constants from KeyStatus
|
||||
[android.media.MediaDrm$KeyStatus = skip:true]
|
||||
<field> = skip:false
|
||||
|
||||
[android.media.MediaFormat = exceptionMode:nsresult]
|
||||
|
|
|
@ -1 +1,3 @@
|
|||
android.view.MotionEvent
|
||||
# We only use constants from MotionEvent
|
||||
[android.view.MotionEvent = skip:true]
|
||||
<field> = skip:false
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
android.graphics.SurfaceTexture
|
||||
android.view.Surface
|
||||
[android.graphics.SurfaceTexture = exceptionMode:nsresult]
|
||||
[android.view.Surface = exceptionMode:nsresult]
|
||||
|
|
|
@ -1 +1 @@
|
|||
android.view.ViewConfiguration
|
||||
[android.view.ViewConfiguration = exceptionMode:nsresult]
|
||||
|
|
|
@ -11,7 +11,6 @@ with Files("**"):
|
|||
# this list and ensure that $(stem)-classes.txt exists in this directory.
|
||||
generated = [
|
||||
'AndroidRect',
|
||||
'Bundle',
|
||||
'KeyEvent',
|
||||
'MediaCodec',
|
||||
'MotionEvent',
|
||||
|
|
|
@ -73,10 +73,10 @@ nsScreenAndroid::GetRect(int32_t *outLeft, int32_t *outTop, int32_t *outWidth, i
|
|||
}
|
||||
|
||||
java::sdk::Rect::LocalRef rect = java::GeckoAppShell::GetScreenSize();
|
||||
rect->Left(outLeft);
|
||||
rect->Top(outTop);
|
||||
rect->Width(outWidth);
|
||||
rect->Height(outHeight);
|
||||
*outLeft = rect->Left();
|
||||
*outTop = rect->Top();
|
||||
*outWidth = rect->Width();
|
||||
*outHeight = rect->Height();
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче