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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js

Issue 2319523004: DevTools: Remember the last focused widget. (Closed)
Patch Set: Created 4 years, 3 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * 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 * 10 *
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 contextMenu.appendItem(searchLabel, searchPath); 150 contextMenu.appendItem(searchLabel, searchPath);
151 } 151 }
152 152
153 WebInspector.NavigatorView.prototype = { 153 WebInspector.NavigatorView.prototype = {
154 /** 154 /**
155 * @override 155 * @override
156 */ 156 */
157 focus: function() 157 focus: function()
158 { 158 {
159 this._scriptsTree.focus(); 159 this._scriptsTree.focus();
160 this.wasFocused();
160 }, 161 },
161 162
162 /** 163 /**
163 * @param {!WebInspector.Workspace} workspace 164 * @param {!WebInspector.Workspace} workspace
164 */ 165 */
165 _resetWorkspace: function(workspace) 166 _resetWorkspace: function(workspace)
166 { 167 {
167 this._workspace = workspace; 168 this._workspace = workspace;
168 this._workspace.addEventListener(WebInspector.Workspace.Events.UISourceC odeAdded, this._uiSourceCodeAdded, this); 169 this._workspace.addEventListener(WebInspector.Workspace.Events.UISourceC odeAdded, this._uiSourceCodeAdded, this);
169 this._workspace.addEventListener(WebInspector.Workspace.Events.UISourceC odeRemoved, this._uiSourceCodeRemoved, this); 170 this._workspace.addEventListener(WebInspector.Workspace.Events.UISourceC odeRemoved, this._uiSourceCodeRemoved, this);
(...skipping 1399 matching lines...) Expand 10 before | Expand all | Expand 10 after
1569 { 1570 {
1570 if (this._treeElement) 1571 if (this._treeElement)
1571 return this._treeElement; 1572 return this._treeElement;
1572 this._treeElement = new WebInspector.NavigatorFolderTreeElement(this._na vigatorView, this._type, this._title, this._hoverCallback); 1573 this._treeElement = new WebInspector.NavigatorFolderTreeElement(this._na vigatorView, this._type, this._title, this._hoverCallback);
1573 this._treeElement.setNode(this); 1574 this._treeElement.setNode(this);
1574 return this._treeElement; 1575 return this._treeElement;
1575 }, 1576 },
1576 1577
1577 __proto__: WebInspector.NavigatorTreeNode.prototype 1578 __proto__: WebInspector.NavigatorTreeNode.prototype
1578 } 1579 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698