Bug 1578506 - Add better monitor information to about:support. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D47110
This commit is contained in:
@@ -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__);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user