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