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

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

Issue 2487373002: DevTools: settings of custom devtools should not interfere with bundled devtools (Closed)
Patch Set: 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 * @return {boolean} 48 * @return {boolean}
49 */ 49 */
50 WebInspector.isWin = function() { 50 WebInspector.isWin = function() {
51 if (typeof WebInspector._isWin === 'undefined') 51 if (typeof WebInspector._isWin === 'undefined')
52 WebInspector._isWin = WebInspector.platform() === 'windows'; 52 WebInspector._isWin = WebInspector.platform() === 'windows';
53 53
54 return WebInspector._isWin; 54 return WebInspector._isWin;
55 }; 55 };
56 56
57 /** 57 /**
58 * @return {boolean}
59 */
60 WebInspector.isCustomDevtoolsFrontend = function() {
61 if (typeof WebInspector._isCustomDevtoolsFronend === 'undefined')
62 WebInspector._isCustomDevtoolsFronend = window.location.toString().startsWit h('chrome-devtools://devtools/custom/');
63 return WebInspector._isCustomDevtoolsFronend;
64 };
65
66 /**
58 * @return {string} 67 * @return {string}
59 */ 68 */
60 WebInspector.fontFamily = function() { 69 WebInspector.fontFamily = function() {
61 if (WebInspector._fontFamily) 70 if (WebInspector._fontFamily)
62 return WebInspector._fontFamily; 71 return WebInspector._fontFamily;
63 switch (WebInspector.platform()) { 72 switch (WebInspector.platform()) {
64 case 'linux': 73 case 'linux':
65 WebInspector._fontFamily = 'Ubuntu, Arial, sans-serif'; 74 WebInspector._fontFamily = 'Ubuntu, Arial, sans-serif';
66 break; 75 break;
67 case 'mac': 76 case 'mac':
(...skipping 18 matching lines...) Expand all
86 break; 95 break;
87 case 'mac': 96 case 'mac':
88 WebInspector._monospaceFontFamily = 'Menlo, monospace'; 97 WebInspector._monospaceFontFamily = 'Menlo, monospace';
89 break; 98 break;
90 case 'windows': 99 case 'windows':
91 WebInspector._monospaceFontFamily = 'Consolas, monospace'; 100 WebInspector._monospaceFontFamily = 'Consolas, monospace';
92 break; 101 break;
93 } 102 }
94 return WebInspector._monospaceFontFamily; 103 return WebInspector._monospaceFontFamily;
95 }; 104 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698