| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |