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

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: Created 6 years, 9 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 * 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: "@WebInspector.UISettingDelegate",
pfeldman 2014/03/27 15:27:14 type: "settings", title: "...", setting: "cacheDis
apavlov 2014/03/28 10:21:23 Done.
84 title: "Disable cache (while DevTools is open)",
85 settingName: "cacheDisabled",
86 settingType: "checkbox"
87 },
88 {
89 type: "@WebInspector.UISettingDelegate",
90 sectionName: "Appearance",
pfeldman 2014/03/27 15:27:14 section
apavlov 2014/03/28 10:21:23 Done.
91 title: "Split panels vertically when docked to %s",
92 settingName: "splitVerticallyWhenDockedToRight",
93 settingType: "checkbox",
94 className: "WebInspector.Main.SplitVerticallySettingDelegate"
95 },
96 {
97 type: "@WebInspector.UISettingDelegate",
98 sectionName: "Appearance",
99 title: "Enable %s + 1-9 shortcut to switch panels",
pfeldman 2014/03/27 15:27:14 I wonder if we should do platform-specific setting
apavlov 2014/03/28 10:21:23 Resorted to a custom setting element instead
100 settingName: "shortcutPanelSwitch",
101 settingType: "checkbox",
102 className: "WebInspector.Main.ShortcutPanelSwitchSettingDelegate "
81 } 103 }
82 ] 104 ]
83 }, 105 },
84 { 106 {
85 name: "elements", 107 name: "elements",
86 extensions: [ 108 extensions: [
87 { 109 {
88 type: "@WebInspector.Panel", 110 type: "@WebInspector.Panel",
89 name: "elements", 111 name: "elements",
90 title: "Elements", 112 title: "Elements",
(...skipping 21 matching lines...) Expand all
112 }, 134 },
113 { 135 {
114 type: "@WebInspector.Renderer", 136 type: "@WebInspector.Renderer",
115 contextTypes: ["WebInspector.DOMNode"], 137 contextTypes: ["WebInspector.DOMNode"],
116 className: "WebInspector.ElementsTreeOutline.Renderer" 138 className: "WebInspector.ElementsTreeOutline.Renderer"
117 }, 139 },
118 { 140 {
119 type: "@WebInspector.Revealer", 141 type: "@WebInspector.Revealer",
120 contextTypes: ["WebInspector.DOMNode"], 142 contextTypes: ["WebInspector.DOMNode"],
121 className: "WebInspector.ElementsPanel.DOMNodeRevealer" 143 className: "WebInspector.ElementsPanel.DOMNodeRevealer"
144 },
145 {
146 type: "@WebInspector.UISettingDelegate",
147 sectionName: "Elements",
148 title: "Color format",
149 settingName: "colorFormat",
150 settingType: "select",
151 className: "WebInspector.StylesSidebarPane.ColorFormatSettingDel egate"
152 },
153 {
154 type: "@WebInspector.UISettingDelegate",
155 sectionName: "Elements",
156 title: "Show user agent styles",
157 settingName: "showUserAgentStyles",
158 settingType: "checkbox"
159 },
160 {
161 type: "@WebInspector.UISettingDelegate",
162 sectionName: "Elements",
163 title: "Show user agent shadow DOM",
164 settingName: "showUAShadowDOM",
165 settingType: "checkbox"
166 },
167 {
168 type: "@WebInspector.UISettingDelegate",
169 sectionName: "Elements",
170 title: "Word wrap",
171 settingName: "domWordWrap",
172 settingType: "checkbox"
173 },
174 {
175 type: "@WebInspector.UISettingDelegate",
176 sectionName: "Elements",
177 title: "Show rulers",
178 settingName: "showMetricsRulers",
179 settingType: "checkbox"
122 } 180 }
123 ], 181 ],
124 scripts: [ "ElementsPanel.js" ] 182 scripts: [ "ElementsPanel.js" ]
125 }, 183 },
126 { 184 {
127 name: "network", 185 name: "network",
128 extensions: [ 186 extensions: [
129 { 187 {
130 type: "@WebInspector.Panel", 188 type: "@WebInspector.Panel",
131 name: "network", 189 name: "network",
(...skipping 18 matching lines...) Expand all
150 name: "codemirror", 208 name: "codemirror",
151 extensions: [ 209 extensions: [
152 { 210 {
153 type: "@WebInspector.InplaceEditor", 211 type: "@WebInspector.InplaceEditor",
154 className: "WebInspector.CodeMirrorUtils" 212 className: "WebInspector.CodeMirrorUtils"
155 }, 213 },
156 { 214 {
157 type: "@WebInspector.TokenizerFactory", 215 type: "@WebInspector.TokenizerFactory",
158 className: "WebInspector.CodeMirrorUtils.TokenizerFactory" 216 className: "WebInspector.CodeMirrorUtils.TokenizerFactory"
159 }, 217 },
218 {
219 type: "@WebInspector.UISettingDelegate",
220 sectionName: "Sources",
221 title: "Default indentation",
222 settingName: "textEditorIndent",
223 settingType: "select",
224 className: "WebInspector.CodeMirrorTextEditor.EditorIndentSettin gDelegate"
225 }
160 ], 226 ],
161 scripts: [ "CodeMirrorTextEditor.js" ] 227 scripts: [ "CodeMirrorTextEditor.js" ]
162 }, 228 },
163 { 229 {
164 name: "sources", 230 name: "sources",
165 extensions: [ 231 extensions: [
166 { 232 {
167 type: "@WebInspector.Panel", 233 type: "@WebInspector.Panel",
168 name: "sources", 234 name: "sources",
169 title: "Sources", 235 title: "Sources",
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 { 296 {
231 platform: "mac", 297 platform: "mac",
232 shortcut: "Meta+O Meta+P" 298 shortcut: "Meta+O Meta+P"
233 }, 299 },
234 { 300 {
235 platform: "win,linux", 301 platform: "win,linux",
236 shortcut: "Ctrl+O Ctrl+P" 302 shortcut: "Ctrl+O Ctrl+P"
237 } 303 }
238 ], 304 ],
239 className: "WebInspector.SourcesPanel.ShowGoToSourceDialogAction Delegate" 305 className: "WebInspector.SourcesPanel.ShowGoToSourceDialogAction Delegate"
306 },
307 {
308 type: "@WebInspector.UISettingDelegate",
309 title: "Disable JavaScript",
310 settingName: "javaScriptDisabled",
311 settingType: "checkbox",
312 configurable: true,
313 className: "WebInspector.SourcesPanel.DisableJavaScriptSettingDe legate"
314 },
315 {
316 type: "@WebInspector.UISettingDelegate",
317 sectionName: "Sources",
318 title: "Search in content scripts",
319 settingName: "searchInContentScripts",
320 settingType: "checkbox"
321 },
322 {
323 type: "@WebInspector.UISettingDelegate",
324 sectionName: "Sources",
325 title: "Enable JavaScript source maps",
326 settingName: "jsSourceMapsEnabled",
327 settingType: "checkbox"
328 },
329 {
330 type: "@WebInspector.UISettingDelegate",
331 sectionName: "Sources",
332 title: "Detect indentation",
333 settingName: "textEditorAutoDetectIndent",
334 settingType: "checkbox"
335 },
336 {
337 type: "@WebInspector.UISettingDelegate",
338 sectionName: "Sources",
339 title: "Autocompletion",
340 settingName: "textEditorAutocompletion",
341 settingType: "checkbox"
342 },
343 {
344 type: "@WebInspector.UISettingDelegate",
345 sectionName: "Sources",
346 title: "Bracket matching",
347 settingName: "textEditorBracketMatching",
348 settingType: "checkbox"
349 },
350 {
351 type: "@WebInspector.UISettingDelegate",
352 sectionName: "Sources",
353 title: "Show whitespace characters",
354 settingName: "showWhitespacesInEditor",
355 settingType: "checkbox"
356 },
357 {
358 type: "@WebInspector.UISettingDelegate",
359 sectionName: "Sources",
360 title: "Enable CSS source maps",
361 settingName: "cssSourceMapsEnabled",
362 settingType: "checkbox"
363 },
364 {
365 type: "@WebInspector.UISettingDelegate",
366 title: "Auto-reload generated CSS",
367 parentSettingName: "cssSourceMapsEnabled",
368 settingName: "cssReloadEnabled",
369 settingType: "checkbox"
370 },
371 {
372 type: "@WebInspector.UISettingDelegate",
373 sectionName: "Sources",
374 experiment: "frameworksDebuggingSupport",
375 title: "Skip stepping through sources with particular names",
376 settingName: "skipStackFramesSwitch",
377 settingType: "checkbox"
378 },
379 {
380 type: "@WebInspector.UISettingDelegate",
381 experiment: "frameworksDebuggingSupport",
382 title: "Pattern",
383 settingName: "skipStackFramesPattern",
384 parentSettingName: "skipStackFramesSwitch",
385 settingType: "input",
386 maxLength: 1000,
387 width: "100px",
388 className: "WebInspector.SourcesPanel.SkipStackFramePatternSetti ngDelegate"
240 } 389 }
241 ], 390 ],
242 scripts: [ "SourcesPanel.js" ] 391 scripts: [ "SourcesPanel.js" ]
243 }, 392 },
244 { 393 {
245 name: "timeline", 394 name: "timeline",
246 extensions: [ 395 extensions: [
247 { 396 {
248 type: "@WebInspector.Panel", 397 type: "@WebInspector.Panel",
249 name: "timeline", 398 name: "timeline",
(...skipping 11 matching lines...) Expand all
261 type: "@WebInspector.Panel", 410 type: "@WebInspector.Panel",
262 name: "profiles", 411 name: "profiles",
263 title: "Profiles", 412 title: "Profiles",
264 order: 4, 413 order: 4,
265 className: "WebInspector.ProfilesPanel" 414 className: "WebInspector.ProfilesPanel"
266 }, 415 },
267 { 416 {
268 type: "@WebInspector.ContextMenu.Provider", 417 type: "@WebInspector.ContextMenu.Provider",
269 contextTypes: ["WebInspector.RemoteObject"], 418 contextTypes: ["WebInspector.RemoteObject"],
270 className: "WebInspector.ProfilesPanel.ContextMenuProvider" 419 className: "WebInspector.ProfilesPanel.ContextMenuProvider"
420 },
421 {
422 type: "@WebInspector.UISettingDelegate",
423 sectionName: "Profiler",
424 title: "Show advanced heap snapshot properties",
425 settingName: "showAdvancedHeapSnapshotProperties",
426 settingType: "checkbox"
427 },
428 {
429 type: "@WebInspector.UISettingDelegate",
430 sectionName: "Profiler",
431 title: "High resolution CPU profiling",
432 settingName: "highResolutionCpuProfiling",
433 settingType: "checkbox"
271 } 434 }
272 ], 435 ],
273 scripts: [ "ProfilesPanel.js" ] 436 scripts: [ "ProfilesPanel.js" ]
274 }, 437 },
275 { 438 {
276 name: "resources", 439 name: "resources",
277 extensions: [ 440 extensions: [
278 { 441 {
279 type: "@WebInspector.Panel", 442 type: "@WebInspector.Panel",
280 name: "resources", 443 name: "resources",
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 className: "WebInspector.ConsolePanel.ConsoleRevealer" 489 className: "WebInspector.ConsolePanel.ConsoleRevealer"
327 }, 490 },
328 { 491 {
329 type: "@WebInspector.ActionDelegate", 492 type: "@WebInspector.ActionDelegate",
330 bindings: [ 493 bindings: [
331 { 494 {
332 shortcut: "Ctrl+`" 495 shortcut: "Ctrl+`"
333 } 496 }
334 ], 497 ],
335 className: "WebInspector.ConsoleView.ShowConsoleActionDelegate" 498 className: "WebInspector.ConsoleView.ShowConsoleActionDelegate"
499 },
500 {
501 type: "@WebInspector.UISettingDelegate",
502 sectionName: "Console",
503 title: "Log XMLHttpRequests",
504 settingName: "monitoringXHREnabled",
505 settingType: "checkbox"
506 },
507 {
508 type: "@WebInspector.UISettingDelegate",
509 sectionName: "Console",
510 title: "Preserve log upon navigation",
511 settingName: "preserveConsoleLog",
512 settingType: "checkbox"
513 },
514 {
515 type: "@WebInspector.UISettingDelegate",
516 sectionName: "Console",
517 title: "Show timestamps",
518 settingName: "consoleTimestampsEnabled",
519 settingType: "checkbox"
336 } 520 }
337 ], 521 ],
338 scripts: [ "ConsolePanel.js" ] 522 scripts: [ "ConsolePanel.js" ]
339 }, 523 },
340 { 524 {
341 name: "settings", 525 name: "settings",
342 extensions: [ 526 extensions: [
343 { 527 {
344 type: "@WebInspector.ActionDelegate", 528 type: "@WebInspector.ActionDelegate",
345 bindings: [ 529 bindings: [
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 name: "handler-registry", 567 name: "handler-registry",
384 extensions: [ 568 extensions: [
385 { 569 {
386 type: "@WebInspector.ContextMenu.Provider", 570 type: "@WebInspector.ContextMenu.Provider",
387 contextTypes: ["WebInspector.UISourceCode", "WebInspector.Resour ce", "WebInspector.NetworkRequest", "Node"], 571 contextTypes: ["WebInspector.UISourceCode", "WebInspector.Resour ce", "WebInspector.NetworkRequest", "Node"],
388 className: "WebInspector.HandlerRegistry.ContextMenuProvider" 572 className: "WebInspector.HandlerRegistry.ContextMenuProvider"
389 } 573 }
390 ] 574 ]
391 } 575 }
392 ]; 576 ];
OLDNEW
« Source/devtools/front_end/StylesSidebarPane.js ('K') | « Source/devtools/front_end/inspector.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698