OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. |
3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). | 3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.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 718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
729 /** | 729 /** |
730 * @return {boolean} | 730 * @return {boolean} |
731 */ | 731 */ |
732 handleAction: function() | 732 handleAction: function() |
733 { | 733 { |
734 WebInspector.reload(); | 734 WebInspector.reload(); |
735 return true; | 735 return true; |
736 } | 736 } |
737 } | 737 } |
738 | 738 |
| 739 /** |
| 740 * @constructor |
| 741 * @extends {WebInspector.UISettingDelegate} |
| 742 */ |
| 743 WebInspector.Main.ShortcutPanelSwitchSettingDelegate = function() |
| 744 { |
| 745 WebInspector.UISettingDelegate.call(this); |
| 746 } |
| 747 |
| 748 WebInspector.Main.ShortcutPanelSwitchSettingDelegate.prototype = { |
| 749 /** |
| 750 * @override |
| 751 * @return {!Element} |
| 752 */ |
| 753 settingElement: function() |
| 754 { |
| 755 var modifier = WebInspector.platform() === "mac" ? "Cmd" : "Ctrl"; |
| 756 return WebInspector.SettingsUI.createSettingCheckbox(WebInspector.UIStri
ng("Enable %s + 1-9 shortcut to switch panels", modifier), WebInspector.settings
.shortcutPanelSwitch); |
| 757 }, |
| 758 |
| 759 __proto__: WebInspector.UISettingDelegate.prototype |
| 760 } |
| 761 |
739 new WebInspector.Main(); | 762 new WebInspector.Main(); |
740 | 763 |
741 window.DEBUG = true; | 764 window.DEBUG = true; |
742 | 765 |
743 // These methods are added for backwards compatibility with Devtools CodeSchool
extension. | 766 // These methods are added for backwards compatibility with Devtools CodeSchool
extension. |
744 // DO NOT REMOVE | 767 // DO NOT REMOVE |
745 | 768 |
746 WebInspector.__defineGetter__("inspectedPageURL", function() | 769 WebInspector.__defineGetter__("inspectedPageURL", function() |
747 { | 770 { |
748 return WebInspector.resourceTreeModel.inspectedPageURL(); | 771 return WebInspector.resourceTreeModel.inspectedPageURL(); |
749 }); | 772 }); |
750 | 773 |
751 WebInspector.panel = function(name) | 774 WebInspector.panel = function(name) |
752 { | 775 { |
753 return WebInspector.inspectorView.panel(name); | 776 return WebInspector.inspectorView.panel(name); |
754 } | 777 } |
OLD | NEW |