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

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: Fix stray space in test Created 3 years, 7 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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 var treeOutline = this._treeOutlines[i]; 316 var treeOutline = this._treeOutlines[i];
317 treeOutline.setVisible(true); 317 treeOutline.setVisible(true);
318 318
319 if (!treeOutline.rootDOMNode) { 319 if (!treeOutline.rootDOMNode) {
320 if (treeOutline.domModel().existingDocument()) 320 if (treeOutline.domModel().existingDocument())
321 this._documentUpdated(treeOutline.domModel(), treeOutline.domModel().e xistingDocument()); 321 this._documentUpdated(treeOutline.domModel(), treeOutline.domModel().e xistingDocument());
322 else 322 else
323 treeOutline.domModel().requestDocument(); 323 treeOutline.domModel().requestDocument();
324 } 324 }
325 } 325 }
326 this.focus();
327 } 326 }
328 327
329 /** 328 /**
330 * @override 329 * @override
331 */ 330 */
332 willHide() { 331 willHide() {
333 UI.context.setFlavor(Elements.ElementsPanel, null); 332 UI.context.setFlavor(Elements.ElementsPanel, null);
334 333
335 SDK.OverlayModel.hideDOMNodeHighlight(); 334 SDK.OverlayModel.hideDOMNodeHighlight();
336 for (var i = 0; i < this._treeOutlines.length; ++i) { 335 for (var i = 0; i < this._treeOutlines.length; ++i) {
(...skipping 750 matching lines...) Expand 10 before | Expand all | Expand 10 after
1087 * @param {!SDK.DOMNode} node 1086 * @param {!SDK.DOMNode} node
1088 * @return {?{title: string, color: string}} 1087 * @return {?{title: string, color: string}}
1089 */ 1088 */
1090 decorate(node) { 1089 decorate(node) {
1091 return { 1090 return {
1092 color: 'orange', 1091 color: 'orange',
1093 title: Common.UIString('Element state: %s', ':' + node.domModel().cssModel ().pseudoState(node).join(', :')) 1092 title: Common.UIString('Element state: %s', ':' + node.domModel().cssModel ().pseudoState(node).join(', :'))
1094 }; 1093 };
1095 } 1094 }
1096 }; 1095 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698