cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject [20/50] js commit: [all] modulemapper refactor for Camera.
Date Tue, 12 Feb 2013 19:33:07 GMT
[all] modulemapper refactor for Camera.

https://issues.apache.org/jira/browse/CB-2227


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

Branch: refs/heads/symbolmapping
Commit: fdf89aaff185a8bac79a3804193d45543c16296e
Parents: 50c9155
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Thu Jan 24 16:01:48 2013 -0500
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Tue Feb 12 13:44:49 2013 -0500

----------------------------------------------------------------------
 lib/bada/platform.js                |    3 ---
 lib/bada/plugin/camera/symbols.js   |   26 ++++++++++++++++++++++++++
 lib/common/common.js                |    9 ---------
 lib/common/plugin/camera/symbols.js |   26 ++++++++++++++++++++++++++
 4 files changed, 52 insertions(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-js/blob/fdf89aaf/lib/bada/platform.js
----------------------------------------------------------------------
diff --git a/lib/bada/platform.js b/lib/bada/platform.js
index 0ef3261..8316c7b 100644
--- a/lib/bada/platform.js
+++ b/lib/bada/platform.js
@@ -45,9 +45,6 @@ module.exports = {
                 device: {
                     path: "cordova/plugin/bada/device"
                 },
-                camera: {
-                    path: "cordova/plugin/bada/Camera"
-                },
                 capture: {
                     path: "cordova/plugin/bada/Capture"
                 }

http://git-wip-us.apache.org/repos/asf/cordova-js/blob/fdf89aaf/lib/bada/plugin/camera/symbols.js
----------------------------------------------------------------------
diff --git a/lib/bada/plugin/camera/symbols.js b/lib/bada/plugin/camera/symbols.js
new file mode 100644
index 0000000..b071213
--- /dev/null
+++ b/lib/bada/plugin/camera/symbols.js
@@ -0,0 +1,26 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
+
+var modulemapper = require('cordova/modulemapper');
+
+modulemapper.defaults('cordova/plugin/bada/Camera', 'navigator.camera');
+modulemapper.defaults('cordova/plugin/CameraConstants', 'Camera');
+modulemapper.defaults('cordova/plugin/CameraPopoverOptions', 'CameraPopoverOptions');

http://git-wip-us.apache.org/repos/asf/cordova-js/blob/fdf89aaf/lib/common/common.js
----------------------------------------------------------------------
diff --git a/lib/common/common.js b/lib/common/common.js
index f4f298b..37dda9d 100644
--- a/lib/common/common.js
+++ b/lib/common/common.js
@@ -47,9 +47,6 @@ module.exports = {
                 notification: {
                     path: 'cordova/plugin/notification'
                 },
-                camera:{
-                    path: 'cordova/plugin/Camera'
-                },
                 compass:{
                     path: 'cordova/plugin/compass'
                 },
@@ -82,12 +79,6 @@ module.exports = {
                 }
             }
         },
-        Camera:{
-            path: 'cordova/plugin/CameraConstants'
-        },
-        CameraPopoverOptions: {
-            path: 'cordova/plugin/CameraPopoverOptions'
-        },
         CaptureError: {
             path: 'cordova/plugin/CaptureError'
         },

http://git-wip-us.apache.org/repos/asf/cordova-js/blob/fdf89aaf/lib/common/plugin/camera/symbols.js
----------------------------------------------------------------------
diff --git a/lib/common/plugin/camera/symbols.js b/lib/common/plugin/camera/symbols.js
new file mode 100644
index 0000000..d0f462d
--- /dev/null
+++ b/lib/common/plugin/camera/symbols.js
@@ -0,0 +1,26 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
+
+var modulemapper = require('cordova/modulemapper');
+
+modulemapper.defaults('cordova/plugin/Camera', 'navigator.camera');
+modulemapper.defaults('cordova/plugin/CameraConstants', 'Camera');
+modulemapper.defaults('cordova/plugin/CameraPopoverOptions', 'CameraPopoverOptions');


Mime
View raw message