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

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

Issue 1176343002: DevTools: make toolbar button click targets square (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: review comments addressed Created 5 years, 6 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 | Annotate | Revision Log
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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 WebInspector.ElementsPanel._elementsSidebarViewTitleSymbol = Symbol("title"); 113 WebInspector.ElementsPanel._elementsSidebarViewTitleSymbol = Symbol("title");
114 114
115 WebInspector.ElementsPanel.prototype = { 115 WebInspector.ElementsPanel.prototype = {
116 /** 116 /**
117 * @return {!WebInspector.Toolbar} 117 * @return {!WebInspector.Toolbar}
118 */ 118 */
119 _createElementsToolbar: function() 119 _createElementsToolbar: function()
120 { 120 {
121 var toolbar = new WebInspector.ExtensibleToolbar("elements-toolbar"); 121 var toolbar = new WebInspector.ExtensibleToolbar("elements-toolbar");
122 toolbar.element.classList.add("elements-toolbar"); 122 toolbar.element.classList.add("elements-toolbar");
123 toolbar.appendToolbarItem(new WebInspector.ToolbarSeparator()); 123 toolbar.appendSeparator();
124 return toolbar; 124 return toolbar;
125 }, 125 },
126 126
127 _loadSidebarViews: function() 127 _loadSidebarViews: function()
128 { 128 {
129 var extensions = self.runtime.extensions("@WebInspector.Widget"); 129 var extensions = self.runtime.extensions("@WebInspector.Widget");
130 130
131 for (var i = 0; i < extensions.length; ++i) { 131 for (var i = 0; i < extensions.length; ++i) {
132 var descriptor = extensions[i].descriptor(); 132 var descriptor = extensions[i].descriptor();
133 if (descriptor["location"] !== "elements-panel") 133 if (descriptor["location"] !== "elements-panel")
(...skipping 985 matching lines...) Expand 10 before | Expand all | Expand 10 after
1119 WebInspector.ElementsPanelFactory.prototype = { 1119 WebInspector.ElementsPanelFactory.prototype = {
1120 /** 1120 /**
1121 * @override 1121 * @override
1122 * @return {!WebInspector.Panel} 1122 * @return {!WebInspector.Panel}
1123 */ 1123 */
1124 createPanel: function() 1124 createPanel: function()
1125 { 1125 {
1126 return WebInspector.ElementsPanel.instance(); 1126 return WebInspector.ElementsPanel.instance();
1127 } 1127 }
1128 } 1128 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698