| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> | 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> |
| 4 * Copyright (C) 2009 Joseph Pecoraro | 4 * Copyright (C) 2009 Joseph Pecoraro |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * | 9 * |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 827 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 838 if (this.element.isAncestor(/** @type {!Node} */ (event.target))) | 838 if (this.element.isAncestor(/** @type {!Node} */ (event.target))) |
| 839 return; | 839 return; |
| 840 var commandCallback = WebInspector.Revealer.reveal.bind(WebInspector.Rev
ealer, object); | 840 var commandCallback = WebInspector.Revealer.reveal.bind(WebInspector.Rev
ealer, object); |
| 841 | 841 |
| 842 contextMenu.appendItem(WebInspector.UIString.capitalize("Reveal in Eleme
nts ^panel"), commandCallback); | 842 contextMenu.appendItem(WebInspector.UIString.capitalize("Reveal in Eleme
nts ^panel"), commandCallback); |
| 843 }, | 843 }, |
| 844 | 844 |
| 845 _sidebarContextMenuEventFired: function(event) | 845 _sidebarContextMenuEventFired: function(event) |
| 846 { | 846 { |
| 847 var contextMenu = new WebInspector.ContextMenu(event); | 847 var contextMenu = new WebInspector.ContextMenu(event); |
| 848 contextMenu.appendApplicableItems(/** @type {!Object} */ (event.deepElem
entFromPoint())); |
| 848 contextMenu.show(); | 849 contextMenu.show(); |
| 849 }, | 850 }, |
| 850 | 851 |
| 851 _dockSideChanged: function() | 852 _dockSideChanged: function() |
| 852 { | 853 { |
| 853 var vertically = WebInspector.dockController.isVertical() && WebInspecto
r.moduleSetting("splitVerticallyWhenDockedToRight").get(); | 854 var vertically = WebInspector.dockController.isVertical() && WebInspecto
r.moduleSetting("splitVerticallyWhenDockedToRight").get(); |
| 854 this._splitVertically(vertically); | 855 this._splitVertically(vertically); |
| 855 }, | 856 }, |
| 856 | 857 |
| 857 _showUAShadowDOMChanged: function() | 858 _showUAShadowDOMChanged: function() |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1119 WebInspector.ElementsPanelFactory.prototype = { | 1120 WebInspector.ElementsPanelFactory.prototype = { |
| 1120 /** | 1121 /** |
| 1121 * @override | 1122 * @override |
| 1122 * @return {!WebInspector.Panel} | 1123 * @return {!WebInspector.Panel} |
| 1123 */ | 1124 */ |
| 1124 createPanel: function() | 1125 createPanel: function() |
| 1125 { | 1126 { |
| 1126 return WebInspector.ElementsPanel.instance(); | 1127 return WebInspector.ElementsPanel.instance(); |
| 1127 } | 1128 } |
| 1128 } | 1129 } |
| OLD | NEW |