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