Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

There is no Nexus 4 device. #735

Merged
merged 1 commit into from

2 participants

@brentlintner

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

@dansilivestru

Looks good, your copywrite says 2011 other then that it's a +1 from me :-)

@brentlintner brentlintner There is no Nexus 4 device.
This adds support for the device on web/cordova, and also has the
correct device pixel ratio setting.
a6829ac
@brentlintner brentlintner merged commit a6829ac into blackberry:next
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 1, 2013
  1. @brentlintner

    There is no Nexus 4 device.

    brentlintner authored
    This adds support for the device on web/cordova, and also has the
    correct device pixel ratio setting.
This page is out of date. Refresh to see the latest.
Showing with 56 additions and 0 deletions.
  1. +1 −0  lib/client/devices.js
  2. +55 −0 lib/client/devices/Nexus4.js
View
1  lib/client/devices.js
@@ -50,6 +50,7 @@ _self = module.exports = {
"NexusS",
"NexusGalaxy",
"Nexus7",
+ "Nexus4",
"NokiaN8",
"NokiaN97",
"PalmPre",
View
55 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
+ }
+};
Something went wrong with that request. Please try again.