Lines Matching refs:bounds

78   gfx::Rect bounds = browser->override_bounds();
79 bool is_within_bounds = ComputeBoundsForNextPanel(&bounds, true);
81 Panel* panel = new Panel(browser, bounds);
93 gfx::Rect bounds = panel->bounds();
94 if (ComputeBoundsForNextPanel(&bounds, true)) {
131 current_x_ = (*iter)->bounds().x() + (*iter)->bounds().width();
141 dragging_panel_bounds_ = panel->bounds();
155 gfx::Rect new_bounds(active_panels_[dragging_panel_index_]->bounds());
173 int dragging_panel_x = dragging_panel->bounds().x() + delta_x;
185 if (dragging_panel_x > active_panels_[j]->bounds().x() +
186 active_panels_[j]->bounds().width() / 2)
190 gfx::Rect bounds(active_panels_[j]->bounds());
191 bounds.set_x(right_x_to_move_to - bounds.width());
192 right_x_to_move_to -= bounds.width() + kPanelsHorizontalSpacing;
193 active_panels_[j]->SetBounds(bounds);
217 int dragging_panel_x = dragging_panel->bounds().x() +
218 dragging_panel->bounds().width() - 1 + delta_x;
229 if (dragging_panel_x < active_panels_[j]->bounds().x() +
230 active_panels_[j]->bounds().width() / 2)
234 gfx::Rect bounds(active_panels_[j]->bounds());
235 bounds.set_x(left_x_to_move_to);
236 left_x_to_move_to += bounds.width() + kPanelsHorizontalSpacing;
237 active_panels_[j]->SetBounds(bounds);
258 active_panels_[dragging_panel_index_]->bounds().x());
274 gfx::Rect new_bounds((*iter)->bounds());
276 if (new_bounds != (*iter)->bounds())
281 bool PanelManager::ComputeBoundsForNextPanel(gfx::Rect* bounds,
283 int width = bounds->width();
284 int height = bounds->height();
312 bounds->SetRect(x, y, width, height);