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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/elements/ElementsPanel.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) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com>
4 * Copyright (C) 2009 Joseph Pecoraro 4 * Copyright (C) 2009 Joseph Pecoraro
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 this._treeOutlines[i].setVisibleWidth(width); 249 this._treeOutlines[i].setVisibleWidth(width);
250 } 250 }
251 this._breadcrumbs.updateSizes(); 251 this._breadcrumbs.updateSizes();
252 }, 252 },
253 253
254 /** 254 /**
255 * @override 255 * @override
256 */ 256 */
257 focus: function() 257 focus: function()
258 { 258 {
259 if (this._treeOutlines.length) 259 if (this._treeOutlines.length) {
260 this._treeOutlines[0].focus(); 260 this._treeOutlines[0].focus();
261 this.wasFocused();
262 }
261 }, 263 },
262 264
263 /** 265 /**
264 * @override 266 * @override
265 * @return {!WebInspector.SearchableView} 267 * @return {!WebInspector.SearchableView}
266 */ 268 */
267 searchableView: function() 269 searchableView: function()
268 { 270 {
269 return this._searchableView; 271 return this._searchableView;
270 }, 272 },
(...skipping 844 matching lines...) Expand 10 before | Expand all | Expand 10 after
1115 /** 1117 /**
1116 * @override 1118 * @override
1117 * @param {!WebInspector.DOMNode} node 1119 * @param {!WebInspector.DOMNode} node
1118 * @return {?{title: string, color: string}} 1120 * @return {?{title: string, color: string}}
1119 */ 1121 */
1120 decorate: function(node) 1122 decorate: function(node)
1121 { 1123 {
1122 return { color: "orange", title: WebInspector.UIString("Element state: % s", ":" + WebInspector.CSSModel.fromNode(node).pseudoState(node).join(", :")) }; 1124 return { color: "orange", title: WebInspector.UIString("Element state: % s", ":" + WebInspector.CSSModel.fromNode(node).pseudoState(node).join(", :")) };
1123 } 1125 }
1124 } 1126 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698