You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ripple.apache.org by gt...@apache.org on 2013/03/11 16:11:04 UTC

[45/50] [abbrv] git commit: There is no Nexus 4 device.

There is no Nexus 4 device.

This adds support for the device on web/cordova, and also has the
correct device pixel ratio setting.


Project: http://git-wip-us.apache.org/repos/asf/incubator-ripple/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ripple/commit/a6829acf
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ripple/tree/a6829acf
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ripple/diff/a6829acf

Branch: refs/heads/master
Commit: a6829acf18a2ffda80218968750d85d66df636da
Parents: d646f67
Author: Brent Lintner <br...@gmail.com>
Authored: Fri Mar 1 15:22:13 2013 -0500
Committer: Brent Lintner <br...@gmail.com>
Committed: Fri Mar 1 15:44:04 2013 -0500

----------------------------------------------------------------------
 lib/client/devices.js        |    1 +
 lib/client/devices/Nexus4.js |   55 +++++++++++++++++++++++++++++++++++++
 2 files changed, 56 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ripple/blob/a6829acf/lib/client/devices.js
----------------------------------------------------------------------
diff --git a/lib/client/devices.js b/lib/client/devices.js
index 00861bc..8e6c77d 100644
--- a/lib/client/devices.js
+++ b/lib/client/devices.js
@@ -50,6 +50,7 @@ _self = module.exports = {
             "NexusS",
             "NexusGalaxy",
             "Nexus7",
+            "Nexus4",
             "NokiaN8",
             "NokiaN97",
             "PalmPre",

http://git-wip-us.apache.org/repos/asf/incubator-ripple/blob/a6829acf/lib/client/devices/Nexus4.js
----------------------------------------------------------------------
diff --git a/lib/client/devices/Nexus4.js b/lib/client/devices/Nexus4.js
new file mode 100644
index 0000000..3613fd4
--- /dev/null
+++ b/lib/client/devices/Nexus4.js
@@ -0,0 +1,55 @@
+/*
+ *  Copyright 2013 Research In Motion Limited.
+ *
+ * Licensed 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.
+ */
+module.exports = {
+    "id" : "Nexus4",
+    "name": "Nexus 4",
+    "manufacturer": "LG",
+    "model": "Nexus 4",
+    "osName": "Android",
+    "uuid" : "DC46B660-EF6F-46D4-AC24-85CFAB0C7694",
+    "osVersion": "4.2.x",
+
+    "screen": {
+        "width": 768,
+        "height": 1280
+    },
+
+    "viewPort": {
+        "portrait": {
+            "width": 768,
+            "height": 1280,
+            "paddingTop": 0,
+            "paddingLeft": 0
+        },
+        "landscape": {
+            "width": 1280,
+            "height": 768,
+            "paddingTop": 0,
+            "paddingLeft": 0
+        }
+    },
+
+    "ppi": 320,
+    "userAgent": "Mozilla/5.0 (Linux; Android 4.2.2; Nexus 4 Build/JDQ39) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Mobile Safari/535.19",
+    "platforms": ["web", "cordova"],
+
+    "notes": {
+        "1": "<a href=\"http://www.google.com/nexus/4/specs/\" target=\"_blank\">Specs</a>"
+    },
+    "mediaQueryEmulation": {
+        "-webkit-device-pixel-ratio": 2
+    }
+};