| OLD | NEW |
| 1 // Copyright (c) 2010 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/gtk/gtk_chrome_shrinkable_hbox.h" |
| 6 | 6 |
| 7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
| 8 #include <algorithm> | 8 #include <algorithm> |
| 9 | 9 |
| 10 namespace { | 10 namespace { |
| 11 | 11 |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 | 273 |
| 274 gint gtk_chrome_shrinkable_hbox_get_visible_child_count( | 274 gint gtk_chrome_shrinkable_hbox_get_visible_child_count( |
| 275 GtkChromeShrinkableHBox* box) { | 275 GtkChromeShrinkableHBox* box) { |
| 276 gint visible_children_count = 0; | 276 gint visible_children_count = 0; |
| 277 gtk_container_foreach(GTK_CONTAINER(box), CountVisibleChildren, | 277 gtk_container_foreach(GTK_CONTAINER(box), CountVisibleChildren, |
| 278 &visible_children_count); | 278 &visible_children_count); |
| 279 return visible_children_count; | 279 return visible_children_count; |
| 280 } | 280 } |
| 281 | 281 |
| 282 G_END_DECLS | 282 G_END_DECLS |
| OLD | NEW |