Lines Matching defs:current_index
476 int current_index = model_->ItemIndexByID(id);
478 if (current_index < first_panel_index)
483 int target_index = current_index;
500 if (current_index != target_index)
501 model_->Move(current_index, target_index);
932 int current_index = view_model_->GetIndexOfView(drag_view_);
933 DCHECK_NE(-1, current_index);
936 model_->items()[current_index].id);
945 RemovableByRipOff(current_index) != NOT_REMOVABLE) {
949 current_index = view_model_->GetIndexOfView(drag_view_);
957 std::pair<int, int> indices(GetDragRange(current_index));
970 view_model_->ideal_bounds(current_index).width(),
979 view_model_->ideal_bounds(current_index).height(),
995 if (target_index == current_index)
1000 model_->Move(current_index, target_index);
1005 int current_index = view_model_->GetIndexOfView(drag_view_);
1006 DCHECK_NE(-1, current_index);
1008 delegate_->GetAppIDForShelfID(model_->items()[current_index].id);
1079 if (RemovableByRipOff(current_index) == REMOVABLE) {
1083 if (current_index != model_->FirstPanelIndex() - 1) {
1084 model_->Move(current_index, model_->FirstPanelIndex() - 1);
1107 int current_index = view_model_->GetIndexOfView(drag_view_);
1108 // If the view isn't part of the model anymore (|current_index| == -1), a sync
1111 if (current_index == -1) {
1124 } else if (RemovableByRipOff(current_index) != REMOVABLE) {
1133 delegate_->GetAppIDForShelfID(model_->items()[current_index].id);
1159 model_->Move(current_index, start_drag_index_);