Lines Matching refs:drag_data_
73 drag_data_.reset(new DragData(drag_data, source_tab_index));
84 drag_data_.reset();
93 if (!drag_data_->GetSourceTabData()->tab_ ||
94 !drag_data_->GetSourceWebContents()) {
104 if (drag_data_->GetSourceTabData()->tab_->IsVisible()) {
108 if (!drag_data_->GetSourceTabData()->tab_->IsVisible()) {
121 for (size_t i = 0; i < drag_data_->size(); i++) {
122 if (contents == drag_data_->get(i)->contents_)
123 return drag_data_->get(i)->tab_;
130 for (size_t i = 0; i < drag_data_->size(); i++) {
131 if (tab == drag_data_->get(i)->tab_)
139 for (size_t i = 0; i < drag_data_->size(); i++) {
140 if (web_contents == drag_data_->get(i)->contents_)
176 if (drag_data_->GetSourceTabData()->original_delegate_) {
181 return drag_data_->GetSourceTabData()->original_delegate_->
203 if (drag_data_->GetSourceTabData()->original_delegate_) {
204 drag_data_->GetSourceTabData()->original_delegate_->AddNewContents(
232 for (size_t i = 0; i < drag_data_->size(); ++i) {
233 if (drag_data_->get(i)->contents_ == destroyed_web_contents) {
237 drag_data_->get(i)->contents_ = NULL;
238 drag_data_->get(i)->original_delegate_ = NULL;
292 for (size_t i = 0; i < drag_data_->size(); ++i) {
293 WebContents* contents = drag_data_->get(i)->contents_;
310 std::vector<TabGtk*> tabs(drag_data_->GetDraggedTabs());
329 drag_data_->GetSourceTabData()->source_model_index_ -
330 drag_data_->source_tab_index());
414 tab_count += drag_data_->size();
415 mini_tab_count += drag_data_->mini_tab_count();
434 for (size_t i = 0; i < drag_data_->size(); ++i) {
435 drag_data_->get(i)->contents_->SetDelegate(NULL);
436 drag_data_->get(i)->original_delegate_ = NULL;
456 for (size_t i = 0; i < drag_data_->size(); ++i) {
458 index + i, drag_data_->get(i)->contents_,
459 drag_data_->GetAddTypesForDraggedTabAt(i));
465 DCHECK(attached_dragged_tabs.size() == drag_data_->size());
473 for (size_t i = 0; i < drag_data_->size(); ++i) {
475 attached_model->GetIndexOfWebContents(drag_data_->get(i)->contents_);
495 for (size_t i = 0; i < drag_data_->size(); ++i)
496 drag_data_->get(i)->contents_->SetDelegate(this);
553 attached_tabstrip_, drag_data_->GetSourceWebContents());
561 attached_tabstrip_-> GetTabCount() - static_cast<int>(drag_data_->size());
622 for (size_t i = 0; i < drag_data_->size(); ++i) {
623 if (!drag_data_->get(i)->contents_)
626 drag_data_->get(i)->contents_);
666 } else if (drag_data_->size() > 0) {
686 for (size_t i = 0; i < drag_data_->size(); ++i) {
687 if (!drag_data_->get(i)->contents_)
690 drag_data_->get(i)->contents_);
696 for (size_t i = 0; i < drag_data_->size(); ++i) {
697 if (!drag_data_->get(i)->contents_)
700 drag_data_->get(i)->source_model_index_,
701 drag_data_->get(i)->contents_,
702 drag_data_->GetAddTypesForDraggedTabAt(i));
707 for (size_t i = 0; i < drag_data_->size(); ++i) {
708 if (!drag_data_->get(i)->contents_)
711 drag_data_->get(i)->contents_);
713 index, drag_data_->get(i)->source_model_index_, true);
723 for (size_t i = 0; i < drag_data_->size(); ++i) {
724 if (!drag_data_->get(i)->contents_)
727 drag_data_->get(i)->source_model_index_,
728 drag_data_->get(i)->contents_,
729 drag_data_->GetAddTypesForDraggedTabAt(i));
760 for (size_t i = 0; i < drag_data_->size(); ++i) {
762 item.web_contents = drag_data_->get(i)->contents_;
763 item.add_types = drag_data_->GetAddTypesForDraggedTabAt(i);
779 for (size_t i = 0; i < drag_data_->size(); ++i) {
780 if (drag_data_->get(i)->contents_ &&
781 drag_data_->get(i)->contents_->GetDelegate() == this) {
782 drag_data_->get(i)->ResetDelegate();
790 drag_data_->GetSourceWebContents()->GetView()->GetContainerBounds(&rect);
791 dragged_view_.reset(new DraggedViewGtk(drag_data_.get(), mouse_offset_,
840 for (size_t i = 0; i < drag_data_->size(); ++i) {
841 if (drag_data_->get(i)->contents_) {
843 content::Source<WebContents>(drag_data_->get(i)->contents_));
845 source_tabstrip_->DestroyDraggedTab(drag_data_->get(i)->tab_);
846 drag_data_->get(i)->tab_ = NULL;
881 for (size_t i = 1; i < drag_data_->size(); ++i) {
882 if (drag_data_->get(i - 1)->source_model_index_ + 1 !=
883 drag_data_->get(i)->source_model_index_) {