Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(624)

Side by Side Diff: Source/devtools/front_end/emulated_devices/module.json

Issue 1178643004: [DevTools] Initial implementation of device modes. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Turn into class Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 { 1 {
2 "extensions": [ 2 "extensions": [
3 { 3 {
4 "type": "emulated-device", 4 "type": "emulated-device",
5 "device": { 5 "device": {
6 "show-by-default": true, 6 "show-by-default": true,
7 "modes": [], 7 "modes": [],
8 "title": "Apple iPhone 4", 8 "title": "Apple iPhone 4",
9 "screen": { 9 "screen": {
10 "horizontal": { 10 "horizontal": {
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 "device-pixel-ratio": 3, 165 "device-pixel-ratio": 3,
166 "vertical": { 166 "vertical": {
167 "width": 360, 167 "width": 360,
168 "height": 640 168 "height": 640
169 }, 169 },
170 "horizontal": { 170 "horizontal": {
171 "width": 640, 171 "width": 640,
172 "height": 360 172 "height": 360
173 } 173 }
174 }, 174 },
175 "modes": [] 175 "modes": [
176 {
177 "title": "default",
178 "orientation": "vertical",
179 "page-rect": {
180 "left": 0,
181 "top": 25,
182 "width": 360,
183 "height": 567
184 }
185 },
186 {
187 "title": "navigation bar",
188 "orientation": "vertical",
189 "page-rect": {
190 "left": 0,
191 "top": 80,
192 "width": 360,
193 "height": 512
194 }
195 },
196 {
197 "title": "keyboard",
198 "orientation": "vertical",
199 "page-rect": {
200 "left": 0,
201 "top": 80,
202 "width": 360,
203 "height": 248
204 }
205 },
206 {
207 "title": "default",
208 "orientation": "horizontal",
209 "page-rect": {
210 "left": 0,
211 "top": 25,
212 "width": 598,
213 "height": 335
214 }
215 },
216 {
217 "title": "navigation bar",
218 "orientation": "horizontal",
219 "page-rect": {
220 "left": 0,
221 "top": 80,
222 "width": 598,
223 "height": 280
224 }
225 },
226 {
227 "title": "keyboard",
228 "orientation": "horizontal",
229 "page-rect": {
230 "left": 0,
231 "top": 80,
232 "width": 598,
233 "height": 78
234 }
235 }
236 ]
176 } 237 }
177 }, 238 },
178 { 239 {
179 "type": "emulated-device", 240 "type": "emulated-device",
180 "device": { 241 "device": {
181 "show-by-default": true, 242 "show-by-default": true,
182 "modes": [], 243 "modes": [],
183 "title": "Google Nexus 6", 244 "title": "Google Nexus 6",
184 "screen": { 245 "screen": {
185 "horizontal": { 246 "horizontal": {
186 "width": 412, 247 "width": 732,
187 "height": 732 248 "height": 412
188 }, 249 },
189 "device-pixel-ratio": 3.5, 250 "device-pixel-ratio": 3.5,
190 "vertical": { 251 "vertical": {
191 "width": 732, 252 "width": 412,
192 "height": 412 253 "height": 732
193 } 254 }
194 }, 255 },
195 "capabilities": [ 256 "capabilities": [
196 "touch", 257 "touch",
197 "mobile" 258 "mobile"
198 ], 259 ],
199 "user-agent": "Mozilla/5.0 (Linux; Android 5.1.1; Nexus 6 Build/ LYZ28E) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.20 Mobile Safari /537.36", 260 "user-agent": "Mozilla/5.0 (Linux; Android 5.1.1; Nexus 6 Build/ LYZ28E) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.20 Mobile Safari /537.36",
200 "type": "phone" 261 "type": "phone"
201 } 262 }
202 }, 263 },
203 { 264 {
204 "type": "emulated-device", 265 "type": "emulated-device",
205 "device": { 266 "device": {
206 "show-by-default": true, 267 "show-by-default": true,
207 "modes": [], 268 "modes": [],
208 "title": "LG Optimus L70", 269 "title": "LG Optimus L70",
209 "screen": { 270 "screen": {
210 "horizontal": { 271 "horizontal": {
211 "width": 384, 272 "width": 640,
212 "height": 640 273 "height": 384
213 }, 274 },
214 "device-pixel-ratio": 1.25, 275 "device-pixel-ratio": 1.25,
215 "vertical": { 276 "vertical": {
216 "width": 640, 277 "width": 384,
217 "height": 384 278 "height": 640
218 } 279 }
219 }, 280 },
220 "capabilities": [ 281 "capabilities": [
221 "touch", 282 "touch",
222 "mobile" 283 "mobile"
223 ], 284 ],
224 "user-agent": "Mozilla/5.0 (Linux; U; Android 4.4.2; en-us; LGMS 323 Build/KOT49I.MS32310c) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Ch rome/30.0.1599.103 Mobile Safari/537.36", 285 "user-agent": "Mozilla/5.0 (Linux; U; Android 4.4.2; en-us; LGMS 323 Build/KOT49I.MS32310c) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Ch rome/30.0.1599.103 Mobile Safari/537.36",
225 "type": "phone" 286 "type": "phone"
226 } 287 }
227 }, 288 },
228 { 289 {
229 "type": "emulated-device", 290 "type": "emulated-device",
230 "device": { 291 "device": {
231 "show-by-default": true, 292 "show-by-default": true,
232 "modes": [], 293 "modes": [],
233 "title": "Nokia N9", 294 "title": "Nokia N9",
234 "screen": { 295 "screen": {
235 "horizontal": { 296 "horizontal": {
236 "width": 360, 297 "width": 640,
237 "height": 640 298 "height": 360
238 }, 299 },
239 "device-pixel-ratio": 1, 300 "device-pixel-ratio": 1,
240 "vertical": { 301 "vertical": {
241 "width": 640, 302 "width": 360,
242 "height": 360 303 "height": 640
243 } 304 }
244 }, 305 },
245 "capabilities": [ 306 "capabilities": [
246 "touch", 307 "touch",
247 "mobile" 308 "mobile"
248 ], 309 ],
249 "user-agent": "Mozilla/5.0 (MeeGo; NokiaN9) AppleWebKit/534.13 ( KHTML, like Gecko) NokiaBrowser/8.5.0 Mobile Safari/534.13", 310 "user-agent": "Mozilla/5.0 (MeeGo; NokiaN9) AppleWebKit/534.13 ( KHTML, like Gecko) NokiaBrowser/8.5.0 Mobile Safari/534.13",
250 "type": "phone" 311 "type": "phone"
251 } 312 }
252 }, 313 },
253 { 314 {
254 "type": "emulated-device", 315 "type": "emulated-device",
255 "device": { 316 "device": {
256 "show-by-default": true, 317 "show-by-default": true,
257 "modes": [], 318 "modes": [],
258 "title": "Nokia Lumia 520", 319 "title": "Nokia Lumia 520",
259 "screen": { 320 "screen": {
260 "horizontal": { 321 "horizontal": {
261 "width": 320, 322 "width": 533,
262 "height": 533 323 "height": 320
263 }, 324 },
264 "device-pixel-ratio": 1.4, 325 "device-pixel-ratio": 1.4,
265 "vertical": { 326 "vertical": {
266 "width": 533, 327 "width": 320,
267 "height": 320 328 "height": 533
268 } 329 }
269 }, 330 },
270 "capabilities": [ 331 "capabilities": [
271 "touch", 332 "touch",
272 "mobile" 333 "mobile"
273 ], 334 ],
274 "user-agent": "Mozilla/5.0 (compatible; MSIE 10.0; Windows Phone 8.0; Trident/6.0; IEMobile/10.0; ARM; Touch; NOKIA; Lumia 520)", 335 "user-agent": "Mozilla/5.0 (compatible; MSIE 10.0; Windows Phone 8.0; Trident/6.0; IEMobile/10.0; ARM; Touch; NOKIA; Lumia 520)",
275 "type": "phone" 336 "type": "phone"
276 } 337 }
277 }, 338 },
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 } 387 }
327 }, 388 },
328 { 389 {
329 "type": "emulated-device", 390 "type": "emulated-device",
330 "device": { 391 "device": {
331 "show-by-default": true, 392 "show-by-default": true,
332 "modes": [], 393 "modes": [],
333 "title": "Amazon Kindle Fire HDX", 394 "title": "Amazon Kindle Fire HDX",
334 "screen": { 395 "screen": {
335 "horizontal": { 396 "horizontal": {
336 "width": 1600, 397 "width": 2560,
337 "height": 2560 398 "height": 1600
338 }, 399 },
339 "device-pixel-ratio": 2, 400 "device-pixel-ratio": 2,
340 "vertical": { 401 "vertical": {
341 "width": 2560, 402 "width": 1600,
342 "height": 1600 403 "height": 2560
343 } 404 }
344 }, 405 },
345 "capabilities": [ 406 "capabilities": [
346 "touch", 407 "touch",
347 "mobile" 408 "mobile"
348 ], 409 ],
349 "user-agent": "Mozilla/5.0 (Linux; U; en-us; KFAPWI Build/JDQ39) AppleWebKit/535.19 (KHTML, like Gecko) Silk/3.13 Safari/535.19 Silk-Accelerated =true", 410 "user-agent": "Mozilla/5.0 (Linux; U; en-us; KFAPWI Build/JDQ39) AppleWebKit/535.19 (KHTML, like Gecko) Silk/3.13 Safari/535.19 Silk-Accelerated =true",
350 "type": "tablet" 411 "type": "tablet"
351 } 412 }
352 }, 413 },
353 { 414 {
354 "type": "emulated-device", 415 "type": "emulated-device",
355 "device": { 416 "device": {
356 "show-by-default": true, 417 "show-by-default": true,
357 "modes": [], 418 "modes": [],
358 "title": "Apple iPad Mini", 419 "title": "Apple iPad Mini",
359 "screen": { 420 "screen": {
360 "horizontal": { 421 "horizontal": {
361 "width": 768, 422 "width": 1024,
362 "height": 1024 423 "height": 768
363 }, 424 },
364 "device-pixel-ratio": 2, 425 "device-pixel-ratio": 2,
365 "vertical": { 426 "vertical": {
366 "width": 1024, 427 "width": 768,
367 "height": 768 428 "height": 1024
368 } 429 }
369 }, 430 },
370 "capabilities": [ 431 "capabilities": [
371 "touch", 432 "touch",
372 "mobile" 433 "mobile"
373 ], 434 ],
374 "user-agent": "Mozilla/5.0 (iPad; CPU OS 7_0_4 like Mac OS X) Ap pleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11B554a Safari/9537.53 ", 435 "user-agent": "Mozilla/5.0 (iPad; CPU OS 7_0_4 like Mac OS X) Ap pleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11B554a Safari/9537.53 ",
375 "type": "tablet" 436 "type": "tablet"
376 } 437 }
377 }, 438 },
378 { 439 {
379 "type": "emulated-device", 440 "type": "emulated-device",
380 "device": { 441 "device": {
381 "show-by-default": true, 442 "show-by-default": true,
382 "modes": [], 443 "modes": [],
383 "title": "Apple iPad", 444 "title": "Apple iPad",
384 "screen": { 445 "screen": {
385 "horizontal": { 446 "horizontal": {
386 "width": 768, 447 "width": 1024,
387 "height": 1024 448 "height": 768
388 }, 449 },
389 "device-pixel-ratio": 2, 450 "device-pixel-ratio": 2,
390 "vertical": { 451 "vertical": {
391 "width": 1024, 452 "width": 768,
392 "height": 768 453 "height": 1024
393 } 454 }
394 }, 455 },
395 "capabilities": [ 456 "capabilities": [
396 "touch", 457 "touch",
397 "mobile" 458 "mobile"
398 ], 459 ],
399 "user-agent": "Mozilla/5.0 (iPad; CPU OS 7_0 like Mac OS X) Appl eWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53", 460 "user-agent": "Mozilla/5.0 (iPad; CPU OS 7_0 like Mac OS X) Appl eWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53",
400 "type": "tablet" 461 "type": "tablet"
401 } 462 }
402 }, 463 },
403 { 464 {
404 "type": "emulated-device", 465 "type": "emulated-device",
405 "device": { 466 "device": {
406 "show-by-default": true, 467 "show-by-default": true,
407 "modes": [], 468 "modes": [],
408 "title": "BlackBerry PlayBook", 469 "title": "BlackBerry PlayBook",
409 "screen": { 470 "screen": {
410 "horizontal": { 471 "horizontal": {
411 "width": 600, 472 "width": 1024,
412 "height": 1024 473 "height": 600
413 }, 474 },
414 "device-pixel-ratio": 1, 475 "device-pixel-ratio": 1,
415 "vertical": { 476 "vertical": {
416 "width": 1024, 477 "width": 600,
417 "height": 600 478 "height": 1024
418 } 479 }
419 }, 480 },
420 "capabilities": [ 481 "capabilities": [
421 "touch", 482 "touch",
422 "mobile" 483 "mobile"
423 ], 484 ],
424 "user-agent": "Mozilla/5.0 (PlayBook; U; RIM Tablet OS 2.1.0; en -US) AppleWebKit/536.2+ (KHTML like Gecko) Version/7.2.1.0 Safari/536.2+", 485 "user-agent": "Mozilla/5.0 (PlayBook; U; RIM Tablet OS 2.1.0; en -US) AppleWebKit/536.2+ (KHTML like Gecko) Version/7.2.1.0 Safari/536.2+",
425 "type": "tablet" 486 "type": "tablet"
426 } 487 }
427 }, 488 },
428 { 489 {
429 "type": "emulated-device", 490 "type": "emulated-device",
430 "device": { 491 "device": {
431 "show-by-default": true, 492 "show-by-default": true,
432 "modes": [], 493 "modes": [],
433 "title": "Google Nexus 10", 494 "title": "Google Nexus 10",
434 "screen": { 495 "screen": {
435 "horizontal": { 496 "horizontal": {
436 "width": 800, 497 "width": 1280,
437 "height": 1280 498 "height": 800
438 }, 499 },
439 "device-pixel-ratio": 2, 500 "device-pixel-ratio": 2,
440 "vertical": { 501 "vertical": {
441 "width": 1280, 502 "width": 800,
442 "height": 800 503 "height": 1280
443 } 504 }
444 }, 505 },
445 "capabilities": [ 506 "capabilities": [
446 "touch", 507 "touch",
447 "mobile" 508 "mobile"
448 ], 509 ],
449 "user-agent": "Mozilla/5.0 (Linux; Android 4.3; Nexus 10 Build/J SS15Q) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2307.2 Safari/537.36", 510 "user-agent": "Mozilla/5.0 (Linux; Android 4.3; Nexus 10 Build/J SS15Q) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2307.2 Safari/537.36",
450 "type": "tablet" 511 "type": "tablet"
451 } 512 }
452 }, 513 },
453 { 514 {
454 "type": "emulated-device", 515 "type": "emulated-device",
455 "device": { 516 "device": {
456 "show-by-default": true, 517 "show-by-default": true,
457 "modes": [], 518 "modes": [],
458 "title": "Google Nexus 7", 519 "title": "Google Nexus 7",
459 "screen": { 520 "screen": {
460 "horizontal": { 521 "horizontal": {
461 "width": 600, 522 "width": 960,
462 "height": 960 523 "height": 600
463 }, 524 },
464 "device-pixel-ratio": 2, 525 "device-pixel-ratio": 2,
465 "vertical": { 526 "vertical": {
466 "width": 960, 527 "width": 600,
467 "height": 600 528 "height": 960
468 } 529 }
469 }, 530 },
470 "capabilities": [ 531 "capabilities": [
471 "touch", 532 "touch",
472 "mobile" 533 "mobile"
473 ], 534 ],
474 "user-agent": "Mozilla/5.0 (Linux; Android 4.3; Nexus 7 Build/JS S15Q) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2307.2 Safari/537.36", 535 "user-agent": "Mozilla/5.0 (Linux; Android 4.3; Nexus 7 Build/JS S15Q) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2307.2 Safari/537.36",
475 "type": "tablet" 536 "type": "tablet"
476 } 537 }
477 }, 538 },
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 } 656 }
596 ], 657 ],
597 "dependencies": [ 658 "dependencies": [
598 "emulation" 659 "emulation"
599 ], 660 ],
600 "scripts": [ 661 "scripts": [
601 ], 662 ],
602 "resources": [ 663 "resources": [
603 ] 664 ]
604 } 665 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/common/Geometry.js ('k') | Source/devtools/front_end/emulation/DevicesSettingsTab.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698