mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Use camelCase for sendMessageToJava
This commit is contained in:
parent
85b033c734
commit
ab171d47d4
@ -11,7 +11,7 @@ function dump(a) {
|
||||
Cc["@mozilla.org/consoleservice;1"].getService(Ci.nsIConsoleService).logStringMessage(a);
|
||||
}
|
||||
|
||||
function SendMessageToJava(aMessage) {
|
||||
function sendMessageToJava(aMessage) {
|
||||
let bridge = Cc["@mozilla.org/android/bridge;1"].getService(Ci.nsIAndroidBridge);
|
||||
bridge.handleGeckoMessage(JSON.stringify(aMessage));
|
||||
}
|
||||
@ -222,7 +222,7 @@ Tab.prototype = {
|
||||
}
|
||||
};
|
||||
|
||||
SendMessageToJava(message);
|
||||
sendMessageToJava(message);
|
||||
},
|
||||
|
||||
onLocationChange: function(aWebProgress, aRequest, aLocationURI) {
|
||||
@ -242,7 +242,7 @@ Tab.prototype = {
|
||||
}
|
||||
};
|
||||
|
||||
SendMessageToJava(message);
|
||||
sendMessageToJava(message);
|
||||
|
||||
if (uri == Services.prefs.getCharPref("browser.last.uri")) {
|
||||
let showMessage = {
|
||||
@ -252,7 +252,7 @@ Tab.prototype = {
|
||||
}
|
||||
};
|
||||
|
||||
SendMessageToJava(showMessage);
|
||||
sendMessageToJava(showMessage);
|
||||
}
|
||||
} catch (e) {
|
||||
dump("onLocationChange throws " + e);
|
||||
@ -274,7 +274,7 @@ Tab.prototype = {
|
||||
}
|
||||
};
|
||||
|
||||
SendMessageToJava(message);
|
||||
sendMessageToJava(message);
|
||||
},
|
||||
onStatusChange: function(aBrowser, aWebProgress, aRequest, aStatus, aMessage) {
|
||||
dump("progressListener.onStatusChange");
|
||||
@ -304,7 +304,7 @@ var BrowserEventHandler = {
|
||||
switch (aEvent.type) {
|
||||
case "DOMContentLoaded": {
|
||||
let browser = BrowserApp.getBrowserForDocument(aEvent.target);
|
||||
SendMessageToJava({
|
||||
sendMessageToJava({
|
||||
gecko: {
|
||||
type: "DOMContentLoaded",
|
||||
windowID: 0,
|
||||
|
Loading…
Reference in New Issue
Block a user