| 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 24 matching lines...) Expand all Loading... |
| 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 | 38 |
| 39 this.element.addEventListener("contextmenu", this._contextMenuEventFired.bin
d(this), true); | 39 this.element.addEventListener("contextmenu", this._contextMenuEventFired.bin
d(this), true); |
| 40 WebInspector.moduleSetting("colorFormat").addChangeListener(this.update.bind
(this)); | 40 WebInspector.moduleSetting("colorFormat").addChangeListener(this.update.bind
(this)); |
| 41 WebInspector.moduleSetting("textEditorIndent").addChangeListener(this.update
.bind(this)); | 41 WebInspector.moduleSetting("textEditorIndent").addChangeListener(this.update
.bind(this)); |
| 42 | 42 |
| 43 var toolbar = new WebInspector.ExtensibleToolbar("styles-sidebarpane-toolbar
", this.titleElement); | 43 var toolbar = new WebInspector.ExtensibleToolbar("styles-sidebarpane-toolbar
", this.titleElement); |
| 44 toolbar.element.classList.add("styles-pane-toolbar"); | 44 toolbar.element.classList.add("styles-pane-toolbar"); |
| 45 toolbar.makeNarrow(); | 45 if (!Runtime.experiments.isEnabled("materialDesign")) |
| 46 toolbar.makeNarrow(); |
| 46 | 47 |
| 47 this._requestShowCallback = requestShowCallback; | 48 this._requestShowCallback = requestShowCallback; |
| 48 var toolbarPaneContainer = this.bodyElement.createChild("div", "styles-sideb
ar-toolbar-pane-container"); | 49 var toolbarPaneContainer = this.bodyElement.createChild("div", "styles-sideb
ar-toolbar-pane-container"); |
| 49 this._toolbarPaneElement = toolbarPaneContainer.createChild("div", "styles-s
idebar-toolbar-pane"); | 50 this._toolbarPaneElement = toolbarPaneContainer.createChild("div", "styles-s
idebar-toolbar-pane"); |
| 50 this._sectionsContainer = this.bodyElement.createChild("div"); | 51 this._sectionsContainer = this.bodyElement.createChild("div"); |
| 51 | 52 |
| 52 this._stylesPopoverHelper = new WebInspector.StylesPopoverHelper(); | 53 this._stylesPopoverHelper = new WebInspector.StylesPopoverHelper(); |
| 53 | 54 |
| 54 this._linkifier = new WebInspector.Linkifier(new WebInspector.Linkifier.Defa
ultCSSFormatter()); | 55 this._linkifier = new WebInspector.Linkifier(new WebInspector.Linkifier.Defa
ultCSSFormatter()); |
| 55 | 56 |
| (...skipping 3199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3255 | 3256 |
| 3256 /** | 3257 /** |
| 3257 * @override | 3258 * @override |
| 3258 * @return {?WebInspector.ToolbarItem} | 3259 * @return {?WebInspector.ToolbarItem} |
| 3259 */ | 3260 */ |
| 3260 item: function() | 3261 item: function() |
| 3261 { | 3262 { |
| 3262 return this._button; | 3263 return this._button; |
| 3263 } | 3264 } |
| 3264 } | 3265 } |
| OLD | NEW |