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

Side by Side Diff: Source/devtools/front_end/modules.js

Issue 213423010: DevTools: Migrate General tab settings to extensions (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Comments addressed Created 6 years, 8 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
« no previous file with comments | « Source/devtools/front_end/inspector.html ('k') | Source/devtools/front_end/utilities.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * 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 * 10 *
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 className: "WebInspector.InspectorView.DrawerToggleActionDelegat e" 71 className: "WebInspector.InspectorView.DrawerToggleActionDelegat e"
72 }, 72 },
73 { 73 {
74 type: "@WebInspector.ActionDelegate", 74 type: "@WebInspector.ActionDelegate",
75 bindings: [ 75 bindings: [
76 { 76 {
77 shortcut: "Alt+R" 77 shortcut: "Alt+R"
78 } 78 }
79 ], 79 ],
80 className: "WebInspector.Main.DebugReloadActionDelegate" 80 className: "WebInspector.Main.DebugReloadActionDelegate"
81 },
82 {
83 type: "ui-setting",
84 title: "Disable cache (while DevTools is open)",
85 settingName: "cacheDisabled",
86 settingType: "checkbox"
87 },
88 {
89 type: "ui-setting",
90 section: "Appearance",
91 title: "Split panels vertically when docked to right",
92 settingName: "splitVerticallyWhenDockedToRight",
93 settingType: "checkbox"
94 },
95 {
96 type: "ui-setting",
97 section: "Appearance",
98 settingType: "custom",
99 className: "WebInspector.Main.ShortcutPanelSwitchSettingDelegate "
100 },
101 {
102 type: "ui-setting",
103 section: "Extensions",
104 settingType: "custom",
105 className: "WebInspector.HandlerRegistry.OpenAnchorLocationSetti ngDelegate"
81 } 106 }
82 ] 107 ]
83 }, 108 },
84 { 109 {
85 name: "elements", 110 name: "elements",
86 extensions: [ 111 extensions: [
87 { 112 {
88 type: "@WebInspector.Panel", 113 type: "@WebInspector.Panel",
89 name: "elements", 114 name: "elements",
90 title: "Elements", 115 title: "Elements",
(...skipping 21 matching lines...) Expand all
112 }, 137 },
113 { 138 {
114 type: "@WebInspector.Renderer", 139 type: "@WebInspector.Renderer",
115 contextTypes: ["WebInspector.DOMNode"], 140 contextTypes: ["WebInspector.DOMNode"],
116 className: "WebInspector.ElementsTreeOutline.Renderer" 141 className: "WebInspector.ElementsTreeOutline.Renderer"
117 }, 142 },
118 { 143 {
119 type: "@WebInspector.Revealer", 144 type: "@WebInspector.Revealer",
120 contextTypes: ["WebInspector.DOMNode"], 145 contextTypes: ["WebInspector.DOMNode"],
121 className: "WebInspector.ElementsPanel.DOMNodeRevealer" 146 className: "WebInspector.ElementsPanel.DOMNodeRevealer"
147 },
148 {
149 type: "ui-setting",
150 section: "Elements",
151 title: "Color format",
152 settingName: "colorFormat",
153 settingType: "select",
154 options: [
155 [ "As authored", "original" ],
156 [ "HEX: #DAC0DE", "hex", true ],
157 [ "RGB: rgb(128, 255, 255)", "rgb", true ],
158 [ "HSL: hsl(300, 80%, 90%)", "hsl", true ]
159 ]
160 },
161 {
162 type: "ui-setting",
163 section: "Elements",
164 title: "Show user agent styles",
165 settingName: "showUserAgentStyles",
166 settingType: "checkbox"
167 },
168 {
169 type: "ui-setting",
170 section: "Elements",
171 title: "Show user agent shadow DOM",
172 settingName: "showUAShadowDOM",
173 settingType: "checkbox"
174 },
175 {
176 type: "ui-setting",
177 section: "Elements",
178 title: "Word wrap",
179 settingName: "domWordWrap",
180 settingType: "checkbox"
181 },
182 {
183 type: "ui-setting",
184 section: "Elements",
185 title: "Show rulers",
186 settingName: "showMetricsRulers",
187 settingType: "checkbox"
122 } 188 }
123 ], 189 ],
124 scripts: [ "ElementsPanel.js" ] 190 scripts: [ "ElementsPanel.js" ]
125 }, 191 },
126 { 192 {
127 name: "network", 193 name: "network",
128 extensions: [ 194 extensions: [
129 { 195 {
130 type: "@WebInspector.Panel", 196 type: "@WebInspector.Panel",
131 name: "network", 197 name: "network",
(...skipping 18 matching lines...) Expand all
150 name: "codemirror", 216 name: "codemirror",
151 extensions: [ 217 extensions: [
152 { 218 {
153 type: "@WebInspector.InplaceEditor", 219 type: "@WebInspector.InplaceEditor",
154 className: "WebInspector.CodeMirrorUtils" 220 className: "WebInspector.CodeMirrorUtils"
155 }, 221 },
156 { 222 {
157 type: "@WebInspector.TokenizerFactory", 223 type: "@WebInspector.TokenizerFactory",
158 className: "WebInspector.CodeMirrorUtils.TokenizerFactory" 224 className: "WebInspector.CodeMirrorUtils.TokenizerFactory"
159 }, 225 },
226 {
227 type: "ui-setting",
228 section: "Sources",
229 title: "Default indentation",
230 settingName: "textEditorIndent",
231 settingType: "select",
232 options: [
233 ["2 spaces", " "],
234 ["4 spaces", " "],
235 ["8 spaces", " "],
236 ["Tab character", "\t"]
237 ]
238 }
160 ], 239 ],
161 scripts: [ "CodeMirrorTextEditor.js" ] 240 scripts: [ "CodeMirrorTextEditor.js" ]
162 }, 241 },
163 { 242 {
164 name: "sources", 243 name: "sources",
165 extensions: [ 244 extensions: [
166 { 245 {
167 type: "@WebInspector.Panel", 246 type: "@WebInspector.Panel",
168 name: "sources", 247 name: "sources",
169 title: "Sources", 248 title: "Sources",
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 { 309 {
231 platform: "mac", 310 platform: "mac",
232 shortcut: "Meta+O Meta+P" 311 shortcut: "Meta+O Meta+P"
233 }, 312 },
234 { 313 {
235 platform: "windows,linux", 314 platform: "windows,linux",
236 shortcut: "Ctrl+O Ctrl+P" 315 shortcut: "Ctrl+O Ctrl+P"
237 } 316 }
238 ], 317 ],
239 className: "WebInspector.SourcesPanel.ShowGoToSourceDialogAction Delegate" 318 className: "WebInspector.SourcesPanel.ShowGoToSourceDialogAction Delegate"
319 },
320 {
321 type: "ui-setting",
322 settingName: "javaScriptDisabled",
323 settingType: "custom",
324 className: "WebInspector.SourcesPanel.DisableJavaScriptSettingDe legate"
325 },
326 {
327 type: "ui-setting",
328 section: "Sources",
329 title: "Search in content scripts",
330 settingName: "searchInContentScripts",
331 settingType: "checkbox"
332 },
333 {
334 type: "ui-setting",
335 section: "Sources",
336 title: "Enable JavaScript source maps",
337 settingName: "jsSourceMapsEnabled",
338 settingType: "checkbox"
339 },
340 {
341 type: "ui-setting",
342 section: "Sources",
343 title: "Detect indentation",
344 settingName: "textEditorAutoDetectIndent",
345 settingType: "checkbox"
346 },
347 {
348 type: "ui-setting",
349 section: "Sources",
350 title: "Autocompletion",
351 settingName: "textEditorAutocompletion",
352 settingType: "checkbox"
353 },
354 {
355 type: "ui-setting",
356 section: "Sources",
357 title: "Bracket matching",
358 settingName: "textEditorBracketMatching",
359 settingType: "checkbox"
360 },
361 {
362 type: "ui-setting",
363 section: "Sources",
364 title: "Show whitespace characters",
365 settingName: "showWhitespacesInEditor",
366 settingType: "checkbox"
367 },
368 {
369 type: "ui-setting",
370 section: "Sources",
371 title: "Enable CSS source maps",
372 settingName: "cssSourceMapsEnabled",
373 settingType: "checkbox"
374 },
375 {
376 type: "ui-setting",
377 title: "Auto-reload generated CSS",
378 parentSettingName: "cssSourceMapsEnabled",
379 settingName: "cssReloadEnabled",
380 settingType: "checkbox"
381 },
382 {
383 type: "ui-setting",
384 section: "Sources",
385 experiment: "frameworksDebuggingSupport",
386 title: "Skip stepping through sources with particular names",
387 settingName: "skipStackFramesSwitch",
388 settingType: "checkbox"
389 },
390 {
391 type: "ui-setting",
392 experiment: "frameworksDebuggingSupport",
393 parentSettingName: "skipStackFramesSwitch",
394 settingType: "custom",
395 className: "WebInspector.SourcesPanel.SkipStackFramePatternSetti ngDelegate"
240 } 396 }
241 ], 397 ],
242 scripts: [ "SourcesPanel.js" ] 398 scripts: [ "SourcesPanel.js" ]
243 }, 399 },
244 { 400 {
245 name: "timeline", 401 name: "timeline",
246 extensions: [ 402 extensions: [
247 { 403 {
248 type: "@WebInspector.Panel", 404 type: "@WebInspector.Panel",
249 name: "timeline", 405 name: "timeline",
(...skipping 11 matching lines...) Expand all
261 type: "@WebInspector.Panel", 417 type: "@WebInspector.Panel",
262 name: "profiles", 418 name: "profiles",
263 title: "Profiles", 419 title: "Profiles",
264 order: 4, 420 order: 4,
265 className: "WebInspector.ProfilesPanel" 421 className: "WebInspector.ProfilesPanel"
266 }, 422 },
267 { 423 {
268 type: "@WebInspector.ContextMenu.Provider", 424 type: "@WebInspector.ContextMenu.Provider",
269 contextTypes: ["WebInspector.RemoteObject"], 425 contextTypes: ["WebInspector.RemoteObject"],
270 className: "WebInspector.ProfilesPanel.ContextMenuProvider" 426 className: "WebInspector.ProfilesPanel.ContextMenuProvider"
427 },
428 {
429 type: "ui-setting",
430 section: "Profiler",
431 title: "Show advanced heap snapshot properties",
432 settingName: "showAdvancedHeapSnapshotProperties",
433 settingType: "checkbox"
434 },
435 {
436 type: "ui-setting",
437 section: "Profiler",
438 title: "High resolution CPU profiling",
439 settingName: "highResolutionCpuProfiling",
440 settingType: "checkbox"
271 } 441 }
272 ], 442 ],
273 scripts: [ "ProfilesPanel.js" ] 443 scripts: [ "ProfilesPanel.js" ]
274 }, 444 },
275 { 445 {
276 name: "resources", 446 name: "resources",
277 extensions: [ 447 extensions: [
278 { 448 {
279 type: "@WebInspector.Panel", 449 type: "@WebInspector.Panel",
280 name: "resources", 450 name: "resources",
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 className: "WebInspector.ConsolePanel.ConsoleRevealer" 496 className: "WebInspector.ConsolePanel.ConsoleRevealer"
327 }, 497 },
328 { 498 {
329 type: "@WebInspector.ActionDelegate", 499 type: "@WebInspector.ActionDelegate",
330 bindings: [ 500 bindings: [
331 { 501 {
332 shortcut: "Ctrl+`" 502 shortcut: "Ctrl+`"
333 } 503 }
334 ], 504 ],
335 className: "WebInspector.ConsoleView.ShowConsoleActionDelegate" 505 className: "WebInspector.ConsoleView.ShowConsoleActionDelegate"
506 },
507 {
508 type: "ui-setting",
509 section: "Console",
510 title: "Log XMLHttpRequests",
511 settingName: "monitoringXHREnabled",
512 settingType: "checkbox"
513 },
514 {
515 type: "ui-setting",
516 section: "Console",
517 title: "Preserve log upon navigation",
518 settingName: "preserveConsoleLog",
519 settingType: "checkbox"
520 },
521 {
522 type: "ui-setting",
523 section: "Console",
524 title: "Show timestamps",
525 settingName: "consoleTimestampsEnabled",
526 settingType: "checkbox"
336 } 527 }
337 ], 528 ],
338 scripts: [ "ConsolePanel.js" ] 529 scripts: [ "ConsolePanel.js" ]
339 }, 530 },
340 { 531 {
341 name: "settings", 532 name: "settings",
342 extensions: [ 533 extensions: [
343 { 534 {
344 type: "@WebInspector.ActionDelegate", 535 type: "@WebInspector.ActionDelegate",
345 bindings: [ 536 bindings: [
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 name: "handler-registry", 574 name: "handler-registry",
384 extensions: [ 575 extensions: [
385 { 576 {
386 type: "@WebInspector.ContextMenu.Provider", 577 type: "@WebInspector.ContextMenu.Provider",
387 contextTypes: ["WebInspector.UISourceCode", "WebInspector.Resour ce", "WebInspector.NetworkRequest", "Node"], 578 contextTypes: ["WebInspector.UISourceCode", "WebInspector.Resour ce", "WebInspector.NetworkRequest", "Node"],
388 className: "WebInspector.HandlerRegistry.ContextMenuProvider" 579 className: "WebInspector.HandlerRegistry.ContextMenuProvider"
389 } 580 }
390 ] 581 ]
391 } 582 }
392 ]; 583 ];
OLDNEW
« no previous file with comments | « Source/devtools/front_end/inspector.html ('k') | Source/devtools/front_end/utilities.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698