Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1815)

Unified Diff: Source/devtools/front_end/main/Main.js

Issue 1294033002: Devtools: Fix tooltip z-index and add tooltip for dock side (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/devtools/front_end/ui/tooltip.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/main/Main.js
diff --git a/Source/devtools/front_end/main/Main.js b/Source/devtools/front_end/main/Main.js
index 1b9c9010eb7d0b5e8ae4c9aa14fa861d0ee56b9f..917cb750f323fe73806d43d0ddfec873327e3f87 100644
--- a/Source/devtools/front_end/main/Main.js
+++ b/Source/devtools/front_end/main/Main.js
@@ -818,10 +818,12 @@ WebInspector.Main.MainMenuItem.prototype = {
var dockItemElement = createElementWithClass("div", "flex-centered flex-auto");
var titleElement = dockItemElement.createChild("span", "flex-auto");
titleElement.textContent = WebInspector.UIString("Dock side");
+ var toggleDockSideShorcuts = WebInspector.shortcutRegistry.shortcutDescriptorsForAction("main.toggle-dock");
+ WebInspector.Tooltip.install(titleElement, WebInspector.UIString("Placement of DevTools relative to the page. (%s to restore last position)", toggleDockSideShorcuts[0].name));
dockItemElement.appendChild(titleElement);
var dockItemToolbar = new WebInspector.Toolbar(dockItemElement);
dockItemToolbar.makeBlueOnHover();
- var undock = new WebInspector.ToolbarButton( WebInspector.UIString("Undock into separate window"), "dock-toolbar-item-undock");
+ var undock = new WebInspector.ToolbarButton(WebInspector.UIString("Undock into separate window"), "dock-toolbar-item-undock");
var bottom = new WebInspector.ToolbarButton(WebInspector.UIString("Dock to bottom"), "dock-toolbar-item-bottom");
var right = new WebInspector.ToolbarButton(WebInspector.UIString("Dock to right"), "dock-toolbar-item-right");
undock.addEventListener("mouseup", setDockSide.bind(null, WebInspector.DockController.State.Undocked));
« no previous file with comments | « no previous file | Source/devtools/front_end/ui/tooltip.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698