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

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

Issue 2205123003: DevTools: introduce view locations, allow opening views by id. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments addressed Created 4 years, 4 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) 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 * @param {!Object} object 122 * @param {!Object} object
123 * @return {!Promise} 123 * @return {!Promise}
124 */ 124 */
125 reveal: function(object) 125 reveal: function(object)
126 { 126 {
127 var consoleView = WebInspector.ConsoleView.instance(); 127 var consoleView = WebInspector.ConsoleView.instance();
128 if (consoleView.isShowing()) { 128 if (consoleView.isShowing()) {
129 consoleView.focus(); 129 consoleView.focus();
130 return Promise.resolve(); 130 return Promise.resolve();
131 } 131 }
132 WebInspector.inspectorView.showViewInDrawer("console"); 132 WebInspector.viewManager.showView("console");
133 return Promise.resolve(); 133 return Promise.resolve();
134 } 134 }
135 } 135 }
136 136
137 WebInspector.ConsolePanel.show = function() 137 WebInspector.ConsolePanel.show = function()
138 { 138 {
139 WebInspector.inspectorView.setCurrentPanel(WebInspector.ConsolePanel._instan ce()); 139 WebInspector.inspectorView.setCurrentPanel(WebInspector.ConsolePanel._instan ce());
140 } 140 }
141 141
142 /** 142 /**
143 * @return {!WebInspector.ConsolePanel} 143 * @return {!WebInspector.ConsolePanel}
144 */ 144 */
145 WebInspector.ConsolePanel._instance = function() 145 WebInspector.ConsolePanel._instance = function()
146 { 146 {
147 return /** @type {!WebInspector.ConsolePanel} */ (self.runtime.sharedInstanc e(WebInspector.ConsolePanel)); 147 return /** @type {!WebInspector.ConsolePanel} */ (self.runtime.sharedInstanc e(WebInspector.ConsolePanel));
148 } 148 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698