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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/ui/View.js

Issue 2790813002: DevTools: ViewContainer shouldn't be a tab stop (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
« no previous file with comments | « third_party/WebKit/LayoutTests/inspector/elements/elements-tab-stops-expected.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 /** 4 /**
5 * @interface 5 * @interface
6 */ 6 */
7 UI.View = function() {}; 7 UI.View = function() {};
8 8
9 UI.View.prototype = { 9 UI.View.prototype = {
10 /** 10 /**
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 * @unrestricted 413 * @unrestricted
414 */ 414 */
415 UI.ViewManager._ContainerWidget = class extends UI.VBox { 415 UI.ViewManager._ContainerWidget = class extends UI.VBox {
416 /** 416 /**
417 * @param {!UI.View} view 417 * @param {!UI.View} view
418 */ 418 */
419 constructor(view) { 419 constructor(view) {
420 super(); 420 super();
421 this.element.classList.add('flex-auto', 'view-container', 'overflow-auto'); 421 this.element.classList.add('flex-auto', 'view-container', 'overflow-auto');
422 this._view = view; 422 this._view = view;
423 this.element.tabIndex = 0; 423 this.element.tabIndex = -1;
424 this.setDefaultFocusedElement(this.element); 424 this.setDefaultFocusedElement(this.element);
425 } 425 }
426 426
427 /** 427 /**
428 * @return {!Promise} 428 * @return {!Promise}
429 */ 429 */
430 _materialize() { 430 _materialize() {
431 if (this._materializePromise) 431 if (this._materializePromise)
432 return this._materializePromise; 432 return this._materializePromise;
433 var promises = []; 433 var promises = [];
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
864 appendApplicableItems(locationName) { 864 appendApplicableItems(locationName) {
865 for (var view of this._manager._viewsForLocation(locationName)) 865 for (var view of this._manager._viewsForLocation(locationName))
866 this.appendView(view); 866 this.appendView(view);
867 } 867 }
868 }; 868 };
869 869
870 /** 870 /**
871 * @type {!UI.ViewManager} 871 * @type {!UI.ViewManager}
872 */ 872 */
873 UI.viewManager; 873 UI.viewManager;
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/inspector/elements/elements-tab-stops-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698