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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/elements/ElementsPanel.js

Issue 2805593002: DevTools: Navigate TabbedPane with arrow keys (Closed)
Patch Set: Created 3 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
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 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 var treeOutline = this._treeOutlines[i]; 314 var treeOutline = this._treeOutlines[i];
315 treeOutline.setVisible(true); 315 treeOutline.setVisible(true);
316 316
317 if (!treeOutline.rootDOMNode) { 317 if (!treeOutline.rootDOMNode) {
318 if (treeOutline.domModel().existingDocument()) 318 if (treeOutline.domModel().existingDocument())
319 this._documentUpdated(treeOutline.domModel(), treeOutline.domModel().e xistingDocument()); 319 this._documentUpdated(treeOutline.domModel(), treeOutline.domModel().e xistingDocument());
320 else 320 else
321 treeOutline.domModel().requestDocument(); 321 treeOutline.domModel().requestDocument();
322 } 322 }
323 } 323 }
324 this.focus();
325 } 324 }
326 325
327 /** 326 /**
328 * @override 327 * @override
329 */ 328 */
330 willHide() { 329 willHide() {
331 UI.context.setFlavor(Elements.ElementsPanel, null); 330 UI.context.setFlavor(Elements.ElementsPanel, null);
332 331
333 SDK.DOMModel.hideDOMNodeHighlight(); 332 SDK.DOMModel.hideDOMNodeHighlight();
334 for (var i = 0; i < this._treeOutlines.length; ++i) { 333 for (var i = 0; i < this._treeOutlines.length; ++i) {
(...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after
1093 * @param {!SDK.DOMNode} node 1092 * @param {!SDK.DOMNode} node
1094 * @return {?{title: string, color: string}} 1093 * @return {?{title: string, color: string}}
1095 */ 1094 */
1096 decorate(node) { 1095 decorate(node) {
1097 return { 1096 return {
1098 color: 'orange', 1097 color: 'orange',
1099 title: Common.UIString('Element state: %s', ':' + node.domModel().cssModel ().pseudoState(node).join(', :')) 1098 title: Common.UIString('Element state: %s', ':' + node.domModel().cssModel ().pseudoState(node).join(', :'))
1100 }; 1099 };
1101 } 1100 }
1102 }; 1101 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698