| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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; |
| OLD | NEW |