Home | History | Annotate | Download | only in panels

Lines Matching refs:STACK

85   StackedPanelCollection* stack = panel->stack();
86 if (stack) {
89 stack->panels().begin();
90 iter != stack->panels().end(); ++iter) {
163 // Check if the dragging panel can be moved out the stack. Note that this
172 // Check if the dragging panel can stack with other panel or stack.
247 // when the stack has more than 2 panels and the 2nd top panel is unstacked
249 // remain in the stack.
254 // If the origianl collection is a stack and it becomes empty, remove it.
362 STACK,
368 StackedPanelCollection* dragging_stack = dragging_panel_->stack();
370 // Move the panel (and all the panels below if in a stack) to the new
379 // If the panel to stack with is not in a stack, create it now.
380 StackedPanelCollection* target_stack = target_panel->stack();
403 // stack) can be dragged away from the panel below such that the former panel(s)
404 // are not in the same stack as the latter panel.
407 StackedPanelCollection* dragging_stack = dragging_panel_->stack();
411 // Unstacking from top only happens when a panel/stack stacks to the top of
452 // When a panel is removed from its stack, we always make it detached. If it
458 // If there're only 2 panels in the stack, both panels should move out of the
459 // stack and the stack should be removed.
471 // If only one panel (top panel) needs to unstack, move it out of the stack.
481 // bottom panel out of the stack.
486 dragging_panel_->stack()->MoveAllDraggingPanelsInstantly(delta);
490 // Otherwise, move all unstacked panels to a new stack.
492 // because the stack collection will be modified during the move.
509 dragging_panel_->stack()->MoveAllDraggingPanelsInstantly(delta);
515 // stack) can be dragged away from the panel above such that the former panel(s)
516 // are not in the same stack as the latter panel.
520 StackedPanelCollection* dragging_stack = dragging_panel_->stack();
545 // If there're only 2 panels in the stack, both panels should move out the
546 // stack and the stack should be removed.
560 // If the dragging panel is bottom panel, move it out of the stack.
570 // out of the stack.
576 dragging_panel_->stack()->MoveAllDraggingPanelsInstantly(delta);
584 // below to a new stack while keeping all panels above in the same stack.
589 dragging_panel_->stack()->MoveAllDraggingPanelsInstantly(delta);
631 // If the panel is in a stack, the height is from the top edge of this panel
632 // to the bottom edge of the last panel in the stack.
634 StackedPanelCollection* stack = dragging_panel_->stack();
635 if (stack) {
636 height = stack->bottom_panel()->GetBounds().bottom() -
661 // in a stack. If not, it is same as |potential_dragging_bounds|.
663 // stack to the top of other panel.
666 StackedPanelCollection* dragging_stack = dragging_panel_->stack();
719 DCHECK_EQ(STACK, action);
720 StackedPanelCollection* stack = panel->stack();
722 // Can |dragging_panel_| or the bottom panel in |dragging_panel_|'s stack
723 // stack to top edge of |panel|? If |panel| is in a stack and not top
727 if ((!stack || panel == stack->top_panel()) &&
742 // Can |dragging_panel_| stack to bottom edge of |panel|? If |panel| is
743 // in a stack and not bottom panel, its bottom edge is interior edge and
747 if ((!stack || panel == stack->bottom_panel()) &&
769 StackedPanelCollection* stack = panel->stack();
770 if (!stack) {
778 // because the stack collection will be modified during the move.
780 StackedPanelCollection::Panels::const_iterator iter = stack->panels().begin();
781 for (; iter != stack->panels().end(); ++iter)
784 for (; iter != stack->panels().end(); ++iter) {
799 // If the stack becomes empty or has only one panel left, no need to keep
800 // the stack.
801 if (stack && stack->num_panels() <= 1) {
802 if (stack->num_panels() == 1) {
804 stack->top_panel(),
808 // Note that if the stack is the original collection, do not remove it now.
811 if (stack != dragging_panel_original_collection_)
812 panel_manager_->RemoveStack(stack);