Home
last modified time | relevance | path

Searched refs:dataModel (Results 1 – 25 of 57) sorted by relevance

123

/external/chromium_org/chrome/common/extensions/docs/examples/extensions/plugin_settings/domui/js/cr/ui/
Dlist.js48 var dataModel = list.dataModel;
49 if (!dataModel || !dataModel.length)
51 var item = opt_item || list.createItem(dataModel.item(0));
165 set dataModel(dataModel) { setter in List
166 if (this.dataModel_ != dataModel) {
182 this.dataModel_ = dataModel;
186 if (dataModel)
187 this.selectionModel.adjustLength(dataModel.length);
201 get dataModel() { getter in List
256 var dataModel = this.dataModel;
[all …]
/external/chromium_org/ui/webui/resources/js/cr/ui/
Dtable.js35 get dataModel() { getter in Table
36 return this.list_.dataModel;
38 set dataModel(dataModel) { setter in Table
39 if (this.list_.dataModel != dataModel) {
40 if (this.list_.dataModel) {
41 this.list_.dataModel.removeEventListener('sorted',
43 this.list_.dataModel.removeEventListener('change',
45 this.list_.dataModel.removeEventListener('splice',
48 this.list_.dataModel = dataModel;
49 if (this.list_.dataModel) {
[all …]
Dlist.js114 set dataModel(dataModel) { argument
115 if (this.dataModel_ != dataModel) {
131 this.dataModel_ = dataModel;
136 if (dataModel)
137 this.selectionModel.adjustLength(dataModel.length);
151 get dataModel() { getter in List
227 var dataModel = this.dataModel;
228 if (dataModel) {
231 return dataModel.item(index);
236 var dataModel = this.dataModel;
[all …]
Dgrid.js102 var itemCount = this.dataModel ? this.dataModel.length : 0;
233 var count = this.autoExpands_ ? this.dataModel.length : Math.max(
237 count = Math.min(count, this.dataModel.length - firstIndex);
307 var afterRows = Math.floor((this.dataModel.length - 1) / columns) -
325 var itemCount = this.dataModel ? this.dataModel.length : 0;
/external/chromium_org/chrome/browser/resources/bookmark_manager/js/bmm/
Dbookmark_list.js127 this.dataModel = new BookmarksArrayDataModel(items);
156 var dataModel = this.dataModel;
157 for (var i = 0; i < dataModel.array_.length; i++) {
158 if (dataModel.array_[i].id == 'new')
240 var dataModel = this.dataModel;
241 var index = dataModel.findIndexById(id);
243 var bookmarkNode = this.dataModel.item(index);
248 dataModel.updateIndex(index);
255 var dataModel = this.dataModel;
257 for (var i = this.dataModel.length - 1; i >= 0; i--) {
[all …]
/external/chromium_org/chrome/browser/resources/options/
Dlanguage_dictionary_overlay_word_list.js115 this.dataModel.splice(this.dataModel.length - 1, 0, dictionaryWord);
130 this.dataModel = new cr.ui.ArrayDataModel(filteredWordList);
142 this.dataModel = new cr.ui.ArrayDataModel(entries);
161 this.dataModel.splice(this.dataModel.length - 1, 0, toAdd[i]);
188 index = this.dataModel.indexOf(toRemove[i]);
190 this.dataModel.splice(index, 1);
203 return this.dataModel.length < 2;
217 assert(index > -1 && index < this.dataModel.length - 1);
218 var item = this.dataModel.item(index);
222 this.dataModel.splice(index, 1);
Dlanguage_list.js160 if (!languageCode || this.dataModel.indexOf(languageCode) >= 0) {
163 this.dataModel.push(languageCode);
165 this.selectionModel.selectedIndex = this.dataModel.length - 1;
174 return this.dataModel.slice();
196 var index = this.dataModel.indexOf(languageCode);
207 this.dataModel.splice(index, 1);
294 var originalIndex = this.dataModel.indexOf(languageCode);
295 this.dataModel.splice(originalIndex, 1);
297 var newIndex = this.dataModel.indexOf(dropTarget.languageCode);
300 this.dataModel.splice(newIndex, 0, languageCode);
[all …]
Dautofill_options_list.js193 if (i < this.list.dataModel.length &&
194 this.valuesAreEqual_(value, this.list.dataModel.item(i))) {
198 var entries = this.list.dataModel.slice();
205 this.list.dataModel.updateIndex(i);
213 this.list.dataModel.splice(i, 1);
350 AutofillOptions.loadAddressEditor(this.dataModel.item(index)[0]);
360 AutofillOptions.removeData(this.dataModel.item(index)[0]);
380 AutofillOptions.loadCreditCardEditor(this.dataModel.item(index)[0]);
390 AutofillOptions.removeData(this.dataModel.item(index)[0]);
411 this.dataModel.splice(index, 1);
[all …]
Dpassword_manager_list.js21 function PasswordListItem(dataModel, entry, showPasswords) { argument
24 el.dataModel = dataModel;
142 return index ? index : this.dataModel.indexOf(this.dataItem);
288 return new PasswordListItem(this.dataModel, entry, showPasswords);
293 var item = this.dataModel.item(index);
305 return this.dataModel.length;
333 return this.dataModel.length;
Dhandler_options_list.js63 chrome.send('removeIgnoredHandler', [this.dataModel.item(index)]);
70 return this.dataModel.length;
81 this.dataModel = new ArrayDataModel(list);
205 return this.dataModel.length;
215 this.dataModel = new ArrayDataModel(list);
Dpassword_manager.js144 var empty = list.dataModel.length == 0;
173 this.savedPasswordsList_.dataModel = new ArrayDataModel(entries);
183 this.passwordExceptionsList_.dataModel = new ArrayDataModel(entries);
194 var model = this.savedPasswordsList_.dataModel;
Dsearch_engine_manager.js79 this.defaultsList_.dataModel = new ArrayDataModel(defaultEngines);
95 this.othersList_.dataModel = othersModel;
100 this.extensionList_.dataModel = extensionsModel;
Dautofill_edit_address_overlay.js135 list.dataModel = new ArrayDataModel(augmentedList);
140 list.dataModel.addEventListener('splice',
142 list.dataModel.addEventListener('change',
197 lists[i].dataModel.slice(0, lists[i].dataModel.length - 1);
/external/chromium_org/ui/file_manager/file_manager/foreground/js/ui/
Dnavigation_list.js144 set dataModel(dataModel) { argument
156 parentSetter.call(this, dataModel);
160 dataModel.addEventListener('change', this.onListContentChangedBound_);
161 dataModel.addEventListener('permuted', this.onListContentChangedBound_);
164 get dataModel() { getter in NavigationList
279 for (var i = 0; i < this.dataModel.length; i++) {
290 if (index < 0 || index > this.dataModel.length - 1)
294 this.activateModelItem_(this.dataModel.item(index));
318 this.dataModel.onItemNotFoundError(modelItem);
331 this.dataModel.onItemNotFoundError(modelItem);
[all …]
/external/chromium_org/chrome/browser/resources/options/chromeos/
Dproxy_rules_list.js51 this.dataModel.push(exception);
59 var dataModel = this.dataModel;
61 var index = dataModel.indexOf(exception);
63 dataModel.splice(index, 1);
89 this.dataModel = new ArrayDataModel(exceptions);
96 Preferences.setListPref(this.pref, this.dataModel.slice(), true);
Dbluetooth_device_list.js155 this.dataModel.push(device);
158 this.dataModel.splice(index, 1, device);
212 this.dataModel = new ArrayDataModel([]);
224 var size = this.dataModel.length;
226 var entry = this.dataModel.item(i);
310 this.dataModel.splice(index, 1);
321 var empty = this.dataModel.length == 0;
Daccounts_user_list.js50 var dataModel = this.dataModel;
51 if (!dataModel)
54 var length = dataModel.length;
56 var user = dataModel.item(i);
84 this.dataModel = new ArrayDataModel(users);
Dpreferred_networks.js124 var item = this.dataModel.item(index);
132 this.dataModel.splice(index, 1);
143 this.dataModel = new ArrayDataModel([]);
155 this.dataModel.push(data);
Dnetwork_list.js782 this.dataModel = new ArrayDataModel([]);
835 var item = this.dataModel.item(event.changes[i].index);
853 var size = this.dataModel.length;
855 var entry = this.dataModel.item(i);
879 for (var i = 0; i < this.dataModel.length; i++) {
880 var entry = this.dataModel.item(i);
888 this.dataModel.splice(0, 0, data);
889 } else if (referenceIndex == this.dataModel.length) {
891 this.dataModel.push(data);
894 this.dataModel.splice(referenceIndex + 1, 0, data);
[all …]
/external/chromium_org/chrome/browser/resources/chromeos/network_configuration/js/
Dnetwork_status.js16 function dataModelToArray(dataModel) { argument
18 for (var i = 0; i < dataModel.length; i++) {
19 array.push(dataModel.item(i));
60 var dataModel = uiList.dataModel;
61 var diff = differenceBy(dataModelToArray(dataModel), newList,
66 dataModel.splice(dataModel.indexOf(element), 1);
68 dataModel.splice.apply(dataModel, [dataModel.length, 0].concat(toAdd));
263 list.dataModel = new ArrayDataModel(arrayToTable(this.getEntries()));
363 list.dataModel.setCompareFunction(0, function(a, b) {
368 list.dataModel.sort(0, 'asc');
[all …]
/external/chromium_org/chrome/browser/resources/chromeos/wallpaper_manager/js/
Dwallpaper_images_grid.js240 set dataModel(dataModel) { setter in WallpaperThumbnailsGrid
241 if (this.dataModel_ == dataModel)
244 if (dataModel && dataModel.length != 0) {
264 parentSetter.call(this, dataModel);
267 get dataModel() { getter in WallpaperThumbnailsGrid
303 this.dataModel = new ArrayDataModel([]);
340 return index != -1 ? this.dataModel.item(index) : null;
343 var index = this.dataModel.indexOf(selectedItem);
Dwallpaper_manager.js302 var url = self.wallpaperGrid_.dataModel.item(i).baseURL;
348 var item = wallpaperGrid.dataModel.item(selectedIndex);
352 wallpaperGrid.dataModel.splice(selectedIndex, 1);
355 var customWallpaperCount = wallpaperGrid.dataModel.length - 1;
378 var item = wallpaperGrid.dataModel.item(selectedIndex);
379 if (selectedIndex != this.wallpaperGrid_.dataModel.length - 1 &&
401 this.categoriesList_.dataModel.length - 1;
601 var oldestIndex = this.wallpaperGrid_.dataModel.length - 2;
602 var item = this.wallpaperGrid_.dataModel.item(oldestIndex);
606 item = this.wallpaperGrid_.dataModel.item(--oldestIndex);
[all …]
/external/chromium_org/chrome/browser/resources/bookmark_manager/js/
Dmain.js207 var index = list.dataModel.findIndexById(bookmarkNode.id);
370 if (!list.dataModel)
374 return list.dataModel.slice();
458 list.dataModel && list.dataModel.length > 1 &&
711 var dataModel = list.dataModel;
712 var index = dataModel.indexOf(bookmarkNode);
713 dataModel.splice(index, 1);
716 var newIndex = dataModel.findIndexById(node.id);
734 var dataModel = list.dataModel;
735 var index = dataModel.findIndexById('new');
[all …]
/external/chromium_org/chrome/browser/resources/chromeos/
Duser_images_grid.js138 this.dataModel = new ArrayDataModel([]);
388 for (var i = 0, el; el = this.dataModel.item(i); i++) {
407 return index != -1 ? this.dataModel.item(index) : null;
615 this.dataModel.splice(opt_position, 0, imageInfo);
617 this.dataModel.push(imageInfo);
628 return this.dataModel.indexOf(imageInfo);
668 this.dataModel.splice(index, 1);
671 this.selectedItem = this.dataModel.item(
672 Math.min(this.dataModel.length - 1, index));
/external/chromium_org/chrome/common/extensions/docs/examples/extensions/plugin_settings/js/
Drule_list.js362 var deleteCount = this.dataModel.length - 1;
366 this.dataModel.splice.apply(this.dataModel, args);
406 this.dataModel = new ArrayDataModel([null]);

123