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

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

Issue 1909423002: DevTools: ConsolePanel should delegate focus() to ConsoleView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add @override Created 4 years, 8 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
« 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 * @return {!Element} 42 * @return {!Element}
43 */ 43 */
44 defaultFocusedElement: function() 44 defaultFocusedElement: function()
45 { 45 {
46 return this._view.defaultFocusedElement(); 46 return this._view.defaultFocusedElement();
47 }, 47 },
48 48
49 /** 49 /**
50 * @override 50 * @override
51 */ 51 */
52 focus: function()
53 {
54 this._view.focus();
55 },
56
57 /**
58 * @override
59 */
52 wasShown: function() 60 wasShown: function()
53 { 61 {
54 WebInspector.Panel.prototype.wasShown.call(this); 62 WebInspector.Panel.prototype.wasShown.call(this);
55 var wrapper = WebInspector.ConsolePanel.WrapperView._instance; 63 var wrapper = WebInspector.ConsolePanel.WrapperView._instance;
56 if (wrapper && wrapper.isShowing()) 64 if (wrapper && wrapper.isShowing())
57 WebInspector.inspectorView.setDrawerMinimized(true); 65 WebInspector.inspectorView.setDrawerMinimized(true);
58 this._view.show(this.element); 66 this._view.show(this.element);
59 }, 67 },
60 68
61 /** 69 /**
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 WebInspector.ConsolePanelFactory.prototype = { 191 WebInspector.ConsolePanelFactory.prototype = {
184 /** 192 /**
185 * @override 193 * @override
186 * @return {!WebInspector.Panel} 194 * @return {!WebInspector.Panel}
187 */ 195 */
188 createPanel: function() 196 createPanel: function()
189 { 197 {
190 return WebInspector.ConsolePanel._instance(); 198 return WebInspector.ConsolePanel._instance();
191 } 199 }
192 } 200 }
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