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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js

Issue 2565113002: DevTools: update console viewport scroll when prompt is resized (Closed)
Patch Set: DevTools: console should update viewport when codemirror resizes Created 4 years 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) 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 154
155 UI.context.addFlavorChangeListener(SDK.ExecutionContext, this._executionCont extChanged, this); 155 UI.context.addFlavorChangeListener(SDK.ExecutionContext, this._executionCont extChanged, this);
156 156
157 this._messagesElement.addEventListener('mousedown', this._updateStickToBotto mOnMouseDown.bind(this), false); 157 this._messagesElement.addEventListener('mousedown', this._updateStickToBotto mOnMouseDown.bind(this), false);
158 this._messagesElement.addEventListener('mouseup', this._updateStickToBottomO nMouseUp.bind(this), false); 158 this._messagesElement.addEventListener('mouseup', this._updateStickToBottomO nMouseUp.bind(this), false);
159 this._messagesElement.addEventListener('mouseleave', this._updateStickToBott omOnMouseUp.bind(this), false); 159 this._messagesElement.addEventListener('mouseleave', this._updateStickToBott omOnMouseUp.bind(this), false);
160 this._messagesElement.addEventListener('wheel', this._updateStickToBottomOnW heel.bind(this), false); 160 this._messagesElement.addEventListener('wheel', this._updateStickToBottomOnW heel.bind(this), false);
161 } 161 }
162 162
163 /** 163 /**
164 * @override
165 */
166 onLayout() {
167 this._scheduleViewportRefresh();
168 }
169
170 /**
164 * @return {!Console.ConsoleView} 171 * @return {!Console.ConsoleView}
165 */ 172 */
166 static instance() { 173 static instance() {
167 if (!Console.ConsoleView._instance) 174 if (!Console.ConsoleView._instance)
168 Console.ConsoleView._instance = new Console.ConsoleView(); 175 Console.ConsoleView._instance = new Console.ConsoleView();
169 return Console.ConsoleView._instance; 176 return Console.ConsoleView._instance;
170 } 177 }
171 178
172 static clearConsole() { 179 static clearConsole() {
173 for (var target of SDK.targetManager.targets()) { 180 for (var target of SDK.targetManager.targets()) {
(...skipping 1162 matching lines...) Expand 10 before | Expand all | Expand 10 after
1336 return true; 1343 return true;
1337 } 1344 }
1338 return false; 1345 return false;
1339 } 1346 }
1340 }; 1347 };
1341 1348
1342 /** 1349 /**
1343 * @typedef {{messageIndex: number, matchIndex: number}} 1350 * @typedef {{messageIndex: number, matchIndex: number}}
1344 */ 1351 */
1345 Console.ConsoleView.RegexMatchRange; 1352 Console.ConsoleView.RegexMatchRange;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698