Searched refs:child_allocation (Results 1 - 7 of 7) sorted by relevance

/external/chromium_org/chrome/browser/ui/gtk/
H A Dgtk_chrome_shrinkable_hbox.cc47 GtkAllocation child_allocation; local
48 gtk_widget_get_allocation(child, &child_allocation);
52 if (child_allocation.width > data->homogeneous_child_width) {
53 child_allocation.x +=
54 (child_allocation.width - data->homogeneous_child_width) / 2;
55 child_allocation.width = data->homogeneous_child_width;
68 child_allocation.x);
70 child_allocation.width -= overflow;
71 child_allocation.x += overflow;
76 int overflow = (child_allocation
[all...]
/external/chromium/chrome/browser/ui/gtk/
H A Dgtk_chrome_shrinkable_hbox.cc54 GtkAllocation child_allocation = child->allocation; local
58 if (child_allocation.width > data->homogeneous_child_width) {
59 child_allocation.x +=
60 (child_allocation.width - data->homogeneous_child_width) / 2;
61 child_allocation.width = data->homogeneous_child_width;
74 child_allocation.x);
76 child_allocation.width -= overflow;
77 child_allocation.x += overflow;
82 int overflow = (child_allocation.x + child_allocation
[all...]
H A Dgtk_expanded_container.cc52 GtkAllocation child_allocation; local
53 child_allocation.width = child_requisition.width;
54 child_allocation.height = child_requisition.height;
55 if (child_allocation.width < 0 || child_allocation.height < 0) {
57 if (child_allocation.width < 0)
58 child_allocation.width = child_requisition.width;
59 if (child_allocation.height < 0)
60 child_allocation.height = child_requisition.height;
66 child_allocation
[all...]
H A Dgtk_floating_container.cc232 GtkAllocation child_allocation; local
241 child_allocation.x = allocation->x + child->x;
242 child_allocation.y = allocation->y + child->y;
243 child_allocation.width = std::max(1, std::min(child_requisition.width,
245 child_allocation.height = std::max(1, std::min(child_requisition.height,
247 gtk_widget_size_allocate(child->widget, &child_allocation);
/external/chromium_org/ui/base/gtk/
H A Dgtk_expanded_container.cc54 GtkAllocation child_allocation; local
55 child_allocation.width = child_requisition.width;
56 child_allocation.height = child_requisition.height;
57 if (child_allocation.width < 0 || child_allocation.height < 0) {
59 if (child_allocation.width < 0)
60 child_allocation.width = child_requisition.width;
61 if (child_allocation.height < 0)
62 child_allocation.height = child_requisition.height;
68 child_allocation
[all...]
H A Dgtk_floating_container.cc234 GtkAllocation child_allocation; local
243 child_allocation.x = allocation->x + child->x;
244 child_allocation.y = allocation->y + child->y;
245 child_allocation.width = std::max(1, std::min(child_requisition.width,
247 child_allocation.height = std::max(1, std::min(child_requisition.height,
249 gtk_widget_size_allocate(child->widget, &child_allocation);
/external/chromium_org/ui/gfx/
H A Dgtk_preserve_window.cc227 GtkAllocation child_allocation; local
228 child_allocation.x = child->x + border_width;
229 child_allocation.y = child->y + border_width;
230 child_allocation.width = child_requisition.width;
231 child_allocation.height = child_requisition.height;
233 gtk_widget_size_allocate(child->widget, &child_allocation);

Completed in 153 milliseconds