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

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

Issue 2300403003: DevTools: patch browser's Chrome version into Chrome user agents for emulation (Closed)
Patch Set: use sprintf, default chrome version for fallback Created 4 years, 3 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
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": false, 6 "show-by-default": false,
7 "title": "iPhone 4" , 7 "title": "iPhone 4" ,
8 "screen": { 8 "screen": {
9 "horizontal": { 9 "horizontal": {
10 "width": 480, 10 "width": 480,
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 "device-pixel-ratio": 2, 220 "device-pixel-ratio": 2,
221 "vertical": { 221 "vertical": {
222 "width": 384, 222 "width": 384,
223 "height": 640 223 "height": 640
224 } 224 }
225 }, 225 },
226 "capabilities": [ 226 "capabilities": [
227 "touch", 227 "touch",
228 "mobile" 228 "mobile"
229 ], 229 ],
230 "user-agent": "Mozilla/5.0 (Linux; Android 4.4.2; Nexus 4 Build/ KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.23 Mobile Safari /537.36", 230 "user-agent": "Mozilla/5.0 (Linux; Android 4.4.2; Nexus 4 Build/ KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/%s Mobile Safari/537.36",
231 "type": "phone", 231 "type": "phone",
232 "modes": [ 232 "modes": [
233 { 233 {
234 "title": "default", 234 "title": "default",
235 "orientation": "vertical", 235 "orientation": "vertical",
236 "insets": { "left": 0, "top": 0, "right": 0, "bottom": 0 } 236 "insets": { "left": 0, "top": 0, "right": 0, "bottom": 0 }
237 }, 237 },
238 { 238 {
239 "title": "default", 239 "title": "default",
240 "orientation": "horizontal", 240 "orientation": "horizontal",
241 "insets": { "left": 0, "top": 0, "right": 0, "bottom": 0 } 241 "insets": { "left": 0, "top": 0, "right": 0, "bottom": 0 }
242 } 242 }
243 ] 243 ]
244 } 244 }
245 }, 245 },
246 { 246 {
247 "type": "emulated-device", 247 "type": "emulated-device",
248 "device": { 248 "device": {
249 "title": "Nexus 5", 249 "title": "Nexus 5",
250 "type": "phone", 250 "type": "phone",
251 "user-agent": "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MR A58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.23 Mobile Safari/5 37.36", 251 "user-agent": "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MR A58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/%s Mobile Safari/537.36",
252 "capabilities": [ 252 "capabilities": [
253 "touch", 253 "touch",
254 "mobile" 254 "mobile"
255 ], 255 ],
256 "show-by-default": false, 256 "show-by-default": false,
257 "screen": { 257 "screen": {
258 "device-pixel-ratio": 3, 258 "device-pixel-ratio": 3,
259 "vertical": { 259 "vertical": {
260 "width": 360, 260 "width": 360,
261 "height": 640 261 "height": 640
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 } 304 }
305 ] 305 ]
306 } 306 }
307 }, 307 },
308 { 308 {
309 "type": "emulated-device", 309 "type": "emulated-device",
310 "order": 20, 310 "order": 20,
311 "device": { 311 "device": {
312 "title": "Nexus 5X", 312 "title": "Nexus 5X",
313 "type": "phone", 313 "type": "phone",
314 "user-agent": "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MR A58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.23 Mobile Safari/5 37.36", 314 "user-agent": "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MR A58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/%s Mobile Safari/537.36",
315 "capabilities": [ 315 "capabilities": [
316 "touch", 316 "touch",
317 "mobile" 317 "mobile"
318 ], 318 ],
319 "show-by-default": true, 319 "show-by-default": true,
320 "screen": { 320 "screen": {
321 "device-pixel-ratio": 2.625, 321 "device-pixel-ratio": 2.625,
322 "vertical": { 322 "vertical": {
323 "outline" : { 323 "outline" : {
324 "image": "@url(Nexus5X-portrait.svg)", 324 "image": "@url(Nexus5X-portrait.svg)",
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 "device-pixel-ratio": 3.5, 389 "device-pixel-ratio": 3.5,
390 "vertical": { 390 "vertical": {
391 "width": 412, 391 "width": 412,
392 "height": 732 392 "height": 732
393 } 393 }
394 }, 394 },
395 "capabilities": [ 395 "capabilities": [
396 "touch", 396 "touch",
397 "mobile" 397 "mobile"
398 ], 398 ],
399 "user-agent": "Mozilla/5.0 (Linux; Android 5.1.1; Nexus 6 Build/ LYZ28E) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.23 Mobile Safari /537.36", 399 "user-agent": "Mozilla/5.0 (Linux; Android 5.1.1; Nexus 6 Build/ LYZ28E) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/%s Mobile Safari/537.36",
400 "type": "phone", 400 "type": "phone",
401 "modes": [ 401 "modes": [
402 { 402 {
403 "title": "default", 403 "title": "default",
404 "orientation": "vertical", 404 "orientation": "vertical",
405 "insets": { "left": 0, "top": 0, "right": 0, "bottom": 0 } 405 "insets": { "left": 0, "top": 0, "right": 0, "bottom": 0 }
406 }, 406 },
407 { 407 {
408 "title": "default", 408 "title": "default",
409 "orientation": "horizontal", 409 "orientation": "horizontal",
(...skipping 24 matching lines...) Expand all
434 "insets" : { "left": 58, "top": 94, "right": 58, "bo ttom": 97 } 434 "insets" : { "left": 58, "top": 94, "right": 58, "bo ttom": 97 }
435 }, 435 },
436 "width": 412, 436 "width": 412,
437 "height": 732 437 "height": 732
438 } 438 }
439 }, 439 },
440 "capabilities": [ 440 "capabilities": [
441 "touch", 441 "touch",
442 "mobile" 442 "mobile"
443 ], 443 ],
444 "user-agent": "Mozilla/5.0 (Linux; Android 5.1.1; Nexus 6 Build/ LYZ28E) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.23 Mobile Safari /537.36", 444 "user-agent": "Mozilla/5.0 (Linux; Android 5.1.1; Nexus 6 Build/ LYZ28E) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/%s Mobile Safari/537.36",
445 "type": "phone", 445 "type": "phone",
446 "modes": [ 446 "modes": [
447 { 447 {
448 "title": "default", 448 "title": "default",
449 "orientation": "vertical", 449 "orientation": "vertical",
450 "insets": { "left": 0, "top": 0, "right": 0, "bottom": 0 } 450 "insets": { "left": 0, "top": 0, "right": 0, "bottom": 0 }
451 }, 451 },
452 { 452 {
453 "title": "default", 453 "title": "default",
454 "orientation": "horizontal", 454 "orientation": "horizontal",
(...skipping 15 matching lines...) Expand all
470 "device-pixel-ratio": 1.25, 470 "device-pixel-ratio": 1.25,
471 "vertical": { 471 "vertical": {
472 "width": 384, 472 "width": 384,
473 "height": 640 473 "height": 640
474 } 474 }
475 }, 475 },
476 "capabilities": [ 476 "capabilities": [
477 "touch", 477 "touch",
478 "mobile" 478 "mobile"
479 ], 479 ],
480 "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/48.0.2564.23 Mobile Safari/537.36", 480 "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/%s Mobile Safari/537.36",
481 "type": "phone", 481 "type": "phone",
482 "modes": [ 482 "modes": [
483 { 483 {
484 "title": "default", 484 "title": "default",
485 "orientation": "vertical", 485 "orientation": "vertical",
486 "insets": { "left": 0, "top": 0, "right": 0, "bottom": 0 } 486 "insets": { "left": 0, "top": 0, "right": 0, "bottom": 0 }
487 }, 487 },
488 { 488 {
489 "title": "default", 489 "title": "default",
490 "orientation": "horizontal", 490 "orientation": "horizontal",
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 "device-pixel-ratio": 2, 578 "device-pixel-ratio": 2,
579 "vertical": { 579 "vertical": {
580 "width": 640, 580 "width": 640,
581 "height": 360 581 "height": 360
582 } 582 }
583 }, 583 },
584 "capabilities": [ 584 "capabilities": [
585 "touch", 585 "touch",
586 "mobile" 586 "mobile"
587 ], 587 ],
588 "user-agent": "Mozilla/5.0 (Windows Phone 10.0; Android 4.2.1; M icrosoft; Lumia 550) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2486.0 M obile Safari/537.36 Edge/14.14263", 588 "user-agent": "Mozilla/5.0 (Windows Phone 10.0; Android 4.2.1; M icrosoft; Lumia 550) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/%s Mobile Saf ari/537.36 Edge/14.14263",
589 "type": "phone", 589 "type": "phone",
590 "modes": [ 590 "modes": [
591 { 591 {
592 "title": "default", 592 "title": "default",
593 "orientation": "vertical", 593 "orientation": "vertical",
594 "insets": { "left": 0, "top": 0, "right": 0, "bottom": 0 } 594 "insets": { "left": 0, "top": 0, "right": 0, "bottom": 0 }
595 }, 595 },
596 { 596 {
597 "title": "default", 597 "title": "default",
598 "orientation": "horizontal", 598 "orientation": "horizontal",
(...skipping 15 matching lines...) Expand all
614 "device-pixel-ratio": 4, 614 "device-pixel-ratio": 4,
615 "vertical": { 615 "vertical": {
616 "width": 360, 616 "width": 360,
617 "height": 640 617 "height": 640
618 } 618 }
619 }, 619 },
620 "capabilities": [ 620 "capabilities": [
621 "touch", 621 "touch",
622 "mobile" 622 "mobile"
623 ], 623 ],
624 "user-agent": "Mozilla/5.0 (Windows Phone 10.0; Android 4.2.1; M icrosoft; Lumia 950) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2486.0 M obile Safari/537.36 Edge/14.14263", 624 "user-agent": "Mozilla/5.0 (Windows Phone 10.0; Android 4.2.1; M icrosoft; Lumia 950) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/%s Mobile Saf ari/537.36 Edge/14.14263",
625 "type": "phone", 625 "type": "phone",
626 "modes": [ 626 "modes": [
627 { 627 {
628 "title": "default", 628 "title": "default",
629 "orientation": "vertical", 629 "orientation": "vertical",
630 "insets": { "left": 0, "top": 0, "right": 0, "bottom": 0 } 630 "insets": { "left": 0, "top": 0, "right": 0, "bottom": 0 }
631 }, 631 },
632 { 632 {
633 "title": "default", 633 "title": "default",
634 "orientation": "horizontal", 634 "orientation": "horizontal",
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
687 "device-pixel-ratio": 3, 687 "device-pixel-ratio": 3,
688 "vertical": { 688 "vertical": {
689 "width": 360, 689 "width": 360,
690 "height": 640 690 "height": 640
691 } 691 }
692 }, 692 },
693 "capabilities": [ 693 "capabilities": [
694 "touch", 694 "touch",
695 "mobile" 695 "mobile"
696 ], 696 ],
697 "user-agent": "Mozilla/5.0 (Linux; Android 5.0; SM-G900P Build/L RX21T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.23 Mobile Safari/ 537.36", 697 "user-agent": "Mozilla/5.0 (Linux; Android 5.0; SM-G900P Build/L RX21T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/%s Mobile Safari/537.36",
698 "type": "phone", 698 "type": "phone",
699 "modes": [ 699 "modes": [
700 { 700 {
701 "title": "default", 701 "title": "default",
702 "orientation": "vertical", 702 "orientation": "vertical",
703 "insets": { "left": 0, "top": 0, "right": 0, "bottom": 0 } 703 "insets": { "left": 0, "top": 0, "right": 0, "bottom": 0 }
704 }, 704 },
705 { 705 {
706 "title": "default", 706 "title": "default",
707 "orientation": "horizontal", 707 "orientation": "horizontal",
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
876 "device-pixel-ratio": 2, 876 "device-pixel-ratio": 2,
877 "vertical": { 877 "vertical": {
878 "width": 800, 878 "width": 800,
879 "height": 1280 879 "height": 1280
880 } 880 }
881 }, 881 },
882 "capabilities": [ 882 "capabilities": [
883 "touch", 883 "touch",
884 "mobile" 884 "mobile"
885 ], 885 ],
886 "user-agent": "Mozilla/5.0 (Linux; Android 4.3; Nexus 10 Build/J SS15Q) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.23 Safari/537.36" , 886 "user-agent": "Mozilla/5.0 (Linux; Android 4.3; Nexus 10 Build/J SS15Q) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/%s Safari/537.36",
887 "type": "tablet", 887 "type": "tablet",
888 "modes": [ 888 "modes": [
889 { 889 {
890 "title": "default", 890 "title": "default",
891 "orientation": "vertical", 891 "orientation": "vertical",
892 "insets": { "left": 0, "top": 0, "right": 0, "bottom": 0 } 892 "insets": { "left": 0, "top": 0, "right": 0, "bottom": 0 }
893 }, 893 },
894 { 894 {
895 "title": "default", 895 "title": "default",
896 "orientation": "horizontal", 896 "orientation": "horizontal",
(...skipping 15 matching lines...) Expand all
912 "device-pixel-ratio": 2, 912 "device-pixel-ratio": 2,
913 "vertical": { 913 "vertical": {
914 "width": 600, 914 "width": 600,
915 "height": 960 915 "height": 960
916 } 916 }
917 }, 917 },
918 "capabilities": [ 918 "capabilities": [
919 "touch", 919 "touch",
920 "mobile" 920 "mobile"
921 ], 921 ],
922 "user-agent": "Mozilla/5.0 (Linux; Android 4.3; Nexus 7 Build/JS S15Q) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.23 Safari/537.36", 922 "user-agent": "Mozilla/5.0 (Linux; Android 4.3; Nexus 7 Build/JS S15Q) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/%s Safari/537.36",
923 "type": "tablet", 923 "type": "tablet",
924 "modes": [ 924 "modes": [
925 { 925 {
926 "title": "default", 926 "title": "default",
927 "orientation": "vertical", 927 "orientation": "vertical",
928 "insets": { "left": 0, "top": 0, "right": 0, "bottom": 0 } 928 "insets": { "left": 0, "top": 0, "right": 0, "bottom": 0 }
929 }, 929 },
930 { 930 {
931 "title": "default", 931 "title": "default",
932 "orientation": "horizontal", 932 "orientation": "horizontal",
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
1095 } 1095 }
1096 ], 1096 ],
1097 "dependencies": [ 1097 "dependencies": [
1098 "emulation" 1098 "emulation"
1099 ], 1099 ],
1100 "scripts": [ 1100 "scripts": [
1101 ], 1101 ],
1102 "resources": [ 1102 "resources": [
1103 ] 1103 ]
1104 } 1104 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698