Home
last modified time | relevance | path

Searched refs:ideal_x (Results 1 – 4 of 4) sorted by relevance

/external/chromium_org/chrome/browser/ui/views/tabs/
Dstacked_tab_strip_layout.cc43 mini_tab_to_non_mini_tab_ = x - ideal_x(mini_tab_count - 1); in SetXAndMiniCount()
44 first_tab_x_ = ideal_x(0); in SetXAndMiniCount()
46 SetIdealBoundsAt(active_index(), ConstrainActiveX(ideal_x(active_index()))); in SetXAndMiniCount()
68 SetIdealBoundsAt(active_index(), ConstrainActiveX(ideal_x(active_index()))); in SetActiveIndex()
77 int initial_x = ideal_x(active_index()); in DragActiveTab()
117 if (ideal_x(0) != first_tab_x_) { in SizeToFit()
120 int delta = ideal_x(0) - first_tab_x_; in SizeToFit()
124 mini_bounds.set_x(ideal_x(i) - delta); in SizeToFit()
128 const int exposed = tab_offset() - (ideal_x(i + 1) - ideal_x(i)); in SizeToFit()
129 SetIdealBoundsAt(i, ideal_x(i) - delta); in SizeToFit()
[all …]
Dstacked_tab_strip_layout_unittest.cc124 EXPECT_LE(ideal_x(j) - ideal_x(j - 1), max_width - 100); in Validate()
127 int ideal_x(int index) const { in ideal_x() function in StackedTabStripLayoutTest
Dstacked_tab_strip_layout.h190 int ideal_x(int index) const { return view_model_->ideal_bounds(index).x(); } in ideal_x() function
Dtab.cc995 const int ideal_x = (GetMiniWidth() - bounds->width()) / 2; in MaybeAdjustLeftForMiniTab() local
998 (ideal_x - bounds->x()))); in MaybeAdjustLeftForMiniTab()