mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug 1694481 - Remove unused methods in GeckoAppShell. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D106183
This commit is contained in:
parent
111343732d
commit
eac41f1807
@ -903,24 +903,6 @@ public class GeckoAppShell {
|
||||
}
|
||||
}
|
||||
|
||||
@WrapForJNI(calledFrom = "gecko")
|
||||
private static void showNotification(final String name, final String cookie, final String title,
|
||||
final String text, final String host,
|
||||
final String imageUrl, final String persistentData) {
|
||||
if (persistentData == null) {
|
||||
getNotificationListener().showNotification(name, cookie, title, text, host, imageUrl);
|
||||
return;
|
||||
}
|
||||
|
||||
getNotificationListener().showPersistentNotification(
|
||||
name, cookie, title, text, host, imageUrl, persistentData);
|
||||
}
|
||||
|
||||
@WrapForJNI(calledFrom = "gecko")
|
||||
private static void closeNotification(final String name) {
|
||||
getNotificationListener().closeNotification(name);
|
||||
}
|
||||
|
||||
public static synchronized void setDisplayDpiOverride(@Nullable final Integer dpi) {
|
||||
if (dpi == null) {
|
||||
return;
|
||||
|
@ -2059,21 +2059,8 @@ nsLocalFile::Launch() {
|
||||
|
||||
return giovfs->ShowURIForInput(mPath);
|
||||
#elif defined(MOZ_WIDGET_ANDROID)
|
||||
// Try to get a mimetype, if this fails just use the file uri alone
|
||||
nsresult rv;
|
||||
nsAutoCString type;
|
||||
nsCOMPtr<nsIMIMEService> mimeService(
|
||||
do_GetService("@mozilla.org/mime;1", &rv));
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
rv = mimeService->GetTypeFromFile(this, type);
|
||||
}
|
||||
|
||||
nsAutoCString fileUri = "file://"_ns + mPath;
|
||||
return java::GeckoAppShell::OpenUriExternal(NS_ConvertUTF8toUTF16(fileUri),
|
||||
NS_ConvertUTF8toUTF16(type),
|
||||
u""_ns, u""_ns, u""_ns, u""_ns)
|
||||
? NS_OK
|
||||
: NS_ERROR_FAILURE;
|
||||
// Not supported on GeckoView
|
||||
return NS_ERROR_NOT_IMPLEMENTED;
|
||||
#elif defined(MOZ_WIDGET_COCOA)
|
||||
CFURLRef url;
|
||||
if (NS_SUCCEEDED(GetCFURL(&url))) {
|
||||
|
Loading…
Reference in New Issue
Block a user