Home
last modified time | relevance | path

Searched refs:selectedIndex (Results 1 – 25 of 145) sorted by relevance

123456

/external/chromium_org/ui/webui/resources/js/cr/ui/
Dlist_single_selection_model.js19 this.selectedIndex = -1;
40 var i = this.selectedIndex;
41 return i != -1 ? [this.selectedIndex] : [];
44 this.selectedIndex = indexes.length ? indexes[0] : -1;
52 get selectedIndex() { getter in ListSingleSelectionModel
55 set selectedIndex(selectedIndex) { argument
56 var oldSelectedIndex = this.selectedIndex;
57 var i = Math.max(-1, Math.min(this.length_ - 1, selectedIndex));
75 this.selectedIndex = Math.min(start, end);
91 this.selectedIndex = this.anchorIndex = this.leadIndex = -1;
[all …]
Dtabs.js37 tabBox.selectedIndex = Array.prototype.indexOf.call(p.children, this);
67 function selectedIndexSetHook(selectedIndex) { argument
72 child.selected = i == selectedIndex;
79 child.selected = i == selectedIndex;
97 this.selectedIndex = 0;
110 this.selectedIndex = index;
173 var index = tabbox.selectedIndex;
174 tabbox.selectedIndex = (index + delta + count) % count;
Dmenu.js130 return this.menuItems[this.selectedIndex];
134 this.selectedIndex = index;
142 if (this.selectedIndex < 0 ||
143 this.selectedIndex > this.menuItems.length) {
144 this.selectedIndex = 0;
190 var i = self.selectedIndex;
214 self.selectedIndex = i;
257 function selectedIndexChanged(selectedIndex, oldSelectedIndex) { argument
Dlist_selection_model.js90 get selectedIndex() { getter in ListSelectionModel
96 set selectedIndex(selectedIndex) { argument
97 this.selectedIndexes = selectedIndex != -1 ? [selectedIndex] : [];
/external/chromium_org/chrome/common/extensions/docs/examples/extensions/plugin_settings/domui/js/cr/ui/
Dlist_single_selection_model.js19 this.selectedIndex = -1;
37 var i = this.selectedIndex;
38 return i != -1 ? [this.selectedIndex] : [];
45 get selectedIndex() { getter in ListSingleSelectionModel
48 set selectedIndex(selectedIndex) { argument
49 var oldSelectedIndex = this.selectedIndex;
50 var i = Math.max(-1, Math.min(this.length_ - 1, selectedIndex));
67 this.selectedIndex = Math.min(start, end);
83 this.selectedIndex = this.anchorIndex = this.leadIndex = -1;
91 this.selectedIndex = -1;
[all …]
Dlist_selection_model.js58 get selectedIndex() { getter in ListSelectionModel
64 set selectedIndex(selectedIndex) { argument
67 if (selectedIndex != -1) {
68 this.selectedIndexes = [selectedIndex]; argument
/external/chromium_org/third_party/polymer/components-chromium/paper-tabs/
Dpaper-tabs-extracted.js40 s.left = this.selectedIndex * w + '%';
46 if (old < this.selectedIndex) {
47 s.width = w + w * (this.selectedIndex - old) - m + '%';
49 s.width = w + w * (old - this.selectedIndex) - m + '%';
50 s.left = this.selectedIndex * w + m + '%';
62 s.left = this.selectedIndex * w + '%';
/external/chromium_org/chrome/common/extensions/docs/examples/extensions/app_launcher/
Dpopup.js57 var selectedIndex = 0; variable
67 addApp(appsDiv, item, i == selectedIndex);
73 selectedIndex = 0;
122 selectedIndex = newIndex;
156 changeSelection(selectedIndex + 1);
159 changeSelection(selectedIndex - 1);
168 var app = appList[selectedIndex];
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/omnibox/
DAutocompleteController.java195 protected void onSuggestionSelected(int selectedIndex, OmniboxSuggestion.Type type, in onSuggestionSelected() argument
198 nativeOnSuggestionSelected(mNativeAutocompleteControllerAndroid, selectedIndex, in onSuggestionSelected()
237 public String updateMatchDestinationUrlWithQueryFormulationTime(int selectedIndex, in updateMatchDestinationUrlWithQueryFormulationTime() argument
240 mNativeAutocompleteControllerAndroid, selectedIndex, elapsedTimeSinceInputChange); in updateMatchDestinationUrlWithQueryFormulationTime()
261 int selectedIndex, String currentPageUrl, boolean isQueryInOmnibox, in nativeOnSuggestionSelected() argument
267 int selectedIndex); in nativeDeleteSuggestion() argument
269 long nativeAutocompleteControllerAndroid, int selectedIndex, in nativeUpdateMatchDestinationURLWithQueryFormulationTime() argument
/external/chromium_org/chrome/browser/resources/chromeos/chromevox/chromevox/injected/ui/
Dselect_widget.js46 var currentSelection = this.selectNode_.selectedIndex;
70 var selectedIndex =
72 self.selectNode_.selectedIndex = selectedIndex;
/external/chromium_org/chrome/browser/resources/
Dsync_setup_overlay.js233 setDataTypeCheckboxes_: function(selectedIndex) { argument
234 if (selectedIndex == options.DataTypeSelection.CHOOSE_WHAT_TO_SYNC) {
240 selectedIndex == options.DataTypeSelection.SYNC_EVERYTHING);
310 var syncAll = $('sync-select-datatypes').selectedIndex ==
312 var syncNothing = $('sync-select-datatypes').selectedIndex ==
369 datatypeSelect.selectedIndex = args.syncAllDataTypes ?
443 this.setDataTypeCheckboxes_(datatypeSelect.selectedIndex);
506 if (this.selectedIndex == options.DataTypeSelection.SYNC_NOTHING) {
509 self.showCustomizePage_(self.syncConfigureArgs_, this.selectedIndex);
510 if (this.selectedIndex == options.DataTypeSelection.SYNC_EVERYTHING)
[all …]
/external/chromium_org/chrome/browser/resources/chromeos/wallpaper_manager/js/
Dwallpaper_manager.js71 return setWallpaperLayout.options[setWallpaperLayout.selectedIndex].value;
347 var selectedIndex = wallpaperGrid.selectionModel.selectedIndex;
348 var item = wallpaperGrid.dataModel.item(selectedIndex);
352 wallpaperGrid.dataModel.splice(selectedIndex, 1);
362 selectedIndex = Math.min(selectedIndex, customWallpaperCount - 1);
363 wallpaperGrid.selectionModel.selectedIndex = selectedIndex;
377 var selectedIndex = wallpaperGrid.selectionModel.selectedIndex;
378 var item = wallpaperGrid.dataModel.item(selectedIndex);
379 if (selectedIndex != this.wallpaperGrid_.dataModel.length - 1 &&
400 this.categoriesList_.selectionModel.selectedIndex =
[all …]
/external/chromium_org/chrome/common/extensions/docs/examples/extensions/talking_alarm_clock/
Dpopup.js19 var ampm = $('a' + alarm + '_ampm').selectedIndex;
278 $('a1_ampm').selectedIndex = a1_ampm;
280 localStorage['a1_ampm'] = $('a1_ampm').selectedIndex;
323 $('a2_ampm').selectedIndex = a2_ampm;
325 localStorage['a2_ampm'] = $('a2_ampm').selectedIndex;
361 sound.selectedIndex = i;
365 localStorage['sound'] = sound.options[sound.selectedIndex].value;
367 localStorage['sound'] = sound.options[sound.selectedIndex].value;
398 var i = voice.selectedIndex;
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/ui/
DDropDownMenu.js31 var selectedOption = options[this.element.selectedIndex];
55 this.element.selectedIndex = i;
59 this.element.selectedIndex = -1;
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/components/
DTargetsComboBoxController.js36 …this._selectElement.selectedIndex = Array.prototype.indexOf.call(/** @type {?} */ (this._selectEle…
53 var selectedOption = this._selectElement[this._selectElement.selectedIndex];
83 …this._selectElement.selectedIndex = Array.prototype.indexOf.call(/** @type {?} */ (this._selectEle…
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/toolbox/
DOverridesUI.js44 if (deviceSelectElement.selectedIndex === 0)
47 var option = deviceSelectElement.options[deviceSelectElement.selectedIndex];
66 deviceSelectElement.selectedIndex = index;
72 var index = deviceSelectElement.selectedIndex;
147 var option = deviceSelectElement.options[deviceSelectElement.selectedIndex];
187 var selectedOption = conditionsSelectElement.options[conditionsSelectElement.selectedIndex];
214 conditionsSelectElement.selectedIndex = presetIndex;
235 userAgentSelectElement.selectedIndex = 0;
252 var value = userAgentSelectElement.options[userAgentSelectElement.selectedIndex].value;
273 userAgentSelectElement.selectedIndex = i;
[all …]
/external/chromium_org/chrome/browser/resources/options/
Dautofill_edit_creditcard_overlay.js142 $('expiration-month').selectedIndex = 0;
143 $('expiration-year').selectedIndex = 0;
165 $('expiration-month').selectedIndex = idx - 1;
173 $('expiration-year').selectedIndex = i;
Dlanguage_list.js170 this.selectionModel.selectedIndex = this.dataModel.length - 1;
203 this.selectionModel.selectedIndex = index;
307 this.selectionModel.selectedIndex = newIndex;
393 this.selectionModel.selectedIndex : -1);
400 this.selectionModel.selectedIndex = originalSelectedIndex;
407 this.selectionModel.selectedIndex = 0;
/external/chromium_org/third_party/WebKit/Source/web/
DPopupMenuTest.cpp118 virtual int selectedIndex() const { return m_selectIndex; } in selectedIndex() function in __anon5c959dd70111::TestPopupMenuClient
204 int selectedIndex() const { return m_popupMenuClient.selectedIndex(); } in selectedIndex() function in __anon5c959dd70111::SelectPopupMenuTest
324 EXPECT_EQ(2, selectedIndex()); in TEST_F()
331 EXPECT_EQ(3, selectedIndex()); in TEST_F()
338 EXPECT_EQ(4, selectedIndex()); in TEST_F()
356 EXPECT_EQ(1, selectedIndex()); in TEST_F()
378 EXPECT_EQ(0, selectedIndex()); in TEST_F()
396 EXPECT_EQ(2, selectedIndex()); in TEST_F()
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/tool/servers/data/rebaselineserver/
Dmain.js284 testSelector.selectedIndex = optionIndexByTest[previouslySelectedTest];
286 testSelector.selectedIndex =
290 testSelector.selectedIndex = 1;
367 if (testSelector.selectedIndex == testSelector.options.length - 1) {
370 var nextTest = testSelector.options[testSelector.selectedIndex + 1].value;
544 var nextTestIndex = testSelector.selectedIndex + 1;
552 testSelector.selectedIndex = nextTestIndex;
562 var previousTestIndex = testSelector.selectedIndex - 1;
570 testSelector.selectedIndex = previousTestIndex;
/external/chromium-trace/trace-viewer/src/ui/
Ddom_helpers.js74 return selectorEl.children[selectorEl.selectedIndex].targetPropertyValue;
80 selectorEl.selectedIndex = i;
94 selectorEl.selectedIndex = i;
99 selectorEl.selectedIndex = defaultValueIndex;
/external/chromium_org/ui/file_manager/file_manager/foreground/js/
Ddefault_action_dialog.js125 this.selectionModel_.selectedIndex = defaultIndex;
142 if (this.selectionModel_.selectedIndex !== -1)
143 this.activateItemAtIndex_(this.selectionModel_.selectedIndex);
/external/chromium_org/chrome/browser/resources/print_preview/settings/
Dmedia_size_settings.js76 var indexToSelect = select.selectedIndex;
117 select.selectedIndex = indexToSelect;
127 var mediaSize = JSON.parse(select.options[select.selectedIndex].value);
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.test.performance.ui/scripts/
DFingerprints.js3 var type=formSelect.selectedIndex;
31 formSelect.selectedIndex=type;
/external/chromium_org/ui/file_manager/gallery/js/
Dribbon.js173 var selectedIndex = indexes[0];
185 var lastIndex = selectedIndex + right;
248 firstIndex > 0 && selectedIndex != firstIndex);
251 lastIndex < length - 1 && selectedIndex != lastIndex);
264 this.renderCache_[this.dataModel_.item(selectedIndex).getEntry().toURL()];

123456