/external/chromium/chrome/browser/ui/views/tabs/ |
D | browser_tab_strip_controller.cc | 161 int model_index = tabstrip_->GetModelIndexOfBaseTab(tab); in IsCommandEnabledForTab() local 162 return model_->ContainsIndex(model_index) ? in IsCommandEnabledForTab() 163 model_->IsContextMenuCommandEnabled(model_index, command_id) : false; in IsCommandEnabledForTab() 169 int model_index = tabstrip_->GetModelIndexOfBaseTab(tab); in IsCommandCheckedForTab() local 170 return model_->ContainsIndex(model_index) ? in IsCommandCheckedForTab() 171 model_->IsContextMenuCommandChecked(model_index, command_id) : false; in IsCommandCheckedForTab() 177 int model_index = tabstrip_->GetModelIndexOfBaseTab(tab); in ExecuteCommandForTab() local 178 if (model_->ContainsIndex(model_index)) in ExecuteCommandForTab() 179 model_->ExecuteContextMenuCommand(model_index, command_id); in ExecuteCommandForTab() 194 bool BrowserTabStripController::IsActiveTab(int model_index) const { in IsActiveTab() [all …]
|
D | browser_tab_strip_controller.h | 44 virtual bool IsValidIndex(int model_index) const OVERRIDE; 45 virtual bool IsActiveTab(int model_index) const; 46 virtual bool IsTabSelected(int model_index) const OVERRIDE; 47 virtual bool IsTabPinned(int model_index) const OVERRIDE; 48 virtual bool IsTabCloseable(int model_index) const OVERRIDE; 49 virtual bool IsNewTabPage(int model_index) const OVERRIDE; 50 virtual void SelectTab(int model_index) OVERRIDE; 51 virtual void ExtendSelectionTo(int model_index) OVERRIDE; 52 virtual void ToggleSelected(int model_index) OVERRIDE; 53 virtual void AddSelectionFromAnchorTo(int model_index) OVERRIDE; [all …]
|
D | base_tab_strip.cc | 128 void BaseTabStrip::AddTabAt(int model_index, const TabRendererData& data) { in AddTabAt() argument 133 tab_data_.insert(tab_data_.begin() + ModelIndexToTabIndex(model_index), d); in AddTabAt() 140 StartInsertTabAnimation(model_index); in AddTabAt() 157 void BaseTabStrip::SetTabData(int model_index, const TabRendererData& data) { in SetTabData() argument 158 BaseTab* tab = GetBaseTabAtModelIndex(model_index); in SetTabData() 170 BaseTab* BaseTabStrip::GetBaseTabAtModelIndex(int model_index) const { in GetBaseTabAtModelIndex() 171 return base_tab_at_tab_index(ModelIndexToTabIndex(model_index)); in GetBaseTabAtModelIndex() 175 for (int i = 0, model_index = 0; i < tab_count(); ++i) { in GetModelIndexOfBaseTab() local 179 return model_index; in GetModelIndexOfBaseTab() 180 model_index++; in GetModelIndexOfBaseTab() [all …]
|
D | base_tab_strip.h | 37 virtual void StartHighlight(int model_index) = 0; 52 void AddTabAt(int model_index, const TabRendererData& data); 58 virtual void PrepareForCloseAt(int model_index) {} in PrepareForCloseAt() argument 61 virtual void RemoveTabAt(int model_index) = 0; 71 virtual void TabTitleChangedNotLoading(int model_index) = 0; 74 virtual void SetTabData(int model_index, const TabRendererData& data); 77 virtual BaseTab* GetBaseTabAtModelIndex(int model_index) const; 98 bool IsValidModelIndex(int model_index) const; 103 int ModelIndexToTabIndex(int model_index) const; 157 virtual void StartInsertTabAnimation(int model_index) = 0; [all …]
|
D | tab_strip.h | 63 virtual void PrepareForCloseAt(int model_index) OVERRIDE; 64 virtual void RemoveTabAt(int model_index) OVERRIDE; 66 virtual void TabTitleChangedNotLoading(int model_index) OVERRIDE; 67 virtual void StartHighlight(int model_index) OVERRIDE; 89 virtual void StartInsertTabAnimation(int model_index) OVERRIDE; 159 Tab* GetTabAtModelIndex(int model_index) const; 221 void StartMouseInitiatedRemoveTabAnimation(int model_index);
|
D | tab_strip.cc | 201 void TabStrip::PrepareForCloseAt(int model_index) { in PrepareForCloseAt() argument 209 if (model_index + 1 != model_count && model_count > 1) { in PrepareForCloseAt() 222 void TabStrip::RemoveTabAt(int model_index) { in RemoveTabAt() argument 223 if (in_tab_close_ && model_index != GetModelCount()) in RemoveTabAt() 224 StartMouseInitiatedRemoveTabAnimation(model_index); in RemoveTabAt() 226 StartRemoveTabAnimation(model_index); in RemoveTabAt() 245 void TabStrip::TabTitleChangedNotLoading(int model_index) { in TabTitleChangedNotLoading() argument 246 Tab* tab = GetTabAtModelIndex(model_index); in TabTitleChangedNotLoading() 251 void TabStrip::StartHighlight(int model_index) { in StartHighlight() argument 252 GetTabAtModelIndex(model_index)->StartPulse(); in StartHighlight() [all …]
|
D | side_tab_strip.h | 27 virtual void StartHighlight(int model_index) OVERRIDE; 30 virtual void RemoveTabAt(int model_index) OVERRIDE; 32 virtual void TabTitleChangedNotLoading(int model_index) OVERRIDE; 48 virtual void StartInsertTabAnimation(int model_index) OVERRIDE;
|
D | side_tab_strip.cc | 160 void SideTabStrip::StartHighlight(int model_index) { in StartHighlight() argument 174 void SideTabStrip::RemoveTabAt(int model_index) { in RemoveTabAt() argument 175 StartRemoveTabAnimation(model_index); in RemoveTabAt() 185 void SideTabStrip::TabTitleChangedNotLoading(int model_index) { in TabTitleChangedNotLoading() argument 340 void SideTabStrip::StartInsertTabAnimation(int model_index) { in StartInsertTabAnimation() argument 345 int tab_data_index = ModelIndexToTabIndex(model_index); in StartInsertTabAnimation() 347 if (model_index == 0) { in StartInsertTabAnimation()
|
/external/chromium_org/chrome/browser/ui/views/tabs/ |
D | browser_tab_strip_controller.cc | 236 int model_index = tabstrip_->GetModelIndexOfTab(tab); in IsCommandEnabledForTab() local 237 return model_->ContainsIndex(model_index) ? in IsCommandEnabledForTab() 238 model_->IsContextMenuCommandEnabled(model_index, command_id) : false; in IsCommandEnabledForTab() 244 int model_index = tabstrip_->GetModelIndexOfTab(tab); in ExecuteCommandForTab() local 245 if (model_->ContainsIndex(model_index)) in ExecuteCommandForTab() 246 model_->ExecuteContextMenuCommand(model_index, command_id); in ExecuteCommandForTab() 265 bool BrowserTabStripController::IsActiveTab(int model_index) const { in IsActiveTab() 266 return model_->active_index() == model_index; in IsActiveTab() 273 bool BrowserTabStripController::IsTabSelected(int model_index) const { in IsTabSelected() 274 return model_->IsTabSelected(model_index); in IsTabSelected() [all …]
|
D | browser_tab_strip_controller.h | 50 virtual bool IsValidIndex(int model_index) const OVERRIDE; 51 virtual bool IsActiveTab(int model_index) const OVERRIDE; 53 virtual bool IsTabSelected(int model_index) const OVERRIDE; 54 virtual bool IsTabPinned(int model_index) const OVERRIDE; 55 virtual bool IsNewTabPage(int model_index) const OVERRIDE; 56 virtual void SelectTab(int model_index) OVERRIDE; 57 virtual void ExtendSelectionTo(int model_index) OVERRIDE; 58 virtual void ToggleSelected(int model_index) OVERRIDE; 59 virtual void AddSelectionFromAnchorTo(int model_index) OVERRIDE; 60 virtual void CloseTab(int model_index, CloseTabSource source) OVERRIDE; [all …]
|
D | tab_strip.cc | 698 void TabStrip::StartHighlight(int model_index) { in StartHighlight() argument 699 tab_at(model_index)->StartPulse(); in StartHighlight() 707 void TabStrip::AddTabAt(int model_index, in AddTabAt() argument 720 UpdateTabsClosingMap(model_index, 1); in AddTabAt() 721 tabs_.Add(tab, model_index); in AddTabAt() 731 touch_layout_->AddTab(model_index, add_types, GetStartXForNormalTabs()); in AddTabAt() 737 StartInsertTabAnimation(model_index); in AddTabAt() 744 TabStripAddedTabAt(this, model_index)); in AddTabAt() 774 void TabStrip::RemoveTabAt(int model_index) { in RemoveTabAt() argument 776 Tab* tab = tab_at(model_index); in RemoveTabAt() [all …]
|
D | tab_strip.h | 81 void StartHighlight(int model_index); 87 void AddTabAt(int model_index, const TabRendererData& data, bool is_active); 95 void RemoveTabAt(int model_index); 98 void SetTabData(int model_index, const TabRendererData& data); 104 void PrepareForCloseAt(int model_index, CloseTabSource source); 112 void TabTitleChangedNotLoading(int model_index); 133 bool IsValidModelIndex(int model_index) const; 318 void StartInsertTabAnimation(int model_index); 325 void StartRemoveTabAnimation(int model_index); 507 void StartMouseInitiatedRemoveTabAnimation(int model_index);
|
/external/chromium_org/ui/views/controls/menu/ |
D | menu_model_adapter.cc | 56 int model_index, in AddMenuItemFromModelAt() argument 61 model->GetIconAt(model_index, &icon); in AddMenuItemFromModelAt() 65 ui::MenuModel::ItemType menu_type = model->GetTypeAt(model_index); in AddMenuItemFromModelAt() 70 label = model->GetLabelAt(model_index); in AddMenuItemFromModelAt() 71 sublabel = model->GetSublabelAt(model_index); in AddMenuItemFromModelAt() 72 minor_text = model->GetMinorTextAt(model_index); in AddMenuItemFromModelAt() 76 label = model->GetLabelAt(model_index); in AddMenuItemFromModelAt() 77 sublabel = model->GetSublabelAt(model_index); in AddMenuItemFromModelAt() 78 minor_text = model->GetMinorTextAt(model_index); in AddMenuItemFromModelAt() 82 label = model->GetLabelAt(model_index); in AddMenuItemFromModelAt() [all …]
|
D | native_menu_win.cc | 63 int model_index; member 253 data->native_menu_win->model_->GetTypeAt(data->model_index); in OnDrawItem() 258 if (data->native_menu_win->model_->GetIconAt(data->model_index, &icon)) { in OnDrawItem() 272 data->model_index)) { in OnDrawItem() 480 int model_index = menu_index - first_item_index_; in Rebuild() local 481 if (model_->GetTypeAt(model_index) == ui::MenuModel::TYPE_SEPARATOR) in Rebuild() 482 AddSeparatorItemAt(menu_index, model_index); in Rebuild() 484 AddMenuItemAt(menu_index, model_index); in Rebuild() 490 int model_index = 0; in UpdateStates() local 492 for (it = items_.begin(); it != items_.end(); ++it, ++model_index) { in UpdateStates() [all …]
|
D | native_menu_win.h | 65 void AddMenuItemAt(int menu_index, int model_index); 66 void AddSeparatorItemAt(int menu_index, int model_index); 76 int model_index, 84 int model_index,
|
D | menu_model_adapter.h | 44 int model_index, 52 int model_index,
|
/external/chromium/chrome/browser/ui/touch/tabs/ |
D | touch_tab_strip.h | 34 virtual void PrepareForCloseAt(int model_index); 35 virtual void StartHighlight(int model_index); 38 virtual void RemoveTabAt(int model_index); 40 virtual void TabTitleChangedNotLoading(int model_index); 42 virtual void StartInsertTabAnimation(int model_index);
|
D | touch_tab_strip.cc | 65 void TouchTabStrip::PrepareForCloseAt(int model_index) { in PrepareForCloseAt() argument 75 void TouchTabStrip::StartHighlight(int model_index) { in StartHighlight() argument 85 void TouchTabStrip::RemoveTabAt(int model_index) { in RemoveTabAt() argument 86 StartRemoveTabAnimation(model_index); in RemoveTabAt() 93 void TouchTabStrip::TabTitleChangedNotLoading(int model_index) { in TabTitleChangedNotLoading() argument 100 void TouchTabStrip::StartInsertTabAnimation(int model_index) { in StartInsertTabAnimation() argument 107 int tab_data_index = ModelIndexToTabIndex(model_index); in StartInsertTabAnimation() 109 if (model_index == 0) { in StartInsertTabAnimation()
|
/external/chromium_org/ui/views/controls/table/ |
D | table_view.cc | 46 for (int model_index = 0; model_index < row_count;) { in GetModelIndexToRangeStart() local 48 grouper->GetGroupRange(model_index, &range); in GetModelIndexToRangeStart() 51 (*model_index_to_range_start)[range_counter + model_index] = model_index; in GetModelIndexToRangeStart() 52 model_index += range.length; in GetModelIndexToRangeStart() 275 int TableView::ModelToView(int model_index) const { in ModelToView() 277 return model_index; in ModelToView() 278 DCHECK_GE(model_index, 0) << " negative model_index " << model_index; in ModelToView() 279 DCHECK_LT(model_index, RowCount()) << " out of bounds model_index " << in ModelToView() 280 model_index; in ModelToView() 281 return model_to_view_[model_index]; in ModelToView() [all …]
|
/external/chromium_org/chrome/browser/ui/views/omnibox/ |
D | touch_omnibox_popup_contents_view.cc | 21 int model_index, in TouchOmniboxResultView() argument 24 : OmniboxResultView(model, model_index, location_bar_view, font_list) { in TouchOmniboxResultView() 104 int model_index, in CreateResultView() argument 106 return new TouchOmniboxResultView(model, model_index, location_bar_view(), in CreateResultView()
|
D | touch_omnibox_popup_contents_view.h | 26 int model_index, 59 int model_index,
|
/external/chromium/chrome/browser/ui/views/autocomplete/ |
D | touch_autocomplete_popup_contents_view.cc | 23 int model_index, in TouchAutocompleteResultView() argument 26 : AutocompleteResultView(model, model_index, font, bold_font) { in TouchAutocompleteResultView() 117 int model_index, in CreateResultView() argument 120 return new TouchAutocompleteResultView(model, model_index, font, bold_font); in CreateResultView()
|
D | touch_autocomplete_popup_contents_view.h | 28 int model_index, 64 int model_index,
|
/external/chromium_org/ui/views/examples/ |
D | table_example.cc | 131 void TableExample::GetGroupRange(int model_index, GroupRange* range) { in GetGroupRange() argument 132 if (model_index < 2) { in GetGroupRange() 135 } else if (model_index > 6) { in GetGroupRange() 139 range->start = model_index; in GetGroupRange()
|
/external/chromium_org/ash/shelf/ |
D | shelf_view.cc | 1511 void ShelfView::ShelfItemAdded(int model_index) { in ShelfItemAdded() argument 1515 model_index = CancelDrag(model_index); in ShelfItemAdded() 1517 views::View* view = CreateViewForItem(model_->items()[model_index]); in ShelfItemAdded() 1523 view_model_->Add(view, model_index); in ShelfItemAdded() 1531 view->SetBoundsRect(view_model_->ideal_bounds(model_index)); in ShelfItemAdded() 1537 if (model_index <= last_visible_index_ || in ShelfItemAdded() 1538 model_index >= model_->FirstPanelIndex()) { in ShelfItemAdded() 1547 void ShelfView::ShelfItemRemoved(int model_index, LauncherID id) { in ShelfItemRemoved() argument 1553 model_index = CancelDrag(model_index); in ShelfItemRemoved() 1555 views::View* view = view_model_->view_at(model_index); in ShelfItemRemoved() [all …]
|