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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/elements/ComputedStyleWidget.js

Issue 2678623002: DevTools: pass title when creating settings (Closed)
Patch Set: ac Created 3 years, 10 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 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 Apple Inc. All rights reserved.
3 * Copyright (C) 2009 Joseph Pecoraro 3 * Copyright (C) 2009 Joseph Pecoraro
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 this._showInheritedComputedStyleChanged.bind(this)); 48 this._showInheritedComputedStyleChanged.bind(this));
49 49
50 var hbox = this.element.createChild('div', 'hbox styles-sidebar-pane-toolbar '); 50 var hbox = this.element.createChild('div', 'hbox styles-sidebar-pane-toolbar ');
51 var filterContainerElement = hbox.createChild('div', 'styles-sidebar-pane-fi lter-box'); 51 var filterContainerElement = hbox.createChild('div', 'styles-sidebar-pane-fi lter-box');
52 var filterInput = Elements.StylesSidebarPane.createPropertyFilterElement( 52 var filterInput = Elements.StylesSidebarPane.createPropertyFilterElement(
53 Common.UIString('Filter'), hbox, filterCallback.bind(this)); 53 Common.UIString('Filter'), hbox, filterCallback.bind(this));
54 UI.ARIAUtils.setAccessibleName(filterInput, Common.UIString('Filter Computed Styles')); 54 UI.ARIAUtils.setAccessibleName(filterInput, Common.UIString('Filter Computed Styles'));
55 filterContainerElement.appendChild(filterInput); 55 filterContainerElement.appendChild(filterInput);
56 56
57 var toolbar = new UI.Toolbar('styles-pane-toolbar', hbox); 57 var toolbar = new UI.Toolbar('styles-pane-toolbar', hbox);
58 toolbar.appendToolbarItem(new UI.ToolbarCheckbox( 58 toolbar.appendToolbarItem(new UI.ToolbarSettingCheckbox(
59 Common.UIString('Show all'), undefined, this._showInheritedComputedStyle PropertiesSetting)); 59 this._showInheritedComputedStylePropertiesSetting, undefined, Common.UIS tring('Show all')));
60 60
61 this._propertiesOutline = new UI.TreeOutlineInShadow(); 61 this._propertiesOutline = new UI.TreeOutlineInShadow();
62 this._propertiesOutline.hideOverflow(); 62 this._propertiesOutline.hideOverflow();
63 this._propertiesOutline.registerRequiredCSS('elements/computedStyleSidebarPa ne.css'); 63 this._propertiesOutline.registerRequiredCSS('elements/computedStyleSidebarPa ne.css');
64 this._propertiesOutline.element.classList.add('monospace', 'computed-propert ies'); 64 this._propertiesOutline.element.classList.add('monospace', 'computed-propert ies');
65 this.element.appendChild(this._propertiesOutline.element); 65 this.element.appendChild(this._propertiesOutline.element);
66 66
67 this._linkifier = new Components.Linkifier(Elements.ComputedStyleWidget._max LinkLength); 67 this._linkifier = new Components.Linkifier(Elements.ComputedStyleWidget._max LinkLength);
68 68
69 /** 69 /**
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 var property = child[Elements.ComputedStyleWidget._propertySymbol]; 339 var property = child[Elements.ComputedStyleWidget._propertySymbol];
340 var matched = !regex || regex.test(property.name) || regex.test(property.v alue); 340 var matched = !regex || regex.test(property.name) || regex.test(property.v alue);
341 child.hidden = !matched; 341 child.hidden = !matched;
342 } 342 }
343 } 343 }
344 }; 344 };
345 345
346 Elements.ComputedStyleWidget._maxLinkLength = 30; 346 Elements.ComputedStyleWidget._maxLinkLength = 30;
347 347
348 Elements.ComputedStyleWidget._propertySymbol = Symbol('property'); 348 Elements.ComputedStyleWidget._propertySymbol = Symbol('property');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698