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

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

Issue 2812713002: [DevTools] Make dock buttons from main menu work on click (Closed)
Patch Set: Created 3 years, 8 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/main/Main.js
diff --git a/third_party/WebKit/Source/devtools/front_end/main/Main.js b/third_party/WebKit/Source/devtools/front_end/main/Main.js
index d8aa132ec1ff785aa73b93fee03beda4c4251f2d..cfb46ea8e10145c73af3f7dc192bb89cf5c6ad90 100644
--- a/third_party/WebKit/Source/devtools/front_end/main/Main.js
+++ b/third_party/WebKit/Source/devtools/front_end/main/Main.js
@@ -694,6 +694,10 @@ Main.Main.MainMenuItem = class {
var bottom = new UI.ToolbarToggle(Common.UIString('Dock to bottom'), 'largeicon-dock-to-bottom');
var right = new UI.ToolbarToggle(Common.UIString('Dock to right'), 'largeicon-dock-to-right');
var left = new UI.ToolbarToggle(Common.UIString('Dock to left'), 'largeicon-dock-to-left');
+ undock.addEventListener(UI.ToolbarButton.Events.MouseDown, event => event.data.consume());
+ bottom.addEventListener(UI.ToolbarButton.Events.MouseDown, event => event.data.consume());
+ right.addEventListener(UI.ToolbarButton.Events.MouseDown, event => event.data.consume());
+ left.addEventListener(UI.ToolbarButton.Events.MouseDown, event => event.data.consume());
undock.addEventListener(
UI.ToolbarButton.Events.MouseUp, setDockSide.bind(null, Components.DockController.State.Undocked));
bottom.addEventListener(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698