| 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 | 160 |
| 161 var canDock = !!Runtime.queryParam('can_dock'); | 161 var canDock = !!Runtime.queryParam('can_dock'); |
| 162 UI.zoomManager = new UI.ZoomManager(window, InspectorFrontendHost); | 162 UI.zoomManager = new UI.ZoomManager(window, InspectorFrontendHost); |
| 163 UI.inspectorView = UI.InspectorView.instance(); | 163 UI.inspectorView = UI.InspectorView.instance(); |
| 164 UI.ContextMenu.initialize(); | 164 UI.ContextMenu.initialize(); |
| 165 UI.ContextMenu.installHandler(document); | 165 UI.ContextMenu.installHandler(document); |
| 166 UI.Tooltip.installHandler(document); | 166 UI.Tooltip.installHandler(document); |
| 167 Components.dockController = new Components.DockController(canDock); | 167 Components.dockController = new Components.DockController(canDock); |
| 168 ConsoleModel.consoleModel = new ConsoleModel.ConsoleModel(); | 168 ConsoleModel.consoleModel = new ConsoleModel.ConsoleModel(); |
| 169 SDK.multitargetNetworkManager = new SDK.MultitargetNetworkManager(); | 169 SDK.multitargetNetworkManager = new SDK.MultitargetNetworkManager(); |
| 170 SDK.networkLog = new SDK.NetworkLog(); |
| 170 SDK.targetManager.addEventListener( | 171 SDK.targetManager.addEventListener( |
| 171 SDK.TargetManager.Events.SuspendStateChanged, this._onSuspendStateChange
d.bind(this)); | 172 SDK.TargetManager.Events.SuspendStateChanged, this._onSuspendStateChange
d.bind(this)); |
| 172 | 173 |
| 173 UI.shortcutsScreen = new UI.ShortcutsScreen(); | 174 UI.shortcutsScreen = new UI.ShortcutsScreen(); |
| 174 // set order of some sections explicitly | 175 // set order of some sections explicitly |
| 175 UI.shortcutsScreen.section(Common.UIString('Elements Panel')); | 176 UI.shortcutsScreen.section(Common.UIString('Elements Panel')); |
| 176 UI.shortcutsScreen.section(Common.UIString('Styles Pane')); | 177 UI.shortcutsScreen.section(Common.UIString('Styles Pane')); |
| 177 UI.shortcutsScreen.section(Common.UIString('Debugger')); | 178 UI.shortcutsScreen.section(Common.UIString('Debugger')); |
| 178 UI.shortcutsScreen.section(Common.UIString('Console')); | 179 UI.shortcutsScreen.section(Common.UIString('Console')); |
| 179 | 180 |
| (...skipping 772 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 952 * @override | 953 * @override |
| 953 * @return {?Element} | 954 * @return {?Element} |
| 954 */ | 955 */ |
| 955 settingElement() { | 956 settingElement() { |
| 956 return UI.SettingsUI.createSettingCheckbox( | 957 return UI.SettingsUI.createSettingCheckbox( |
| 957 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers'
)); | 958 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers'
)); |
| 958 } | 959 } |
| 959 }; | 960 }; |
| 960 | 961 |
| 961 new Main.Main(); | 962 new Main.Main(); |
| OLD | NEW |