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 821 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
832 | 832 |
833 /** | 833 /** |
834 * @param {string} side | 834 * @param {string} side |
835 */ | 835 */ |
836 function setDockSide(side) | 836 function setDockSide(side) |
837 { | 837 { |
838 WebInspector.dockController.setDockSide(side); | 838 WebInspector.dockController.setDockSide(side); |
839 contextMenu.discard(); | 839 contextMenu.discard(); |
840 } | 840 } |
841 | 841 |
842 contextMenu.appendAction("main.toggle-drawer", WebInspector.inspectorVie
w.drawerVisible() ? WebInspector.UIString("Hide console") : WebInspector.UIStrin
g("Show console")); | 842 contextMenu.appendAction("main.toggle-drawer", WebInspector.inspectorVie
w.drawerVisible() ? WebInspector.UIString("Hide console drawer") : WebInspector.
UIString("Show console drawer")); |
843 contextMenu.appendItemsAtLocation("mainMenu"); | 843 contextMenu.appendItemsAtLocation("mainMenu"); |
844 var moreTools = contextMenu.namedSubMenu("mainMenuMoreTools"); | 844 var moreTools = contextMenu.namedSubMenu("mainMenuMoreTools"); |
845 var extensions = self.runtime.extensions("drawer-view", undefined, true)
; | 845 var extensions = self.runtime.extensions("drawer-view", undefined, true)
; |
846 for (var extension of extensions) { | 846 for (var extension of extensions) { |
847 var descriptor = extension.descriptor(); | 847 var descriptor = extension.descriptor(); |
848 moreTools.appendItem(extension.title(), WebInspector.inspectorView.s
howViewInDrawer.bind(WebInspector.inspectorView, descriptor["name"])); | 848 moreTools.appendItem(extension.title(), WebInspector.inspectorView.s
howViewInDrawer.bind(WebInspector.inspectorView, descriptor["name"])); |
849 } | 849 } |
850 | 850 |
851 contextMenu.show(); | 851 contextMenu.show(); |
852 } | 852 } |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1101 * @return {?Element} | 1101 * @return {?Element} |
1102 */ | 1102 */ |
1103 settingElement: function() | 1103 settingElement: function() |
1104 { | 1104 { |
1105 return WebInspector.SettingsUI.createSettingCheckbox(WebInspector.UIStri
ng("Show rulers"), WebInspector.moduleSetting("showMetricsRulers")); | 1105 return WebInspector.SettingsUI.createSettingCheckbox(WebInspector.UIStri
ng("Show rulers"), WebInspector.moduleSetting("showMetricsRulers")); |
1106 } | 1106 } |
1107 } | 1107 } |
1108 | 1108 |
1109 | 1109 |
1110 new WebInspector.Main(); | 1110 new WebInspector.Main(); |
OLD | NEW |