Searched refs:ideal_bounds (Results 1 - 25 of 28) sorted by relevance

12

/external/chromium_org/ui/views/
H A Dview_model_utils.cc28 model.view_at(i)->SetBoundsRect(model.ideal_bounds(i));
35 if (view->bounds() != model.ideal_bounds(i))
53 model.ideal_bounds(i).x() + model.ideal_bounds(i).width() / 2,
54 model.ideal_bounds(i).y() + model.ideal_bounds(i).height() / 2);
66 model.ideal_bounds(current_index + 1).x() -
67 model.ideal_bounds(current_index).x(),
68 model.ideal_bounds(current_index + 1).y() -
69 model.ideal_bounds(current_inde
[all...]
H A Dview_model.h61 entries_[index].ideal_bounds = bounds;
64 const gfx::Rect& ideal_bounds(int index) const { function in class:views::ViewModel
66 return entries_[index].ideal_bounds;
78 gfx::Rect ideal_bounds; member in struct:views::ViewModel::Entry
H A Dview_model_unittest.cc21 result += base::IntToString(model.ideal_bounds(i).x());
47 EXPECT_EQ(v1_bounds, model.ideal_bounds(0));
/external/chromium/chrome/browser/ui/views/tabs/
H A Dside_tab_strip.cc256 if (ideal_bounds(i).bottom() > initial_y) {
266 delta = initial_y - ideal_bounds(first_vis_index).y();
271 delta = initial_y - ideal_bounds(first_vis_index - 1).y();
277 if (ideal_bounds(first_vis_index).y() > initial_y) {
278 delta = initial_y - ideal_bounds(first_vis_index).y();
282 delta = initial_y - ideal_bounds(first_vis_index + 1).y();
348 tab->SetBounds(ideal_bounds(tab_data_index).x(), 0,
349 ideal_bounds(tab_data_index).width(), 0);
353 ideal_bounds(tab_data_index).width(), 0);
363 bounds_animator().AnimateViewTo(tab, ideal_bounds(
[all...]
H A Dbase_tab_strip.h43 const gfx::Rect& ideal_bounds(int tab_data_index) { function in class:BaseTabStrip
44 return tab_data_[tab_data_index].ideal_bounds;
144 gfx::Rect ideal_bounds; member in struct:BaseTabStrip::TabData
174 // currently set in ideal_bounds.
199 tab_data_[index].ideal_bounds = bounds;
H A Dbase_tab_strip.cc491 tabs[i]->SetBoundsRect(ideal_bounds(tab_data_index));
521 tab_data_[i].tab->SetBoundsRect(tab_data_[i].ideal_bounds);
558 bounds_animator_.AnimateViewTo(tab, ideal_bounds(TabIndexOfTab(tab)));
H A Ddragged_tab_controller.cc986 const gfx::Rect& ideal_bounds = attached_tabstrip_->ideal_bounds(i); local
988 gfx::Rect left_half = ideal_bounds;
990 gfx::Rect right_half = ideal_bounds;
991 right_half.set_width(ideal_bounds.width() - left_half.width());
1005 int max_y = ideal_bounds.bottom();
1006 int mid_y = ideal_bounds.y() + ideal_bounds.height() / 2;
H A Dtab_strip.cc444 tab->SetBounds(0, ideal_bounds(tab_data_index).y(), 0,
445 ideal_bounds(tab_data_index).height());
449 ideal_bounds(tab_data_index).y(), 0,
450 ideal_bounds(tab_data_index).height());
460 bounds_animator().AnimateViewTo(tab, ideal_bounds(i));
959 // existing tabs, so we manually shift ideal_bounds then animate.
972 gfx::Rect bounds = ideal_bounds(i);
/external/chromium_org/ash/launcher/
H A Dlauncher_view.cc486 const gfx::Rect& ideal_bounds(view_model_->ideal_bounds(index));
492 ideal_bounds.x() + icon_bounds.x(), icon_bounds.width()),
493 ideal_bounds.y() + icon_bounds.y(),
510 shelf->PrimaryAxisValue(view_model_->ideal_bounds(target_index).x(),
511 view_model_->ideal_bounds(target_index).y()) >
517 view_model_->ideal_bounds(target_index).right(),
518 view_model_->ideal_bounds(target_index).bottom()) <
681 IdealBounds ideal_bounds; local
682 CalculateIdealBounds(&ideal_bounds);
881 IdealBounds ideal_bounds; local
1199 IdealBounds ideal_bounds; local
1263 IdealBounds ideal_bounds; local
[all...]
H A Dlauncher_view_unittest.cc447 gfx::Rect ideal_bounds = launcher_view_->GetIdealBoundsOfItemIcon(id); local
450 ideal_bounds.Offset(screen_origin.x(), screen_origin.y());
451 EXPECT_EQ(item_bounds.x(), ideal_bounds.x());
452 EXPECT_EQ(item_bounds.y(), ideal_bounds.y());
/external/chromium/chrome/browser/ui/touch/tabs/
H A Dtouch_tab_strip.cc110 tab->SetBounds(0, ideal_bounds(tab_data_index).y(), 0,
111 ideal_bounds(tab_data_index).height());
115 ideal_bounds(tab_data_index).y(), 0,
116 ideal_bounds(tab_data_index).height());
126 bounds_animator().AnimateViewTo(tab, ideal_bounds(i));
/external/chromium/chrome/browser/ui/tabs/
H A Ddock_info.cc236 gfx::Rect ideal_bounds(x, y, popup_width(), popup_height());
237 ideal_bounds = ideal_bounds.AdjustToFit(monitor_bounds_);
238 return ideal_bounds;
/external/chromium_org/ash/test/
H A Dlauncher_view_test_api.cc77 return launcher_view_->view_model_->ideal_bounds(index);
/external/chromium_org/chrome/browser/ui/tabs/
H A Ddock_info.cc226 gfx::Rect ideal_bounds(x, y, popup_width(), popup_height());
227 ideal_bounds.AdjustToFit(monitor_bounds_);
228 return ideal_bounds;
/external/chromium_org/chrome/browser/ui/views/tabs/
H A Dstacked_tab_strip_layout_unittest.cc89 gfx::Rect bounds(view_model_.ideal_bounds(i));
101 result += base::IntToString(view_model_.ideal_bounds(i).x());
113 result += base::IntToString(view_model_.ideal_bounds(i).x());
128 return view_model_.ideal_bounds(index).x();
390 int old_x = view_model_.ideal_bounds(test_data[i].remove_index).x();
H A Dtab_strip.cc648 active_center = ideal_bounds(active_index).x() +
649 ideal_bounds(active_index).width() / 2;
657 active_center - ideal_bounds(active_index).width() / 2);
753 int old_x = tabs_.ideal_bounds(model_index).x();
1651 tab->SetBounds(0, ideal_bounds(model_index).y(), 0,
1652 ideal_bounds(model_index).height());
1656 ideal_bounds(model_index).y(), 0,
1657 ideal_bounds(model_index).height());
1709 bounds_animator_.AnimateViewTo(tab, ideal_bounds(i));
1756 gfx::Rect bounds(ideal_bounds(
[all...]
H A Dstacked_tab_strip_layout.h188 int ideal_x(int index) const { return view_model_->ideal_bounds(index).x(); }
H A Dstacked_tab_strip_layout.cc123 gfx::Rect mini_bounds(view_model_->ideal_bounds(i));
253 result += base::IntToString(view_model_->ideal_bounds(i).x());
367 view_model_->ideal_bounds(i - 1).x() + tab_offset());
435 gfx::Rect mini_bounds(view_model_->ideal_bounds(i));
H A Dtab_strip.h115 const gfx::Rect& ideal_bounds(int tab_data_index) { function in class:TabStrip
116 return tabs_.ideal_bounds(tab_data_index);
317 // currently set in ideal_bounds.
H A Dtab_drag_controller.cc1454 const gfx::Rect& ideal_bounds = attached_tabstrip_->ideal_bounds(i); local
1456 ideal_bounds.SplitVertically(&left_half, &right_half);
1491 attached_tabstrip_->ideal_bounds(tab_count - 1).right();
1518 int active_x = attached_tabstrip_->ideal_bounds(index).x();
1519 int next_x = attached_tabstrip_->ideal_bounds(index + 1).x();
1533 int active_x = attached_tabstrip_->ideal_bounds(index).x();
1534 int previous_x = attached_tabstrip_->ideal_bounds(index - 1).x();
/external/chromium/chrome/browser/ui/gtk/tabs/
H A Ddragged_tab_controller_gtk.cc467 gfx::Rect ideal_bounds = attached_tabstrip_->GetIdealBounds(i); local
469 gfx::Rect left_half = ideal_bounds;
472 gfx::Rect right_half = ideal_bounds;
473 right_half.set_width(ideal_bounds.width() - left_half.width());
H A Dtab_strip_gtk.h172 gfx::Rect ideal_bounds; member in struct:TabStripGtk::TabData
/external/chromium_org/ui/app_list/views/
H A Dcontents_view.cc136 view_model_->ideal_bounds(i));
/external/chromium_org/chrome/browser/ui/gtk/tabs/
H A Dtab_strip_gtk.h190 gfx::Rect ideal_bounds; member in struct:TabStripGtk::TabData
H A Ddragged_tab_controller_gtk.cc529 gfx::Rect ideal_bounds = attached_tabstrip_->GetIdealBounds(i); local
531 ideal_bounds.SplitVertically(&left_half, &right_half);

Completed in 396 milliseconds

12