| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/gtk/gtk_chrome_shrinkable_hbox.h" | 5 #include "chrome/browser/ui/gtk/gtk_chrome_shrinkable_hbox.h" |
| 6 | 6 |
| 7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
| 8 |
| 8 #include <algorithm> | 9 #include <algorithm> |
| 9 | 10 |
| 10 namespace { | 11 namespace { |
| 11 | 12 |
| 12 enum { | 13 enum { |
| 13 PROP_0, | 14 PROP_0, |
| 14 PROP_HIDE_CHILD_DIRECTLY | 15 PROP_HIDE_CHILD_DIRECTLY |
| 15 }; | 16 }; |
| 16 | 17 |
| 17 struct SizeAllocateData { | 18 struct SizeAllocateData { |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 | 274 |
| 274 gint gtk_chrome_shrinkable_hbox_get_visible_child_count( | 275 gint gtk_chrome_shrinkable_hbox_get_visible_child_count( |
| 275 GtkChromeShrinkableHBox* box) { | 276 GtkChromeShrinkableHBox* box) { |
| 276 gint visible_children_count = 0; | 277 gint visible_children_count = 0; |
| 277 gtk_container_foreach(GTK_CONTAINER(box), CountVisibleChildren, | 278 gtk_container_foreach(GTK_CONTAINER(box), CountVisibleChildren, |
| 278 &visible_children_count); | 279 &visible_children_count); |
| 279 return visible_children_count; | 280 return visible_children_count; |
| 280 } | 281 } |
| 281 | 282 |
| 282 G_END_DECLS | 283 G_END_DECLS |
| OLD | NEW |