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

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: 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": {
pfeldman 2015/06/13 06:48:59 Should we define rects on one line for readability
dgozman 2015/06/16 15:09:30 Will do in a follow-up.
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": {
(...skipping 140 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

Powered by Google App Engine
This is Rietveld 408576698