Home | History | Annotate | Download | only in tabs

Lines Matching refs:attached_tabstrip_

323       attached_tabstrip_(NULL),
382 instance_->attached_tabstrip_ == tab_strip;
559 // the attached_tabstrip_ is NULL and all the window's related bound
561 // first_tab based on source_tabstrip_, not attached_tabstrip_. Otherwise,
640 if (old_focused_view_ && attached_tabstrip_ == source_tabstrip_)
678 if (target_tabstrip != attached_tabstrip_) {
681 if (attached_tabstrip_)
694 if (attached_tabstrip_)
701 DCHECK(attached_tabstrip_);
707 if (attached_tabstrip_->type() == BaseTabStrip::HORIZONTAL_TAB_STRIP) {
708 TabStrip* tab_strip = static_cast<TabStrip*>(attached_tabstrip_);
727 if (abs(MajorAxisValue(screen_point, attached_tabstrip_) -
730 TabStripModel* attached_model = GetModel(attached_tabstrip_);
741 attached_tabstrip_->LayoutDraggedTabsAt(
752 last_move_screen_loc_ = MajorAxisValue(screen_point, attached_tabstrip_);
757 attached_tabstrip_->LayoutDraggedTabsAt(
766 DCHECK(!attached_tabstrip_);
775 if (attached_tabstrip_) {
861 DCHECK(!attached_tabstrip_); // We should already have detached by the time
864 attached_tabstrip_ = attached_tabstrip;
870 GetTabsMatchingDraggedContents(attached_tabstrip_);
895 views::View::ConvertPointToView(NULL, attached_tabstrip_, &tab_strip_point);
897 attached_tabstrip_->GetMirroredXInView(tab_strip_point.x()));
901 attached_tabstrip_->set_attaching_dragged_tab(true);
906 GetModel(attached_tabstrip_)->InsertTabContentsAt(
909 attached_tabstrip_->set_attaching_dragged_tab(false);
911 tabs = GetTabsMatchingDraggedContents(attached_tabstrip_);
917 attached_tabstrip_->StartedDraggingTabs(tabs);
919 ResetSelection(GetModel(attached_tabstrip_));
921 if (attached_tabstrip_->type() == BaseTabStrip::HORIZONTAL_TAB_STRIP) {
927 int new_x = attached_tabstrip_->GetSizeNeededForTabs(tabs_to_source) -
935 attached_tabstrip_->GetWindow()->Activate();
948 attached_tabstrip_->CalculateBoundsForDraggedTabs(attached_tabs,
951 TabStripModel* attached_model = GetModel(attached_tabstrip_);
977 attached_tabstrip_ = NULL;
985 for (int i = 0; i < attached_tabstrip_->tab_count(); ++i) {
986 const gfx::Rect& ideal_bounds = attached_tabstrip_->ideal_bounds(i);
987 if (attached_tabstrip_->type() == BaseTabStrip::HORIZONTAL_TAB_STRIP) {
1018 if ((attached_tabstrip_->type() == BaseTabStrip::HORIZONTAL_TAB_STRIP &&
1020 (attached_tabstrip_->type() == BaseTabStrip::VERTICAL_TAB_STRIP &&
1022 index = GetModel(attached_tabstrip_)->count();
1034 int max_index = GetModel(attached_tabstrip_)->count() -
1048 if (attached_tabstrip_->type() == BaseTabStrip::HORIZONTAL_TAB_STRIP) {
1050 static_cast<TabStrip*>(attached_tabstrip_)->GetCurrentTabWidths(
1058 attached_tabstrip_->width(),
1064 DCHECK(attached_tabstrip_); // The tab must be attached.
1067 views::View::ConvertPointToView(NULL, attached_tabstrip_, &tab_loc);
1069 attached_tabstrip_->GetMirroredXInView(tab_loc.x()) - mouse_offset_.x();
1077 int size = attached_tabstrip_->GetSizeNeededForTabs(attached_tabs);
1079 if (attached_tabstrip_->type() == BaseTabStrip::HORIZONTAL_TAB_STRIP) {
1080 int max_x = attached_tabstrip_->width() - size;
1085 int max_y = attached_tabstrip_->height() - size;
1093 TabStripModel* model = GetModel(attached_tabstrip_);
1152 bool restore_frame = attached_tabstrip_ != source_tabstrip_;
1153 if (attached_tabstrip_ && attached_tabstrip_ == source_tabstrip_)
1156 attached_tabstrip_ = source_tabstrip_;
1158 ResetSelection(GetModel(attached_tabstrip_));
1205 if (attached_tabstrip_) {
1207 GetModel(attached_tabstrip_)->GetIndexOfTabContents(data->contents);
1208 if (attached_tabstrip_ != source_tabstrip_) {
1211 GetModel(attached_tabstrip_)->DetachTabContentsAt(index);
1236 if (attached_tabstrip_) {
1237 attached_tabstrip_->StoppedDraggingTabs(
1238 GetTabsMatchingDraggedContents(attached_tabstrip_));