| 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 "app/gfx/canvas.h" | 5 #include "gfx/canvas.h" |
| 6 | 6 |
| 7 #include <cairo/cairo.h> | 7 #include <cairo/cairo.h> |
| 8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
| 9 #include <pango/pango.h> | 9 #include <pango/pango.h> |
| 10 #include <pango/pangocairo.h> | 10 #include <pango/pangocairo.h> |
| 11 | 11 |
| 12 #include "app/gfx/font.h" | |
| 13 #include "base/logging.h" | 12 #include "base/logging.h" |
| 14 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
| 14 #include "gfx/font.h" |
| 15 #include "gfx/rect.h" | 15 #include "gfx/rect.h" |
| 16 | 16 |
| 17 namespace { | 17 namespace { |
| 18 | 18 |
| 19 const gunichar kAcceleratorChar = '&'; | 19 const gunichar kAcceleratorChar = '&'; |
| 20 | 20 |
| 21 // Font settings that we initialize once and then use when drawing text in | 21 // Font settings that we initialize once and then use when drawing text in |
| 22 // DrawStringInt(). | 22 // DrawStringInt(). |
| 23 static cairo_font_options_t* cairo_font_options = NULL; | 23 static cairo_font_options_t* cairo_font_options = NULL; |
| 24 | 24 |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 NOTREACHED(); | 272 NOTREACHED(); |
| 273 return; | 273 return; |
| 274 } | 274 } |
| 275 | 275 |
| 276 cairo_t* cr = beginPlatformPaint(); | 276 cairo_t* cr = beginPlatformPaint(); |
| 277 gdk_cairo_set_source_pixbuf(cr, pixbuf, x, y); | 277 gdk_cairo_set_source_pixbuf(cr, pixbuf, x, y); |
| 278 cairo_paint(cr); | 278 cairo_paint(cr); |
| 279 } | 279 } |
| 280 | 280 |
| 281 } // namespace gfx | 281 } // namespace gfx |
| OLD | NEW |