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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/resources/IndexedDBViews.js

Issue 2894083002: [DevTools] Set row background instead of the table (Closed)
Patch Set: Fixed a comment Created 3 years, 6 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 if (this._isIndex) { 124 if (this._isIndex) {
125 columns.push({ 125 columns.push({
126 id: 'primaryKey', 126 id: 'primaryKey',
127 titleDOMFragment: this._keyColumnHeaderFragment(Common.UIString('Primary key'), this._objectStore.keyPath), 127 titleDOMFragment: this._keyColumnHeaderFragment(Common.UIString('Primary key'), this._objectStore.keyPath),
128 sortable: false 128 sortable: false
129 }); 129 });
130 } 130 }
131 columns.push({id: 'value', title: Common.UIString('Value'), sortable: false} ); 131 columns.push({id: 'value', title: Common.UIString('Value'), sortable: false} );
132 132
133 var dataGrid = new DataGrid.DataGrid(columns); 133 var dataGrid = new DataGrid.DataGrid(columns);
134 dataGrid.setStriped(true);
134 return dataGrid; 135 return dataGrid;
135 } 136 }
136 137
137 /** 138 /**
138 * @param {string} prefix 139 * @param {string} prefix
139 * @param {*} keyPath 140 * @param {*} keyPath
140 * @return {!DocumentFragment} 141 * @return {!DocumentFragment}
141 */ 142 */
142 _keyColumnHeaderFragment(prefix, keyPath) { 143 _keyColumnHeaderFragment(prefix, keyPath) {
143 var keyColumnHeaderFragment = createDocumentFragment(); 144 var keyColumnHeaderFragment = createDocumentFragment();
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 cell.removeChildren(); 365 cell.removeChildren();
365 var objectElement = ObjectUI.ObjectPropertiesSection.defaultObjectPresen tation(value, undefined, true); 366 var objectElement = ObjectUI.ObjectPropertiesSection.defaultObjectPresen tation(value, undefined, true);
366 cell.appendChild(objectElement); 367 cell.appendChild(objectElement);
367 break; 368 break;
368 default: 369 default:
369 } 370 }
370 371
371 return cell; 372 return cell;
372 } 373 }
373 }; 374 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698