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

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

Issue 2372663004: DevTools: Replace multiline InplaceEditor with CodeMirrorTextEditor (Closed)
Patch Set: Created 4 years, 2 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 { 193 {
194 return this._visibleWidth; 194 return this._visibleWidth;
195 }, 195 },
196 196
197 /** 197 /**
198 * @param {number} width 198 * @param {number} width
199 */ 199 */
200 setVisibleWidth: function(width) 200 setVisibleWidth: function(width)
201 { 201 {
202 this._visibleWidth = width; 202 this._visibleWidth = width;
203 if (this._multilineEditing)
204 this._multilineEditing.setWidth(this._visibleWidth);
205 }, 203 },
206 204
207 /** 205 /**
208 * @param {?WebInspector.ElementsTreeOutline.ClipboardData} data 206 * @param {?WebInspector.ElementsTreeOutline.ClipboardData} data
209 */ 207 */
210 _setClipboardData: function(data) 208 _setClipboardData: function(data)
211 { 209 {
212 if (this._clipboardNodeData) { 210 if (this._clipboardNodeData) {
213 var treeElement = this.findTreeElement(this._clipboardNodeData.node) ; 211 var treeElement = this.findTreeElement(this._clipboardNodeData.node) ;
214 if (treeElement) 212 if (treeElement)
(...skipping 1582 matching lines...) Expand 10 before | Expand all | Expand 10 after
1797 if (node) { 1795 if (node) {
1798 this.treeOutline._selectedDOMNode = node; 1796 this.treeOutline._selectedDOMNode = node;
1799 this.treeOutline._selectedNodeChanged(); 1797 this.treeOutline._selectedNodeChanged();
1800 } 1798 }
1801 } 1799 }
1802 return true; 1800 return true;
1803 }, 1801 },
1804 1802
1805 __proto__: TreeElement.prototype 1803 __proto__: TreeElement.prototype
1806 } 1804 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698