incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [6/40] git commit: capture api passing tests, + more contacts tests passing
Date Fri, 06 Apr 2012 01:20:42 GMT
capture api passing tests, + more contacts tests passing


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/commit/6dc6f3ae
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/6dc6f3ae
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/6dc6f3ae

Branch: refs/heads/master
Commit: 6dc6f3ae18754abb1e5ffae7710a5c1e0df585af
Parents: 3038371
Author: Jesse MacFadyen <purplecabbage@gmail.com>
Authored: Wed Apr 4 01:35:20 2012 -0700
Committer: Jesse MacFadyen <purplecabbage@gmail.com>
Committed: Wed Apr 4 01:35:20 2012 -0700

----------------------------------------------------------------------
 lib/wp7/exec.js     |   32 +++++++++++++++++++++++++++++++-
 lib/wp7/platform.js |   10 +++++++++-
 2 files changed, 40 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/6dc6f3ae/lib/wp7/exec.js
----------------------------------------------------------------------
diff --git a/lib/wp7/exec.js b/lib/wp7/exec.js
index 8218b1d..09632df 100644
--- a/lib/wp7/exec.js
+++ b/lib/wp7/exec.js
@@ -66,6 +66,36 @@ var MonkeyPatch =
 			// note, chuncked mode is not supported in WP7 currently
 			return {filePath:arg[0],server:arg[1],fileKey:arg[2],fileName:arg[3],mimeType:arg[4],params:arg[5],debug:arg[6]};
 		}
+	},
+	Contacts:
+	{
+		"remove":function(arg) // actually caught by our other case inside exec
+		{
+			return arg[0];
+		},
+		"save":function(arg) // actually caught by our other case inside exec
+		{
+			return arg[0];
+		},
+		"search":function(arg)
+		{
+			return {fields:arg[0],options:arg[1]};
+		}
+	},
+	Capture:
+	{
+		captureAudio:function(arg)// actually caught by our other case inside exec
+		{
+			return arg[0];	
+		},
+		captureVideo:function(arg)// actually caught by our other case inside exec
+		{
+			return arg[0];	
+		},
+		captureImage:function(arg)// actually caught by our other case inside exec
+		{
+			return arg[0];	
+		}
 	}
 	
 };
@@ -82,7 +112,7 @@ module.exports = function(success, fail, service, action, args)
 	
 	 if(MonkeyPatch[service] && MonkeyPatch[service][action])
 	 {
-		console.log("MonkeyPatching " + service + "." + action);
+		//console.log("MonkeyPatching " + service + "." + action);
 		args =  MonkeyPatch[service][action](args);
 	 }
 	 else if(args && args.length && args.length == 1)

http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/6dc6f3ae/lib/wp7/platform.js
----------------------------------------------------------------------
diff --git a/lib/wp7/platform.js b/lib/wp7/platform.js
index f98bd1f..0cc8ddf 100644
--- a/lib/wp7/platform.js
+++ b/lib/wp7/platform.js
@@ -225,10 +225,18 @@ if(!window.localStorage)
         FileError: { 
             path: "cordova/plugin/FileError"
         },
+        MediaError: {
+            path: "cordova/plugin/MediaError"
+        },
         navigator: {
             children: {
                 device: {
-                    path: "cordova/plugin/wp7/device"
+                    path: "cordova/plugin/wp7/device",
+					children:{
+						capture:{
+							path:"cordova/plugin/capture"	
+						}
+					}
                 },
 				console: {
 					path: "cordova/plugin/wp7/console"


Mime
View raw message