Lines Matching refs:attached_tabstrip_
359 attached_tabstrip_(NULL),
564 if (attached_tabstrip_) {
679 // the attached_tabstrip_ is NULL and all the window's related bound
681 // first_tab based on source_tabstrip_, not attached_tabstrip_. Otherwise,
753 if (old_focused_view_ && attached_tabstrip_ == source_tabstrip_)
769 DCHECK(!detach_into_browser_ || attached_tabstrip_);
773 bool tab_strip_changed = (target_tabstrip != attached_tabstrip_);
775 if (attached_tabstrip_) {
790 if (attached_tabstrip_)
806 if (attached_tabstrip_) {
814 attached_tabstrip_->GetWidget()->Activate();
842 attached_tabstrip_->ReleaseDragController();
849 target_tabstrip->GetWidget()->SetCapture(attached_tabstrip_);
872 attached_tabstrip_->GetWidget()->Activate();
888 if (attached_tabstrip_->tab_count() !=
893 attached_tabstrip_->DragActiveTab(initial_tab_positions_, delta);
898 int index = attached_tabstrip_->touch_layout_->active_index();
899 if (index + 1 >= attached_tabstrip_->tab_count())
902 GetModel(attached_tabstrip_)->MoveSelectedTabsTo(index + 1);
909 int index = attached_tabstrip_->touch_layout_->active_index();
910 if (index <= attached_tabstrip_->GetMiniTabCount())
913 GetModel(attached_tabstrip_)->MoveSelectedTabsTo(index - 1);
919 DCHECK(attached_tabstrip_);
929 if (!attached_tabstrip_->touch_layout_.get()) {
931 attached_tabstrip_->GetCurrentTabWidths(&unselected, &selected);
947 TabStripModel* attached_model = GetModel(attached_tabstrip_);
957 attached_tabstrip_->LayoutDraggedTabsAt(
974 attached_tabstrip_->LayoutDraggedTabsAt(
985 DCHECK(!attached_tabstrip_);
996 DCHECK(attached_tabstrip_);
998 StackedTabStripLayout* touch_layout = attached_tabstrip_->touch_layout_.get();
1022 DCHECK(attached_tabstrip_);
1024 views::View::ConvertPointToTarget(NULL, attached_tabstrip_, &attached_point);
1027 if (attached_point.x() >= attached_tabstrip_->width())
1035 if (attached_tabstrip_ || detach_into_browser_) {
1059 if (move_only() && attached_tabstrip_) {
1063 gfx::Rect tabstrip_bounds = GetViewScreenBounds(attached_tabstrip_);
1067 return attached_tabstrip_;
1073 dragged_view = attached_tabstrip_->GetWidget()->GetNativeView();
1086 return is_dragging_window_ ? attached_tabstrip_ : NULL;
1102 attached_tabstrip_ ? attached_tabstrip_ : source_tabstrip_;
1124 DCHECK(!attached_tabstrip_); // We should already have detached by the time
1127 attached_tabstrip_ = attached_tabstrip;
1133 GetTabsMatchingDraggedContents(attached_tabstrip_);
1162 views::View::ConvertPointToTarget(NULL, attached_tabstrip_,
1165 attached_tabstrip_->GetMirroredXInView(tab_strip_point.x()));
1172 if (attached_tabstrip_->touch_layout_.get()) {
1180 GetModel(attached_tabstrip_)->InsertWebContentsAt(
1184 tabs = GetTabsMatchingDraggedContents(attached_tabstrip_);
1190 attached_tabstrip_->StartedDraggingTabs(tabs);
1192 ResetSelection(GetModel(attached_tabstrip_));
1199 int new_x = attached_tabstrip_->GetSizeNeededForTabs(tabs_to_source) -
1209 attached_tabstrip_->GetWidget()->SetCapture(attached_tabstrip_);
1210 attached_tabstrip_->OwnDragController(this);
1215 if (detach_into_browser_ || attached_tabstrip_ == source_tabstrip_) {
1217 attached_tabstrip_->GetWidget()->GetRootView())->SetMouseHandler(
1218 attached_tabstrip_);
1229 attached_tabstrip_->ReleaseDragController();
1231 attached_tabstrip_->GetWidget()->ReleaseCapture();
1242 TabStripModel* attached_model = GetModel(attached_tabstrip_);
1269 } else if (attached_tabstrip_ == source_tabstrip_ &&
1294 attached_tabstrip_->DraggedTabsDetached();
1295 attached_tabstrip_ = NULL;
1300 if (GetModel(attached_tabstrip_)->count() ==
1320 attached_tabstrip_->GetWidget()->GetWindowBoundsInScreen().size();
1321 int available_source_width = attached_tabstrip_
1325 attached_tabstrip_, point_in_screen, &drag_offset, &drag_bounds);
1335 attached_tabstrip_->GetWidget()->GetWindowBoundsInScreen().size()) {
1340 int available_attached_width = attached_tabstrip_->tab_area_width();
1364 views::View::ConvertPointToWidget(attached_tabstrip_, &offset);
1372 new_bounds.Offset(0, -attached_tabstrip_->button_v_offset());
1376 attached_tabstrip_->SetTabBoundsForDrag(drag_bounds);
1405 attached_tabstrip_->ReleaseDragController();
1406 attached_tabstrip_->GetWidget()->ReleaseCapture();
1407 attached_tabstrip_->OwnDragController(this);
1438 attached_tabstrip_->GetWidget()->Activate();
1441 DCHECK(attached_tabstrip_);
1442 attached_tabstrip_->GetWidget()->SetCapture(attached_tabstrip_);
1452 for (int i = start, tab_count = attached_tabstrip_->tab_count();
1454 const gfx::Rect& ideal_bounds = attached_tabstrip_->ideal_bounds(i);
1471 if (attached_tabstrip_->touch_layout_.get()) {
1477 int active_index = attached_tabstrip_->touch_layout_->active_index();
1489 int tab_count = attached_tabstrip_->tab_count();
1491 attached_tabstrip_->ideal_bounds(tab_count - 1).right();
1493 index = GetModel(attached_tabstrip_)->count();
1505 int max_index = GetModel(attached_tabstrip_)->count() -
1513 if (index + 1 >= attached_tabstrip_->tab_count() ||
1514 !attached_tabstrip_->touch_layout_->IsStacked(index + 1) ||
1518 int active_x = attached_tabstrip_->ideal_bounds(index).x();
1519 int next_x = attached_tabstrip_->ideal_bounds(index + 1).x();
1528 if (index - 1 < attached_tabstrip_->GetMiniTabCount() ||
1529 !attached_tabstrip_->touch_layout_->IsStacked(index - 1) ||
1533 int active_x = attached_tabstrip_->ideal_bounds(index).x();
1534 int previous_x = attached_tabstrip_->ideal_bounds(index - 1).x();
1542 StackedTabStripLayout* touch_layout = attached_tabstrip_->touch_layout_.get();
1556 if (active_index + 1 < attached_tabstrip_->tab_count() &&
1579 attached_tabstrip_->GetCurrentTabWidths(&sel_width, &unselected_width);
1587 DCHECK(attached_tabstrip_); // The tab must be attached.
1590 views::View::ConvertPointToTarget(NULL, attached_tabstrip_, &tab_loc);
1592 attached_tabstrip_->GetMirroredXInView(tab_loc.x()) - mouse_offset_.x();
1598 int size = attached_tabstrip_->GetSizeNeededForTabs(attached_tabs);
1599 int max_x = attached_tabstrip_->width() - size;
1605 TabStripModel* model = GetModel(attached_tabstrip_);
1622 attached_tabstrip_->CalculateBoundsForDraggedTabs(attached_tabs,
1685 TabStrip* owning_tabstrip = (attached_tabstrip_ && detach_into_browser_) ?
1686 attached_tabstrip_ : source_tabstrip_;
1701 attached_tabstrip_ != source_tabstrip_;
1702 if (attached_tabstrip_) {
1703 if (attached_tabstrip_ == source_tabstrip_) {
1708 attached_tabstrip_->DraggedTabsDetached();
1730 attached_tabstrip_ && source_dragged_contents())
1765 if (attached_tabstrip_) {
1767 GetModel(attached_tabstrip_)->GetIndexOfWebContents(data->contents);
1768 if (attached_tabstrip_ != source_tabstrip_) {
1771 GetModel(attached_tabstrip_)->DetachWebContentsAt(index);
1796 if (attached_tabstrip_) {
1797 attached_tabstrip_->StoppedDraggingTabs(
1798 GetTabsMatchingDraggedContents(attached_tabstrip_),
2000 dragged_view = attached_tabstrip_;
2023 attached_tabstrip_->GetWidget()->StackAtTop();
2034 return attached_tabstrip_->GetWidget();
2116 TabStrip* owning_tabstrip = (attached_tabstrip_ && detach_into_browser_) ?
2117 attached_tabstrip_ : source_tabstrip_;