incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [4/40] git commit: Camera API
Date Fri, 06 Apr 2012 01:20:42 GMT
Camera API


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/c902b74a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/c902b74a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/c902b74a

Branch: refs/heads/master
Commit: c902b74a2997409cee04c43b935183dddaae64e8
Parents: 20af74e
Author: Jesse MacFadyen <purplecabbage@gmail.com>
Authored: Wed Apr 4 18:01:00 2012 -0700
Committer: Jesse MacFadyen <purplecabbage@gmail.com>
Committed: Wed Apr 4 18:01:00 2012 -0700

----------------------------------------------------------------------
 lib/wp7/exec.js |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/c902b74a/lib/wp7/exec.js
----------------------------------------------------------------------
diff --git a/lib/wp7/exec.js b/lib/wp7/exec.js
index b9b09ec..2079ebc 100644
--- a/lib/wp7/exec.js
+++ b/lib/wp7/exec.js
@@ -150,6 +150,14 @@ var MonkeyPatch =
 		{
 			return {message:arg[0],title:arg[1],buttonLabel:arg[2]};
 		}
+	},
+	Camera:
+	{
+		"takePicture":function(arg)
+		{
+			//"takePicture", [quality, destinationType, sourceType, targetWidth, targetHeight, encodingType]);
+			return {quality:arg[0],destinationType:arg[1],sourceType:arg[2],targetWidth:arg[3],targetHeight:arg[4],encodingType:arg[5]};
+		}
 	}
 	
 };


Mime
View raw message