OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 var advancedMode = WebInspector.settings.createSetting("showHeaSnapshotO
bjectsHiddenProperties", false).get(); | 349 var advancedMode = WebInspector.settings.createSetting("showHeaSnapshotO
bjectsHiddenProperties", false).get(); |
350 WebInspector.moduleSetting("showAdvancedHeapSnapshotProperties").set(adv
ancedMode); | 350 WebInspector.moduleSetting("showAdvancedHeapSnapshotProperties").set(adv
ancedMode); |
351 }, | 351 }, |
352 | 352 |
353 _updateVersionFrom4To5: function() | 353 _updateVersionFrom4To5: function() |
354 { | 354 { |
355 if (!window.localStorage) | 355 if (!window.localStorage) |
356 return; | 356 return; |
357 var settingNames = { | 357 var settingNames = { |
358 "FileSystemViewSidebarWidth": "fileSystemViewSplitViewState", | 358 "FileSystemViewSidebarWidth": "fileSystemViewSplitViewState", |
359 "canvasProfileViewReplaySplitLocation": "canvasProfileViewReplaySpli
tViewState", | |
360 "canvasProfileViewSplitLocation": "canvasProfileViewSplitViewState", | |
361 "elementsSidebarWidth": "elementsPanelSplitViewState", | 359 "elementsSidebarWidth": "elementsPanelSplitViewState", |
362 "StylesPaneSplitRatio": "stylesPaneSplitViewState", | 360 "StylesPaneSplitRatio": "stylesPaneSplitViewState", |
363 "heapSnapshotRetainersViewSize": "heapSnapshotSplitViewState", | 361 "heapSnapshotRetainersViewSize": "heapSnapshotSplitViewState", |
364 "InspectorView.splitView": "InspectorView.splitViewState", | 362 "InspectorView.splitView": "InspectorView.splitViewState", |
365 "InspectorView.screencastSplitView": "InspectorView.screencastSplitV
iewState", | 363 "InspectorView.screencastSplitView": "InspectorView.screencastSplitV
iewState", |
366 "Inspector.drawerSplitView": "Inspector.drawerSplitViewState", | 364 "Inspector.drawerSplitView": "Inspector.drawerSplitViewState", |
367 "layerDetailsSplitView": "layerDetailsSplitViewState", | 365 "layerDetailsSplitView": "layerDetailsSplitViewState", |
368 "networkSidebarWidth": "networkPanelSplitViewState", | 366 "networkSidebarWidth": "networkPanelSplitViewState", |
369 "sourcesSidebarWidth": "sourcesPanelSplitViewState", | 367 "sourcesSidebarWidth": "sourcesPanelSplitViewState", |
370 "scriptsPanelNavigatorSidebarWidth": "sourcesPanelNavigatorSplitView
State", | 368 "scriptsPanelNavigatorSidebarWidth": "sourcesPanelNavigatorSplitView
State", |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 }, | 431 }, |
434 | 432 |
435 _updateVersionFrom6To7: function() | 433 _updateVersionFrom6To7: function() |
436 { | 434 { |
437 if (!window.localStorage) | 435 if (!window.localStorage) |
438 return; | 436 return; |
439 | 437 |
440 var settingNames = { | 438 var settingNames = { |
441 "sourcesPanelNavigatorSplitViewState": "sourcesPanelNavigatorSplitVi
ewState", | 439 "sourcesPanelNavigatorSplitViewState": "sourcesPanelNavigatorSplitVi
ewState", |
442 "elementsPanelSplitViewState": "elementsPanelSplitViewState", | 440 "elementsPanelSplitViewState": "elementsPanelSplitViewState", |
443 "canvasProfileViewReplaySplitViewState": "canvasProfileViewReplaySpl
itViewState", | |
444 "stylesPaneSplitViewState": "stylesPaneSplitViewState", | 441 "stylesPaneSplitViewState": "stylesPaneSplitViewState", |
445 "sourcesPanelDebuggerSidebarSplitViewState": "sourcesPanelDebuggerSi
debarSplitViewState" | 442 "sourcesPanelDebuggerSidebarSplitViewState": "sourcesPanelDebuggerSi
debarSplitViewState" |
446 }; | 443 }; |
447 | 444 |
448 for (var name in settingNames) { | 445 for (var name in settingNames) { |
449 if (!(name in window.localStorage)) | 446 if (!(name in window.localStorage)) |
450 continue; | 447 continue; |
451 var setting = WebInspector.settings.createSetting(name, undefined); | 448 var setting = WebInspector.settings.createSetting(name, undefined); |
452 var value = setting.get(); | 449 var value = setting.get(); |
453 if (!value) | 450 if (!value) |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
668 } | 665 } |
669 | 666 |
670 /** | 667 /** |
671 * @param {string} settingName | 668 * @param {string} settingName |
672 * @return {!WebInspector.Setting} | 669 * @return {!WebInspector.Setting} |
673 */ | 670 */ |
674 WebInspector.settingForTest = function(settingName) | 671 WebInspector.settingForTest = function(settingName) |
675 { | 672 { |
676 return WebInspector.settings.settingForTest(settingName); | 673 return WebInspector.settings.settingForTest(settingName); |
677 } | 674 } |
OLD | NEW |