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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/network/RequestHeadersView.js

Issue 2644233007: DevTools: Use real focus in TreeOutline (Closed)
Patch Set: Created 3 years, 11 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) IBM Corp. 2009 All rights reserved. 3 * Copyright (C) IBM Corp. 2009 All rights reserved.
4 * Copyright (C) 2010 Google Inc. All rights reserved. 4 * Copyright (C) 2010 Google Inc. All rights reserved.
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 18 matching lines...) Expand all
29 */ 29 */
30 30
31 /** 31 /**
32 * @unrestricted 32 * @unrestricted
33 */ 33 */
34 Network.RequestHeadersView = class extends UI.VBox { 34 Network.RequestHeadersView = class extends UI.VBox {
35 /** 35 /**
36 * @param {!SDK.NetworkRequest} request 36 * @param {!SDK.NetworkRequest} request
37 */ 37 */
38 constructor(request) { 38 constructor(request) {
39 super(); 39 super(true);
40 this.registerRequiredCSS('network/requestHeadersView.css'); 40 this.registerRequiredCSS('network/requestHeadersView.css');
41 this.element.classList.add('request-headers-view'); 41 this.element.classList.add('request-headers-view');
42 42
43 this._request = request; 43 this._request = request;
44 this._decodeRequestParameters = true; 44 this._decodeRequestParameters = true;
45 this._showRequestHeadersText = false; 45 this._showRequestHeadersText = false;
46 this._showResponseHeadersText = false; 46 this._showResponseHeadersText = false;
47 47
48 var root = new UI.TreeOutlineInShadow(); 48 var root = new UI.TreeOutlineInShadow();
49 root.registerRequiredCSS('network/requestHeadersTree.css'); 49 root.registerRequiredCSS('network/requestHeadersTree.css');
50 root.element.classList.add('request-headers-tree'); 50 root.element.classList.add('request-headers-tree');
51 root.setFocusable(false);
52 root.makeDense(); 51 root.makeDense();
53 root.expandTreeElementsWhenArrowing = true; 52 root.expandTreeElementsWhenArrowing = true;
54 this.element.appendChild(root.element); 53 this.element.appendChild(root.element);
55 54
56 var generalCategory = new Network.RequestHeadersView.Category(root, 'general ', Common.UIString('General')); 55 var generalCategory = new Network.RequestHeadersView.Category(root, 'general ', Common.UIString('General'));
57 generalCategory.hidden = false; 56 generalCategory.hidden = false;
58 this._urlItem = generalCategory.createLeaf(); 57 this._urlItem = generalCategory.createLeaf();
59 this._requestMethodItem = generalCategory.createLeaf(); 58 this._requestMethodItem = generalCategory.createLeaf();
60 this._statusCodeItem = generalCategory.createLeaf(); 59 this._statusCodeItem = generalCategory.createLeaf();
61 this._remoteAddressItem = generalCategory.createLeaf(); 60 this._remoteAddressItem = generalCategory.createLeaf();
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 this._expandedSetting.set(true); 531 this._expandedSetting.set(true);
533 } 532 }
534 533
535 /** 534 /**
536 * @override 535 * @override
537 */ 536 */
538 oncollapse() { 537 oncollapse() {
539 this._expandedSetting.set(false); 538 this._expandedSetting.set(false);
540 } 539 }
541 }; 540 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698