You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by he...@apache.org on 2014/01/15 19:23:43 UTC

git commit: remove unrequired FFOS file

Updated Branches:
  refs/heads/dev 77f4683ca -> ab1281fb2


remove unrequired FFOS file


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/commit/ab1281fb
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/tree/ab1281fb
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/diff/ab1281fb

Branch: refs/heads/dev
Commit: ab1281fb250f2fdee05c1fe69395f56db9a77433
Parents: 77f4683
Author: Herm Wong <he...@gmail.com>
Authored: Wed Jan 15 10:23:37 2014 -0800
Committer: Herm Wong <he...@gmail.com>
Committed: Wed Jan 15 10:23:37 2014 -0800

----------------------------------------------------------------------
 src/firefoxos/camera.js | 32 --------------------------------
 1 file changed, 32 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/blob/ab1281fb/src/firefoxos/camera.js
----------------------------------------------------------------------
diff --git a/src/firefoxos/camera.js b/src/firefoxos/camera.js
deleted file mode 100644
index 270f221..0000000
--- a/src/firefoxos/camera.js
+++ /dev/null
@@ -1,32 +0,0 @@
-
-var firefoxos = require('cordova/platform');
-
-function getPicture(cameraSuccess, cameraError, cameraOptions) {
-  cameraError = cameraError || function(){};
-  var pick = new MozActivity({
-    name: "pick",
-    data: {
-      type: ["image/png", "image/jpg", "image/jpeg"]
-    }
-  });
-  pick.onerror = cameraError;
-  pick.onsuccess = function() {
-    // image is returned as Blob in this.result.blob
-    // we need to call cameraSuccess with url or base64 encoded image
-    if (cameraOptions && cameraOptions.destinationType == 0) {
-      // TODO: base64
-      return;
-    }
-    if (!cameraOptions || !cameraOptions.destinationTyoe || cameraOptions.destinationType > 0) {
-      // url
-      return cameraSuccess(window.URL.createObjectURL(this.result.blob));
-    }
-  };
-}
-var Camera = {
-    takePicture: getPicture,
-    cleanup: function(){}
-};
-
-firefoxos.registerPlugin('Camera', Camera);
-