Bug 1287946 - Update existing code to use mozilla::java; r=me

This commit is contained in:
Jim Chen
2016-07-21 00:42:26 -04:00
parent 550a6c6f80
commit 0ea27022be
67 changed files with 209 additions and 218 deletions

View File

@@ -21,7 +21,7 @@ class AndroidInputStream : public nsIInputStream
{
public:
AndroidInputStream(jni::Object::Param connection) {
mBridgeInputStream = widget::GeckoAppShell::CreateInputStream(connection);
mBridgeInputStream = java::GeckoAppShell::CreateInputStream(connection);
mBridgeChannel = AndroidBridge::ChannelCreate(mBridgeInputStream);
}
@@ -71,7 +71,7 @@ private:
mConnection = aConnection;
SetURI(aURI);
auto type = widget::GeckoAppShell::ConnectionGetMimeType(mConnection);
auto type = java::GeckoAppShell::ConnectionGetMimeType(mConnection);
if (type) {
SetContentType(type->ToCString());
}
@@ -82,7 +82,7 @@ public:
nsCString spec;
aURI->GetSpec(spec);
auto connection = widget::GeckoAppShell::GetConnection(spec);
auto connection = java::GeckoAppShell::GetConnection(spec);
return connection ? new AndroidChannel(aURI, connection) : nullptr;
}