]> khamidou — GitHub mirrors - electron.git/commitdiff
URL => Url, ID => Id in coffee script.
authorCheng Zhao <zcbenz@gmail.com>
Fri, 3 May 2013 07:21:41 +0000 (15:21 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Fri, 3 May 2013 07:36:25 +0000 (15:36 +0800)
browser/api/atom_api_window.cc
browser/atom/rpc_server.coffee
browser/default_app/main.js

index 0b00d780d7c9c7fac7f3f848d010498cab2361de..b2fa5f2d51503351528d4c045b45ad067b52a4de 100644 (file)
@@ -614,11 +614,11 @@ void Window::Initialize(v8::Handle<v8::Object> target) {
   NODE_SET_PROTOTYPE_METHOD(t, "isLoading", IsLoading);
   NODE_SET_PROTOTYPE_METHOD(t, "isWaitingForResponse", IsWaitingForResponse);
   NODE_SET_PROTOTYPE_METHOD(t, "stop", Stop);
-  NODE_SET_PROTOTYPE_METHOD(t, "getRoutingID", GetRoutingID);
-  NODE_SET_PROTOTYPE_METHOD(t, "getProcessID", GetProcessID);
+  NODE_SET_PROTOTYPE_METHOD(t, "getRoutingId", GetRoutingID);
+  NODE_SET_PROTOTYPE_METHOD(t, "getProcessId", GetProcessID);
 
-  NODE_SET_PROTOTYPE_METHOD(t, "loadURL", LoadURL);
-  NODE_SET_PROTOTYPE_METHOD(t, "getURL", GetURL);
+  NODE_SET_PROTOTYPE_METHOD(t, "loadUrl", LoadURL);
+  NODE_SET_PROTOTYPE_METHOD(t, "getUrl", GetURL);
   NODE_SET_PROTOTYPE_METHOD(t, "canGoBack", CanGoBack);
   NODE_SET_PROTOTYPE_METHOD(t, "canGoForward", CanGoForward);
   NODE_SET_PROTOTYPE_METHOD(t, "canGoToOffset", CanGoToOffset);
index bbcc2f3cfa45c65a16f3e8b7017de14829cc60d0..c1fd0d434795540878b2a579e16fed24019aecff 100644 (file)
@@ -50,8 +50,8 @@ ipc.on 'ATOM_BROWSER_CURRENT_WINDOW', (event, processId, routingId) ->
   try
     windows = objectsRegistry.getAllWindows()
     for window in windows
-      break if window.getProcessID() == processId and
-               window.getRoutingID() == routingId
+      break if window.getProcessId() == processId and
+               window.getRoutingId() == routingId
     event.result = new Meta(processId, routingId, window)
   catch e
     event.result = type: 'error', value: e.message
index 721caeb619e5eecc8e23f3f5787923841ec05f09..e8daddefc1737f5508bcae726c761791452d004f 100644 (file)
@@ -21,7 +21,7 @@ ipc.on('sync-message', function(event, process_id, routing_id) {
 
 atom.browserMainParts.preMainMessageLoopRun = function() {
   mainWindow = new Window({ width: 800, height: 600 });
-  mainWindow.loadURL('file://' + __dirname + '/index.html');
+  mainWindow.loadUrl('file://' + __dirname + '/index.html');
 
   mainWindow.on('page-title-updated', function(event, title) {
     event.preventDefault();