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

Side by Side Diff: chrome/browser/resources/shared/js/cr/ui/table.js

Issue 8424008: TaskManager: Added "inspect" on context-menu on the task list. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 /** 5 /**
6 * @fileoverview This implements a table control. 6 * @fileoverview This implements a table control.
7 */ 7 */
8 8
9 cr.define('cr.ui', function() { 9 cr.define('cr.ui', function() {
10 const ListSelectionModel = cr.ui.ListSelectionModel; 10 const ListSelectionModel = cr.ui.ListSelectionModel;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 this.list_.dataModel = dataModel; 44 this.list_.dataModel = dataModel;
45 if (this.list_.dataModel) { 45 if (this.list_.dataModel) {
46 this.list_.dataModel.addEventListener('sorted', 46 this.list_.dataModel.addEventListener('sorted',
47 this.boundHandleSorted_); 47 this.boundHandleSorted_);
48 } 48 }
49 this.header_.redraw(); 49 this.header_.redraw();
50 } 50 }
51 }, 51 },
52 52
53 /** 53 /**
54 * The list of table.
55 *
56 * @type {cr.ui.list}
57 */
58 get list() {
59 return this.list_;
60 },
61
62 /**
54 * The table column model. 63 * The table column model.
55 * 64 *
56 * @type {cr.ui.table.TableColumnModel} 65 * @type {cr.ui.table.TableColumnModel}
57 */ 66 */
58 get columnModel() { 67 get columnModel() {
59 return this.columnModel_; 68 return this.columnModel_;
60 }, 69 },
61 set columnModel(columnModel) { 70 set columnModel(columnModel) {
62 if (this.columnModel_ != columnModel) { 71 if (this.columnModel_ != columnModel) {
63 if (this.columnModel_) 72 if (this.columnModel_)
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 * because table contents can contain controls that can be focused, and for 283 * because table contents can contain controls that can be focused, and for
275 * some purposes (e.g., styling), the table can still be conceptually focused 284 * some purposes (e.g., styling), the table can still be conceptually focused
276 * at that point even though it doesn't actually have the page focus. 285 * at that point even though it doesn't actually have the page focus.
277 */ 286 */
278 cr.defineProperty(Table, 'hasElementFocus', cr.PropertyKind.BOOL_ATTR); 287 cr.defineProperty(Table, 'hasElementFocus', cr.PropertyKind.BOOL_ATTR);
279 288
280 return { 289 return {
281 Table: Table 290 Table: Table
282 }; 291 };
283 }); 292 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698