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

Side by Side Diff: Source/devtools/front_end/ConsolePanel.js

Issue 199633011: DevTools: switching from Console tab does not restore console in the drawer. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Joseph Pecoraro 2 * Copyright (C) 2009 Joseph Pecoraro
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 77
78 /** 78 /**
79 * @constructor 79 * @constructor
80 * @extends {WebInspector.VBox} 80 * @extends {WebInspector.VBox}
81 */ 81 */
82 WebInspector.ConsolePanel.WrapperView = function() 82 WebInspector.ConsolePanel.WrapperView = function()
83 { 83 {
84 WebInspector.VBox.call(this); 84 WebInspector.VBox.call(this);
85 this.element.classList.add("console-view-wrapper"); 85 this.element.classList.add("console-view-wrapper");
86 86
87 WebInspector.ConsolePanel.WrapperView._instance = this;
88
87 this._view = WebInspector.ConsolePanel._view(); 89 this._view = WebInspector.ConsolePanel._view();
88 // FIXME: this won't be needed once drawer becomes a view. 90 // FIXME: this won't be needed once drawer becomes a view.
89 this.wasShown(); 91 this.wasShown();
90 } 92 }
91 93
92 WebInspector.ConsolePanel.WrapperView.prototype = { 94 WebInspector.ConsolePanel.WrapperView.prototype = {
93 wasShown: function() 95 wasShown: function()
94 { 96 {
95 if (!WebInspector.inspectorView.currentPanel() || WebInspector.inspector View.currentPanel().name !== "console") 97 if (!WebInspector.inspectorView.currentPanel() || WebInspector.inspector View.currentPanel().name !== "console")
96 this._showViewInWrapper(); 98 this._showViewInWrapper();
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 return; 137 return;
136 138
137 var consoleView = WebInspector.ConsolePanel._view(); 139 var consoleView = WebInspector.ConsolePanel._view();
138 if (consoleView.isShowing()) { 140 if (consoleView.isShowing()) {
139 consoleView.focus(); 141 consoleView.focus();
140 return; 142 return;
141 } 143 }
142 WebInspector.inspectorView.showViewInDrawer("console"); 144 WebInspector.inspectorView.showViewInDrawer("console");
143 } 145 }
144 } 146 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698