Home
last modified time | relevance | path

Searched refs:ideal_bounds (Results 1 – 13 of 13) sorted by relevance

/external/chromium_org/ui/views/
Dview_model_utils.cc28 model.view_at(i)->SetBoundsRect(model.ideal_bounds(i)); in SetViewBoundsToIdealBounds()
35 if (view->bounds() != model.ideal_bounds(i)) in IsAtIdealBounds()
53 model.ideal_bounds(i).x() + model.ideal_bounds(i).width() / 2, in DetermineMoveIndex()
54 model.ideal_bounds(i).y() + model.ideal_bounds(i).height() / 2); in DetermineMoveIndex()
66 model.ideal_bounds(current_index + 1).x() - in DetermineMoveIndex()
67 model.ideal_bounds(current_index).x(), in DetermineMoveIndex()
68 model.ideal_bounds(current_index + 1).y() - in DetermineMoveIndex()
69 model.ideal_bounds(current_index).y()); in DetermineMoveIndex()
71 const gfx::Rect& bounds(model.ideal_bounds(i)); in DetermineMoveIndex()
Dview_model.h61 entries_[index].ideal_bounds = bounds; in set_ideal_bounds()
64 const gfx::Rect& ideal_bounds(int index) const { in ideal_bounds() function
66 return entries_[index].ideal_bounds; in ideal_bounds()
78 gfx::Rect ideal_bounds; member
Dview_model_unittest.cc21 result += base::IntToString(model.ideal_bounds(i).x()); in BoundsString()
47 EXPECT_EQ(v1_bounds, model.ideal_bounds(0)); in TEST()
/external/chromium_org/ash/shelf/
Dshelf_view.cc463 const gfx::Rect& ideal_bounds(view_model_->ideal_bounds(index)); in GetIdealBoundsOfItemIcon() local
468 ideal_bounds.x() + icon_bounds.x(), icon_bounds.width()), in GetIdealBoundsOfItemIcon()
469 ideal_bounds.y() + icon_bounds.y(), in GetIdealBoundsOfItemIcon()
486 view_model_->ideal_bounds(target_index).x(), in UpdatePanelIconPosition()
487 view_model_->ideal_bounds(target_index).y()) > in UpdatePanelIconPosition()
494 view_model_->ideal_bounds(target_index).right(), in UpdatePanelIconPosition()
495 view_model_->ideal_bounds(target_index).bottom()) < in UpdatePanelIconPosition()
685 IdealBounds ideal_bounds; in LayoutToIdealBounds() local
686 CalculateIdealBounds(&ideal_bounds); in LayoutToIdealBounds()
688 overflow_button_->SetBoundsRect(ideal_bounds.overflow_bounds); in LayoutToIdealBounds()
[all …]
Dshelf_view_unittest.cc660 gfx::Rect ideal_bounds = shelf_view_->GetIdealBoundsOfItemIcon(id); in TEST_P() local
663 ideal_bounds.Offset(screen_origin.x(), screen_origin.y()); in TEST_P()
664 EXPECT_EQ(item_bounds.x(), ideal_bounds.x()); in TEST_P()
665 EXPECT_EQ(item_bounds.y(), ideal_bounds.y()); in TEST_P()
/external/chromium_org/chrome/browser/ui/views/tabs/
Dtab_strip.cc596 active_center = ideal_bounds(active_index).x() + in SetStackedLayout()
597 ideal_bounds(active_index).width() / 2; in SetStackedLayout()
605 active_center - ideal_bounds(active_index).width() / 2); in SetStackedLayout()
701 int old_x = tabs_.ideal_bounds(model_index).x(); in RemoveTabAt()
1528 tab->SetBounds(0, ideal_bounds(model_index).y(), 0, in StartInsertTabAnimation()
1529 ideal_bounds(model_index).height()); in StartInsertTabAnimation()
1533 ideal_bounds(model_index).y(), 0, in StartInsertTabAnimation()
1534 ideal_bounds(model_index).height()); in StartInsertTabAnimation()
1584 bounds_animator_.AnimateViewTo(tab, ideal_bounds(i)); in AnimateToIdealBounds()
1656 gfx::Rect bounds(ideal_bounds(i)); in SetIdealBoundsFromPositions()
[all …]
Dstacked_tab_strip_layout_unittest.cc89 gfx::Rect bounds(view_model_.ideal_bounds(i)); in SetBoundsFromString()
101 result += base::IntToString(view_model_.ideal_bounds(i).x()); in BoundsString()
113 result += base::IntToString(view_model_.ideal_bounds(i).x()); in BoundsString2()
128 return view_model_.ideal_bounds(index).x(); in ideal_x()
390 int old_x = view_model_.ideal_bounds(test_data[i].remove_index).x(); in TEST_F()
Dtab_drag_controller.cc1257 dragged_x < attached_tabstrip_->ideal_bounds(start).x()) in GetInsertionIndexFrom()
1261 const gfx::Rect& ideal_bounds = attached_tabstrip_->ideal_bounds(i); in GetInsertionIndexFrom() local
1262 if (dragged_x < (ideal_bounds.x() + (ideal_bounds.width() / 2))) in GetInsertionIndexFrom()
1266 return (dragged_x < attached_tabstrip_->ideal_bounds(last_tab).right()) ? in GetInsertionIndexFrom()
1278 dragged_x >= attached_tabstrip_->ideal_bounds(start).right()) in GetInsertionIndexFromReversed()
1282 const gfx::Rect& ideal_bounds = attached_tabstrip_->ideal_bounds(i); in GetInsertionIndexFromReversed() local
1283 if (dragged_x >= (ideal_bounds.x() + (ideal_bounds.width() / 2))) in GetInsertionIndexFromReversed()
1287 return (dragged_x >= attached_tabstrip_->ideal_bounds(0).x()) ? 0 : -1; in GetInsertionIndexFromReversed()
1317 attached_tabstrip_->ideal_bounds(tab_count - 1).right(); in GetInsertionIndexForDraggedBounds()
1343 int active_x = attached_tabstrip_->ideal_bounds(index).x(); in ShouldDragToNextStackedTab()
[all …]
Dstacked_tab_strip_layout.cc123 gfx::Rect mini_bounds(view_model_->ideal_bounds(i)); in SizeToFit()
253 result += base::IntToString(view_model_->ideal_bounds(i).x()); in BoundsString()
367 view_model_->ideal_bounds(i - 1).x() + tab_offset()); in LayoutByTabOffsetAfter()
435 gfx::Rect mini_bounds(view_model_->ideal_bounds(i)); in LayoutForDragBefore()
Dstacked_tab_strip_layout.h190 int ideal_x(int index) const { return view_model_->ideal_bounds(index).x(); } in ideal_x()
Dtab_strip.h138 const gfx::Rect& ideal_bounds(int tab_data_index) { in ideal_bounds() function
139 return tabs_.ideal_bounds(tab_data_index); in ideal_bounds()
/external/chromium_org/ash/test/
Dshelf_view_test_api.cc80 return shelf_view_->view_model_->ideal_bounds(index); in GetIdealBoundsByIndex()
/external/chromium_org/ui/app_list/views/
Dapps_grid_view.cc699 gfx::Rect bounds = view_model_.ideal_bounds(i); in EndDrag()
889 view->SetBoundsRect(view_model_.ideal_bounds(i)); in Layout()
1203 const gfx::Rect& target = view_model_.ideal_bounds(i); in AnimateToIdealBounds()
1435 gfx::Rect view_ideal_bounds = view_model_.ideal_bounds( in GetTargetIconRectInFolder()