| 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 795 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 806 var contextMenu = new WebInspector.ContextMenu(/** @type {!Event} */(eve
nt.data), | 806 var contextMenu = new WebInspector.ContextMenu(/** @type {!Event} */(eve
nt.data), |
| 807 true, | 807 true, |
| 808 this._item.element.totalOffsetLeft(), | 808 this._item.element.totalOffsetLeft(), |
| 809 this._item.element.totalOffsetTop() + this._item.element.offsetHeigh
t); | 809 this._item.element.totalOffsetTop() + this._item.element.offsetHeigh
t); |
| 810 | 810 |
| 811 if (WebInspector.dockController.canDock()) { | 811 if (WebInspector.dockController.canDock()) { |
| 812 var dockItemElement = createElementWithClass("div", "flex-centered f
lex-auto"); | 812 var dockItemElement = createElementWithClass("div", "flex-centered f
lex-auto"); |
| 813 var titleElement = dockItemElement.createChild("span", "flex-auto"); | 813 var titleElement = dockItemElement.createChild("span", "flex-auto"); |
| 814 titleElement.textContent = WebInspector.UIString("Dock side"); | 814 titleElement.textContent = WebInspector.UIString("Dock side"); |
| 815 var toggleDockSideShorcuts = WebInspector.shortcutRegistry.shortcutD
escriptorsForAction("main.toggle-dock"); | 815 var toggleDockSideShorcuts = WebInspector.shortcutRegistry.shortcutD
escriptorsForAction("main.toggle-dock"); |
| 816 WebInspector.Tooltip.install(titleElement, WebInspector.UIString("Pl
acement of DevTools relative to the page. (%s to restore last position)", toggle
DockSideShorcuts[0].name)); | 816 titleElement.title = WebInspector.UIString("Placement of DevTools re
lative to the page. (%s to restore last position)", toggleDockSideShorcuts[0].na
me); |
| 817 dockItemElement.appendChild(titleElement); | 817 dockItemElement.appendChild(titleElement); |
| 818 var dockItemToolbar = new WebInspector.Toolbar(dockItemElement); | 818 var dockItemToolbar = new WebInspector.Toolbar(dockItemElement); |
| 819 dockItemToolbar.makeBlueOnHover(); | 819 dockItemToolbar.makeBlueOnHover(); |
| 820 var undock = new WebInspector.ToolbarButton(WebInspector.UIString("U
ndock into separate window"), "dock-toolbar-item-undock"); | 820 var undock = new WebInspector.ToolbarButton(WebInspector.UIString("U
ndock into separate window"), "dock-toolbar-item-undock"); |
| 821 var bottom = new WebInspector.ToolbarButton(WebInspector.UIString("D
ock to bottom"), "dock-toolbar-item-bottom"); | 821 var bottom = new WebInspector.ToolbarButton(WebInspector.UIString("D
ock to bottom"), "dock-toolbar-item-bottom"); |
| 822 var right = new WebInspector.ToolbarButton(WebInspector.UIString("Do
ck to right"), "dock-toolbar-item-right"); | 822 var right = new WebInspector.ToolbarButton(WebInspector.UIString("Do
ck to right"), "dock-toolbar-item-right"); |
| 823 undock.addEventListener("mouseup", setDockSide.bind(null, WebInspect
or.DockController.State.Undocked)); | 823 undock.addEventListener("mouseup", setDockSide.bind(null, WebInspect
or.DockController.State.Undocked)); |
| 824 bottom.addEventListener("mouseup", setDockSide.bind(null, WebInspect
or.DockController.State.DockedToBottom)); | 824 bottom.addEventListener("mouseup", setDockSide.bind(null, WebInspect
or.DockController.State.DockedToBottom)); |
| 825 right.addEventListener("mouseup", setDockSide.bind(null, WebInspecto
r.DockController.State.DockedToRight)); | 825 right.addEventListener("mouseup", setDockSide.bind(null, WebInspecto
r.DockController.State.DockedToRight)); |
| 826 undock.setToggled(WebInspector.dockController.dockSide() === WebInsp
ector.DockController.State.Undocked); | 826 undock.setToggled(WebInspector.dockController.dockSide() === WebInsp
ector.DockController.State.Undocked); |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 935 p.classList.add("help-section"); | 935 p.classList.add("help-section"); |
| 936 p.textContent = WebInspector.UIString("Inspected worker has terminated. Once
it restarts we will attach to it automatically."); | 936 p.textContent = WebInspector.UIString("Inspected worker has terminated. Once
it restarts we will attach to it automatically."); |
| 937 } | 937 } |
| 938 | 938 |
| 939 WebInspector.WorkerTerminatedScreen.prototype = { | 939 WebInspector.WorkerTerminatedScreen.prototype = { |
| 940 | 940 |
| 941 __proto__: WebInspector.HelpScreen.prototype | 941 __proto__: WebInspector.HelpScreen.prototype |
| 942 } | 942 } |
| 943 | 943 |
| 944 new WebInspector.Main(); | 944 new WebInspector.Main(); |
| OLD | NEW |