| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <!-- | 2 <!-- |
| 3 Copyright (c) 2014 The Chromium Authors. All rights reserved. | 3 Copyright (c) 2014 The Chromium Authors. All rights reserved. |
| 4 Use of this source code is governed by a BSD-style license that can be | 4 Use of this source code is governed by a BSD-style license that can be |
| 5 found in the LICENSE file. | 5 found in the LICENSE file. |
| 6 --> | 6 --> |
| 7 | 7 |
| 8 <link rel="stylesheet" href="/tracing/ui/base/list_and_associated_view.css"> | 8 <link rel="stylesheet" href="/tracing/ui/base/list_and_associated_view.css"> |
| 9 | 9 |
| 10 <link rel="import" href="/tracing/ui/base/list_view.html"> | 10 <link rel="import" href="/tracing/ui/base/list_view.html"> |
| 11 <link rel="import" href="/tracing/ui/base/ui.html"> | 11 <link rel="import" href="/tracing/ui/base/ui.html"> |
| 12 | 12 |
| 13 <script> | 13 <script> |
| 14 'use strict'; | 14 'use strict'; |
| 15 | 15 |
| 16 /** | 16 /** |
| 17 * @fileoverview A list of things, and a viewer for the currently selected | 17 * @fileoverview A list of things, and a viewer for the currently selected |
| 18 * thing. | 18 * thing. |
| 19 */ | 19 */ |
| 20 tr.exportTo('tr.ui.b', function() { | 20 tr.exportTo('tr.ui.b', function() { |
| 21 | 21 |
| 22 /** | 22 /** |
| 23 * @constructor | 23 * @constructor |
| 24 */ | 24 */ |
| 25 var ListAndAssociatedView = tr.ui.b.define('x-list-and-associated-view'); | 25 var ListAndAssociatedView = tr.ui.b.define('x-list-and-associated-view'); |
| 26 ListAndAssociatedView.prototype = { | 26 ListAndAssociatedView.prototype = { |
| 27 __proto__: HTMLUnknownElement.prototype, | 27 __proto__: HTMLDivElement.prototype, |
| 28 | 28 |
| 29 decorate: function() { | 29 decorate: function() { |
| 30 this.list_ = undefined; | 30 this.list_ = undefined; |
| 31 this.listProperty_ = undefined; | 31 this.listProperty_ = undefined; |
| 32 this.view_ = undefined; | 32 this.view_ = undefined; |
| 33 this.viewProperty_ = undefined; | 33 this.viewProperty_ = undefined; |
| 34 this.listView_ = new tr.ui.b.ListView(); | 34 this.listView_ = new tr.ui.b.ListView(); |
| 35 this.listView_.addEventListener('selection-changed', | 35 this.listView_.addEventListener('selection-changed', |
| 36 this.onSelectionChanged_.bind(this)); | 36 this.onSelectionChanged_.bind(this)); |
| 37 this.placeholder_ = document.createElement('div'); | 37 this.placeholder_ = document.createElement('div'); |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 undefined); | 129 undefined); |
| 130 } | 130 } |
| 131 } | 131 } |
| 132 }; | 132 }; |
| 133 | 133 |
| 134 return { | 134 return { |
| 135 ListAndAssociatedView: ListAndAssociatedView | 135 ListAndAssociatedView: ListAndAssociatedView |
| 136 }; | 136 }; |
| 137 }); | 137 }); |
| 138 </script> | 138 </script> |
| OLD | NEW |