| 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 | 152 |
| 153 UI.viewManager = new UI.ViewManager(); | 153 UI.viewManager = new UI.ViewManager(); |
| 154 | 154 |
| 155 // Request filesystems early, we won't create connections until callback is
fired. Things will happen in parallel. | 155 // Request filesystems early, we won't create connections until callback is
fired. Things will happen in parallel. |
| 156 Persistence.isolatedFileSystemManager = new Persistence.IsolatedFileSystemMa
nager(); | 156 Persistence.isolatedFileSystemManager = new Persistence.IsolatedFileSystemMa
nager(); |
| 157 | 157 |
| 158 var themeSetting = Common.settings.createSetting('uiTheme', 'default'); | 158 var themeSetting = Common.settings.createSetting('uiTheme', 'default'); |
| 159 UI.initializeUIUtils(document, themeSetting); | 159 UI.initializeUIUtils(document, themeSetting); |
| 160 themeSetting.addChangeListener(Components.reload.bind(Components)); | 160 themeSetting.addChangeListener(Components.reload.bind(Components)); |
| 161 | 161 |
| 162 UI.installComponentRootStyles(/** @type {!Element} */ (document.body)); | 162 UI.installComponentRootStyles(document, /** @type {!Element} */ (document.bo
dy)); |
| 163 | 163 |
| 164 this._addMainEventListeners(document); | 164 this._addMainEventListeners(document); |
| 165 | 165 |
| 166 var canDock = !!Runtime.queryParam('can_dock'); | 166 var canDock = !!Runtime.queryParam('can_dock'); |
| 167 UI.zoomManager = new UI.ZoomManager(window, InspectorFrontendHost); | 167 UI.zoomManager = new UI.ZoomManager(window, InspectorFrontendHost); |
| 168 UI.inspectorView = UI.InspectorView.instance(); | 168 UI.inspectorView = UI.InspectorView.instance(); |
| 169 UI.ContextMenu.initialize(); | 169 UI.ContextMenu.initialize(); |
| 170 UI.ContextMenu.installHandler(document); | 170 UI.ContextMenu.installHandler(document); |
| 171 UI.Tooltip.installHandler(document); | 171 UI.Tooltip.installHandler(document); |
| 172 Components.dockController = new Components.DockController(canDock); | 172 Components.dockController = new Components.DockController(canDock); |
| (...skipping 810 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 983 * @override | 983 * @override |
| 984 * @return {?Element} | 984 * @return {?Element} |
| 985 */ | 985 */ |
| 986 settingElement() { | 986 settingElement() { |
| 987 return UI.SettingsUI.createSettingCheckbox( | 987 return UI.SettingsUI.createSettingCheckbox( |
| 988 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers'
)); | 988 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers'
)); |
| 989 } | 989 } |
| 990 }; | 990 }; |
| 991 | 991 |
| 992 new Main.Main(); | 992 new Main.Main(); |
| OLD | NEW |