| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
| 3 * Copyright (C) 2011 Google Inc. All rights reserved. | 3 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 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 1652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1663 var uiSourceCodes = this._editorContainer.historyUISourceCodes(); | 1663 var uiSourceCodes = this._editorContainer.historyUISourceCodes(); |
| 1664 /** @type {!Map.<!WebInspector.UISourceCode, number>} */ | 1664 /** @type {!Map.<!WebInspector.UISourceCode, number>} */ |
| 1665 var defaultScores = new Map(); | 1665 var defaultScores = new Map(); |
| 1666 for (var i = 1; i < uiSourceCodes.length; ++i) // Skip current element | 1666 for (var i = 1; i < uiSourceCodes.length; ++i) // Skip current element |
| 1667 defaultScores.put(uiSourceCodes[i], uiSourceCodes.length - i); | 1667 defaultScores.put(uiSourceCodes[i], uiSourceCodes.length - i); |
| 1668 WebInspector.OpenResourceDialog.show(this, this.editorView.mainElement()
, undefined, defaultScores); | 1668 WebInspector.OpenResourceDialog.show(this, this.editorView.mainElement()
, undefined, defaultScores); |
| 1669 }, | 1669 }, |
| 1670 | 1670 |
| 1671 _dockSideChanged: function() | 1671 _dockSideChanged: function() |
| 1672 { | 1672 { |
| 1673 var dockSide = WebInspector.dockController.dockSide(); | 1673 var vertically = WebInspector.dockController.isVertical() && WebInspecto
r.settings.splitVerticallyWhenDockedToRight.get(); |
| 1674 var vertically = dockSide === WebInspector.DockController.State.DockedTo
Right && WebInspector.settings.splitVerticallyWhenDockedToRight.get(); | |
| 1675 this._splitVertically(vertically); | 1674 this._splitVertically(vertically); |
| 1676 }, | 1675 }, |
| 1677 | 1676 |
| 1678 /** | 1677 /** |
| 1679 * @param {boolean} vertically | 1678 * @param {boolean} vertically |
| 1680 */ | 1679 */ |
| 1681 _splitVertically: function(vertically) | 1680 _splitVertically: function(vertically) |
| 1682 { | 1681 { |
| 1683 if (this.sidebarPaneView && vertically === !this.splitView.isVertical()) | 1682 if (this.sidebarPaneView && vertically === !this.splitView.isVertical()) |
| 1684 return; | 1683 return; |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1901 WebInspector.SourcesPanel.UILocationRevealer.prototype = { | 1900 WebInspector.SourcesPanel.UILocationRevealer.prototype = { |
| 1902 /** | 1901 /** |
| 1903 * @param {!Object} uiLocation | 1902 * @param {!Object} uiLocation |
| 1904 */ | 1903 */ |
| 1905 reveal: function(uiLocation) | 1904 reveal: function(uiLocation) |
| 1906 { | 1905 { |
| 1907 if (uiLocation instanceof WebInspector.UILocation) | 1906 if (uiLocation instanceof WebInspector.UILocation) |
| 1908 /** @type {!WebInspector.SourcesPanel} */ (WebInspector.showPanel("s
ources")).showUILocation(uiLocation); | 1907 /** @type {!WebInspector.SourcesPanel} */ (WebInspector.showPanel("s
ources")).showUILocation(uiLocation); |
| 1909 } | 1908 } |
| 1910 } | 1909 } |
| OLD | NEW |