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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/host/Platform.js

Issue 2440953003: DevTools: use semicolons after each statement. (Closed)
Patch Set: rebaseline Created 4 years, 1 month 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 * Copyright (C) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 16 matching lines...) Expand all
27 */ 27 */
28 28
29 /** 29 /**
30 * @return {string} 30 * @return {string}
31 */ 31 */
32 WebInspector.platform = function() 32 WebInspector.platform = function()
33 { 33 {
34 if (!WebInspector._platform) 34 if (!WebInspector._platform)
35 WebInspector._platform = InspectorFrontendHost.platform(); 35 WebInspector._platform = InspectorFrontendHost.platform();
36 return WebInspector._platform; 36 return WebInspector._platform;
37 } 37 };
38 38
39 /** 39 /**
40 * @return {boolean} 40 * @return {boolean}
41 */ 41 */
42 WebInspector.isMac = function() 42 WebInspector.isMac = function()
43 { 43 {
44 if (typeof WebInspector._isMac === "undefined") 44 if (typeof WebInspector._isMac === "undefined")
45 WebInspector._isMac = WebInspector.platform() === "mac"; 45 WebInspector._isMac = WebInspector.platform() === "mac";
46 46
47 return WebInspector._isMac; 47 return WebInspector._isMac;
48 } 48 };
49 49
50 /** 50 /**
51 * @return {boolean} 51 * @return {boolean}
52 */ 52 */
53 WebInspector.isWin = function() 53 WebInspector.isWin = function()
54 { 54 {
55 if (typeof WebInspector._isWin === "undefined") 55 if (typeof WebInspector._isWin === "undefined")
56 WebInspector._isWin = WebInspector.platform() === "windows"; 56 WebInspector._isWin = WebInspector.platform() === "windows";
57 57
58 return WebInspector._isWin; 58 return WebInspector._isWin;
59 } 59 };
60 60
61 /** 61 /**
62 * @return {string} 62 * @return {string}
63 */ 63 */
64 WebInspector.fontFamily = function() 64 WebInspector.fontFamily = function()
65 { 65 {
66 if (WebInspector._fontFamily) 66 if (WebInspector._fontFamily)
67 return WebInspector._fontFamily; 67 return WebInspector._fontFamily;
68 switch (WebInspector.platform()) { 68 switch (WebInspector.platform()) {
69 case "linux": 69 case "linux":
70 WebInspector._fontFamily = "Ubuntu, Arial, sans-serif"; 70 WebInspector._fontFamily = "Ubuntu, Arial, sans-serif";
71 break; 71 break;
72 case "mac": 72 case "mac":
73 WebInspector._fontFamily = "'Lucida Grande', sans-serif"; 73 WebInspector._fontFamily = "'Lucida Grande', sans-serif";
74 break; 74 break;
75 case "windows": 75 case "windows":
76 WebInspector._fontFamily = "'Segoe UI', Tahoma, sans-serif"; 76 WebInspector._fontFamily = "'Segoe UI', Tahoma, sans-serif";
77 break; 77 break;
78 } 78 }
79 return WebInspector._fontFamily; 79 return WebInspector._fontFamily;
80 } 80 };
81 81
82 /** 82 /**
83 * @return {string} 83 * @return {string}
84 */ 84 */
85 WebInspector.monospaceFontFamily = function() 85 WebInspector.monospaceFontFamily = function()
86 { 86 {
87 if (WebInspector._monospaceFontFamily) 87 if (WebInspector._monospaceFontFamily)
88 return WebInspector._monospaceFontFamily; 88 return WebInspector._monospaceFontFamily;
89 switch (WebInspector.platform()) { 89 switch (WebInspector.platform()) {
90 case "linux": 90 case "linux":
91 WebInspector._monospaceFontFamily = "dejavu sans mono, monospace"; 91 WebInspector._monospaceFontFamily = "dejavu sans mono, monospace";
92 break; 92 break;
93 case "mac": 93 case "mac":
94 WebInspector._monospaceFontFamily = "Menlo, monospace"; 94 WebInspector._monospaceFontFamily = "Menlo, monospace";
95 break; 95 break;
96 case "windows": 96 case "windows":
97 WebInspector._monospaceFontFamily = "Consolas, monospace"; 97 WebInspector._monospaceFontFamily = "Consolas, monospace";
98 break; 98 break;
99 } 99 }
100 return WebInspector._monospaceFontFamily; 100 return WebInspector._monospaceFontFamily;
101 } 101 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698