Bug 1578506 - Add better monitor information to about:support. r=aosmond

Differential Revision: https://phabricator.services.mozilla.com/D47110
This commit is contained in:
Kris Taeleman
2019-10-03 23:43:35 +00:00
parent 33e6664d8b
commit 820442505c
14 changed files with 188 additions and 26 deletions

View File

@@ -16,6 +16,7 @@
#include <prthread.h>
#include "AndroidBridge.h"
#include "AndroidBridgeUtilities.h"
#include "AndroidRect.h"
#include "nsAlertsUtils.h"
#include "nsAppShell.h"
#include "nsOSHelperAppService.h"
@@ -291,6 +292,16 @@ void AndroidBridge::GetExtensionFromMimeType(const nsACString& aMimeType,
}
}
gfx::Rect AndroidBridge::getScreenSize()
{
ALOG_BRIDGE("AndroidBridge::getScreenSize");
java::sdk::Rect::LocalRef screenrect = GeckoAppShell::GetScreenSize();
gfx::Rect screensize(screenrect->Left(), screenrect->Top(), screenrect->Width(), screenrect->Height());
return screensize;
}
int AndroidBridge::GetScreenDepth() {
ALOG_BRIDGE("%s", __PRETTY_FUNCTION__);