| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/nine_box.h" | 5 #include "chrome/browser/gtk/nine_box.h" |
| 6 | 6 |
| 7 #include "app/gfx/gtk_util.h" |
| 7 #include "app/l10n_util.h" | 8 #include "app/l10n_util.h" |
| 8 #include "app/resource_bundle.h" | 9 #include "app/resource_bundle.h" |
| 9 #include "app/theme_provider.h" | 10 #include "app/theme_provider.h" |
| 10 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 11 #include "base/gfx/gtk_util.h" | |
| 12 #include "base/gfx/point.h" | 12 #include "base/gfx/point.h" |
| 13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 | 14 |
| 15 namespace { | 15 namespace { |
| 16 | 16 |
| 17 // Draw pixbuf |src| into |dst| at position (x, y). | 17 // Draw pixbuf |src| into |dst| at position (x, y). |
| 18 void DrawPixbuf(cairo_t* cr, GdkPixbuf* src, int x, int y) { | 18 void DrawPixbuf(cairo_t* cr, GdkPixbuf* src, int x, int y) { |
| 19 gdk_cairo_set_source_pixbuf(cr, src, x, y); | 19 gdk_cairo_set_source_pixbuf(cr, src, x, y); |
| 20 cairo_paint(cr); | 20 cairo_paint(cr); |
| 21 } | 21 } |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 cairo_paint(flipped_cr); | 183 cairo_paint(flipped_cr); |
| 184 cairo_destroy(flipped_cr); | 184 cairo_destroy(flipped_cr); |
| 185 | 185 |
| 186 // Mask the widget. | 186 // Mask the widget. |
| 187 gtk_widget_shape_combine_mask(widget, flipped_mask, 0, 0); | 187 gtk_widget_shape_combine_mask(widget, flipped_mask, 0, 0); |
| 188 g_object_unref(flipped_mask); | 188 g_object_unref(flipped_mask); |
| 189 } | 189 } |
| 190 | 190 |
| 191 g_object_unref(mask); | 191 g_object_unref(mask); |
| 192 } | 192 } |
| OLD | NEW |