| OLD | NEW |
| 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 17 matching lines...) Expand all Loading... |
| 28 */ | 28 */ |
| 29 | 29 |
| 30 /** | 30 /** |
| 31 * @constructor | 31 * @constructor |
| 32 * @extends {WebInspector.ElementsSidebarPane} | 32 * @extends {WebInspector.ElementsSidebarPane} |
| 33 * @param {function()} requestShowCallback | 33 * @param {function()} requestShowCallback |
| 34 */ | 34 */ |
| 35 WebInspector.StylesSidebarPane = function(requestShowCallback) | 35 WebInspector.StylesSidebarPane = function(requestShowCallback) |
| 36 { | 36 { |
| 37 WebInspector.ElementsSidebarPane.call(this, WebInspector.UIString("Styles"))
; | 37 WebInspector.ElementsSidebarPane.call(this, WebInspector.UIString("Styles"))
; |
| 38 this.setMinimumSize(96, 26); |
| 38 | 39 |
| 39 this.element.addEventListener("contextmenu", this._contextMenuEventFired.bin
d(this), true); | 40 this.element.addEventListener("contextmenu", this._contextMenuEventFired.bin
d(this), true); |
| 40 WebInspector.moduleSetting("colorFormat").addChangeListener(this.update.bind
(this)); | 41 WebInspector.moduleSetting("colorFormat").addChangeListener(this.update.bind
(this)); |
| 41 WebInspector.moduleSetting("textEditorIndent").addChangeListener(this.update
.bind(this)); | 42 WebInspector.moduleSetting("textEditorIndent").addChangeListener(this.update
.bind(this)); |
| 42 | 43 |
| 43 var hbox = this.element.createChild("div", "hbox styles-sidebar-pane-toolbar
"); | 44 var hbox = this.element.createChild("div", "hbox styles-sidebar-pane-toolbar
"); |
| 44 var filterContainerElement = hbox.createChild("div", "styles-sidebar-pane-fi
lter-box"); | 45 var filterContainerElement = hbox.createChild("div", "styles-sidebar-pane-fi
lter-box"); |
| 45 this._filterInput = WebInspector.StylesSidebarPane.createPropertyFilterEleme
nt(WebInspector.UIString("Filter"), hbox, this._onFilterChanged.bind(this)); | 46 this._filterInput = WebInspector.StylesSidebarPane.createPropertyFilterEleme
nt(WebInspector.UIString("Filter"), hbox, this._onFilterChanged.bind(this)); |
| 46 filterContainerElement.appendChild(this._filterInput); | 47 filterContainerElement.appendChild(this._filterInput); |
| 47 | 48 |
| (...skipping 3203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3251 | 3252 |
| 3252 /** | 3253 /** |
| 3253 * @override | 3254 * @override |
| 3254 * @return {?WebInspector.ToolbarItem} | 3255 * @return {?WebInspector.ToolbarItem} |
| 3255 */ | 3256 */ |
| 3256 item: function() | 3257 item: function() |
| 3257 { | 3258 { |
| 3258 return this._button; | 3259 return this._button; |
| 3259 } | 3260 } |
| 3260 } | 3261 } |
| OLD | NEW |