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

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

Issue 396993003: DevTools: get rid of WebInspector.cssModel, use target models instead (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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
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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 WebInspector.ConsolePanel.ConsoleRevealer = function() 126 WebInspector.ConsolePanel.ConsoleRevealer = function()
127 { 127 {
128 } 128 }
129 129
130 WebInspector.ConsolePanel.ConsoleRevealer.prototype = { 130 WebInspector.ConsolePanel.ConsoleRevealer.prototype = {
131 /** 131 /**
132 * @param {!Object} object 132 * @param {!Object} object
133 */ 133 */
134 reveal: function(object) 134 reveal: function(object)
135 { 135 {
136 if (!(object instanceof WebInspector.ConsoleModel))
137 return;
138
139 var consoleView = WebInspector.ConsolePanel._view(); 136 var consoleView = WebInspector.ConsolePanel._view();
140 if (consoleView.isShowing()) { 137 if (consoleView.isShowing()) {
141 consoleView.focus(); 138 consoleView.focus();
142 return; 139 return;
143 } 140 }
144 WebInspector.inspectorView.showViewInDrawer("console"); 141 WebInspector.inspectorView.showViewInDrawer("console");
145 } 142 }
146 } 143 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/common/Console.js ('k') | Source/devtools/front_end/console/ConsoleView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698