Use camelCase for sendMessageToJava

This commit is contained in:
Mark Finkle 2011-10-13 16:47:29 -04:00
Родитель e4f5c0c426
Коммит 6f83fa95e9
1 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -11,7 +11,7 @@ function dump(a) {
Cc["@mozilla.org/consoleservice;1"].getService(Ci.nsIConsoleService).logStringMessage(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); let bridge = Cc["@mozilla.org/android/bridge;1"].getService(Ci.nsIAndroidBridge);
bridge.handleGeckoMessage(JSON.stringify(aMessage)); bridge.handleGeckoMessage(JSON.stringify(aMessage));
} }
@ -222,7 +222,7 @@ Tab.prototype = {
} }
}; };
SendMessageToJava(message); sendMessageToJava(message);
}, },
onLocationChange: function(aWebProgress, aRequest, aLocationURI) { onLocationChange: function(aWebProgress, aRequest, aLocationURI) {
@ -242,7 +242,7 @@ Tab.prototype = {
} }
}; };
SendMessageToJava(message); sendMessageToJava(message);
if (uri == Services.prefs.getCharPref("browser.last.uri")) { if (uri == Services.prefs.getCharPref("browser.last.uri")) {
let showMessage = { let showMessage = {
@ -252,7 +252,7 @@ Tab.prototype = {
} }
}; };
SendMessageToJava(showMessage); sendMessageToJava(showMessage);
} }
} catch (e) { } catch (e) {
dump("onLocationChange throws " + e); dump("onLocationChange throws " + e);
@ -274,7 +274,7 @@ Tab.prototype = {
} }
}; };
SendMessageToJava(message); sendMessageToJava(message);
}, },
onStatusChange: function(aBrowser, aWebProgress, aRequest, aStatus, aMessage) { onStatusChange: function(aBrowser, aWebProgress, aRequest, aStatus, aMessage) {
dump("progressListener.onStatusChange"); dump("progressListener.onStatusChange");
@ -304,7 +304,7 @@ var BrowserEventHandler = {
switch (aEvent.type) { switch (aEvent.type) {
case "DOMContentLoaded": { case "DOMContentLoaded": {
let browser = BrowserApp.getBrowserForDocument(aEvent.target); let browser = BrowserApp.getBrowserForDocument(aEvent.target);
SendMessageToJava({ sendMessageToJava({
gecko: { gecko: {
type: "DOMContentLoaded", type: "DOMContentLoaded",
windowID: 0, windowID: 0,