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

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

Issue 2466123002: DevTools: reformat front-end code to match chromium style. (Closed)
Patch Set: Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js b/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js
index ff148463f3a0a280eaf413e736f9eea5b61ff53a..eb1bb6175af5c8dd7950c0c90cbcbe7725f10a26 100644
--- a/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js
+++ b/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js
@@ -330,16 +330,25 @@ WebInspector.ConsoleView.prototype = {
this._updateMessageList();
},
+ /**
+ * @override
+ */
willHide: function()
{
this._hidePromptSuggestBox();
},
+ /**
+ * @override
+ */
wasShown: function()
{
this._viewport.refresh();
},
+ /**
+ * @override
+ */
focus: function()
{
if (this._prompt.hasFocus())
@@ -350,14 +359,20 @@ WebInspector.ConsoleView.prototype = {
this._prompt.focus();
},
+ /**
+ * @override
+ */
restoreScrollPositions: function()
{
if (this._viewport.stickToBottom())
this._immediatelyScrollToBottom();
else
- WebInspector.Widget.prototype.restoreScrollPositions.call(this);
+ WebInspector.VBox.prototype.restoreScrollPositions.call(this);
},
+ /**
+ * @override
+ */
onResize: function()
{
this._scheduleViewportRefresh();

Powered by Google App Engine
This is Rietveld 408576698