Permalink
Browse files

remove unrequired FFOS file

  • Loading branch information...
1 parent 77f4683 commit ab1281fb250f2fdee05c1fe69395f56db9a77433 @hermwong hermwong committed Jan 15, 2014
Showing with 0 additions and 32 deletions.
  1. +0 −32 src/firefoxos/camera.js
View
@@ -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);
-

0 comments on commit ab1281f

Please sign in to comment.