| OLD | NEW |
| 1 // Copyright (c) 2009 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/tab_contents_container_gtk.h" | 5 #include "chrome/browser/gtk/tab_contents_container_gtk.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/i18n/rtl.h" | 9 #include "base/i18n/rtl.h" |
| 10 #include "chrome/browser/gtk/gtk_expanded_container.h" | 10 #include "chrome/browser/gtk/gtk_expanded_container.h" |
| 11 #include "chrome/browser/gtk/gtk_floating_container.h" | 11 #include "chrome/browser/gtk/gtk_floating_container.h" |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 g_value_set_int(&value, allocation->width - requisition.width); | 235 g_value_set_int(&value, allocation->width - requisition.width); |
| 236 gtk_container_child_set_property(GTK_CONTAINER(floating_container), | 236 gtk_container_child_set_property(GTK_CONTAINER(floating_container), |
| 237 status->widget(), "x", &value); | 237 status->widget(), "x", &value); |
| 238 | 238 |
| 239 int child_y = std::max(allocation->height - requisition.height, 0); | 239 int child_y = std::max(allocation->height - requisition.height, 0); |
| 240 g_value_set_int(&value, child_y + status->y_offset()); | 240 g_value_set_int(&value, child_y + status->y_offset()); |
| 241 gtk_container_child_set_property(GTK_CONTAINER(floating_container), | 241 gtk_container_child_set_property(GTK_CONTAINER(floating_container), |
| 242 status->widget(), "y", &value); | 242 status->widget(), "y", &value); |
| 243 g_value_unset(&value); | 243 g_value_unset(&value); |
| 244 } | 244 } |
| OLD | NEW |