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

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: blur Created 3 years, 9 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 */ 138 */
139 visibleWidth() { 139 visibleWidth() {
140 return this._visibleWidth; 140 return this._visibleWidth;
141 } 141 }
142 142
143 /** 143 /**
144 * @param {number} width 144 * @param {number} width
145 */ 145 */
146 setVisibleWidth(width) { 146 setVisibleWidth(width) {
147 this._visibleWidth = width; 147 this._visibleWidth = width;
148 if (this._multilineEditing)
lushnikov 2017/03/01 23:52:48 let's resize to accomodate all space
einbinder 2017/03/02 00:25:09 Done.
149 this._multilineEditing.setWidth(this._visibleWidth);
150 } 148 }
151 149
152 /** 150 /**
153 * @param {?Elements.ElementsTreeOutline.ClipboardData} data 151 * @param {?Elements.ElementsTreeOutline.ClipboardData} data
154 */ 152 */
155 _setClipboardData(data) { 153 _setClipboardData(data) {
156 if (this._clipboardNodeData) { 154 if (this._clipboardNodeData) {
157 var treeElement = this.findTreeElement(this._clipboardNodeData.node); 155 var treeElement = this.findTreeElement(this._clipboardNodeData.node);
158 if (treeElement) 156 if (treeElement)
159 treeElement.setInClipboard(false); 157 treeElement.setInClipboard(false);
(...skipping 1529 matching lines...) Expand 10 before | Expand all | Expand 10 after
1689 */ 1687 */
1690 function resolved(node) { 1688 function resolved(node) {
1691 if (node) { 1689 if (node) {
1692 this.treeOutline._selectedDOMNode = node; 1690 this.treeOutline._selectedDOMNode = node;
1693 this.treeOutline._selectedNodeChanged(); 1691 this.treeOutline._selectedNodeChanged();
1694 } 1692 }
1695 } 1693 }
1696 return true; 1694 return true;
1697 } 1695 }
1698 }; 1696 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698