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

Side by Side Diff: Source/devtools/front_end/ElementsPanel.js

Issue 146733002: [DevTools] Dock to left mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Made an experiment Created 6 years, 11 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.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 1169 matching lines...) Expand 10 before | Expand all | Expand 10 after
1180 }, 1180 },
1181 1181
1182 _sidebarContextMenuEventFired: function(event) 1182 _sidebarContextMenuEventFired: function(event)
1183 { 1183 {
1184 var contextMenu = new WebInspector.ContextMenu(event); 1184 var contextMenu = new WebInspector.ContextMenu(event);
1185 contextMenu.show(); 1185 contextMenu.show();
1186 }, 1186 },
1187 1187
1188 _dockSideChanged: function() 1188 _dockSideChanged: function()
1189 { 1189 {
1190 var dockSide = WebInspector.dockController.dockSide(); 1190 var vertically = WebInspector.dockController.isVertical() && WebInspecto r.settings.splitVerticallyWhenDockedToRight.get();
1191 var vertically = dockSide === WebInspector.DockController.State.DockedTo Right && WebInspector.settings.splitVerticallyWhenDockedToRight.get();
1192 this._splitVertically(vertically); 1191 this._splitVertically(vertically);
1193 }, 1192 },
1194 1193
1195 _showShadowDOMChanged: function() 1194 _showShadowDOMChanged: function()
1196 { 1195 {
1197 this.treeOutline.update(); 1196 this.treeOutline.update();
1198 }, 1197 },
1199 1198
1200 /** 1199 /**
1201 * @param {boolean} vertically 1200 * @param {boolean} vertically
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
1372 WebInspector.ElementsPanel.DOMNodeRevealer.prototype = { 1371 WebInspector.ElementsPanel.DOMNodeRevealer.prototype = {
1373 /** 1372 /**
1374 * @param {!Object} node 1373 * @param {!Object} node
1375 */ 1374 */
1376 reveal: function(node) 1375 reveal: function(node)
1377 { 1376 {
1378 if (node instanceof WebInspector.DOMNode) 1377 if (node instanceof WebInspector.DOMNode)
1379 /** @type {!WebInspector.ElementsPanel} */ (WebInspector.showPanel(" elements")).revealAndSelectNode(node.id); 1378 /** @type {!WebInspector.ElementsPanel} */ (WebInspector.showPanel(" elements")).revealAndSelectNode(node.id);
1380 } 1379 }
1381 } 1380 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/DockController.js ('k') | Source/devtools/front_end/Images/src/statusbarButtonGlyphs.svg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698