summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-05 21:22:29 +0000
committertc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-05 21:22:29 +0000
commitd59baf73fcb717fab2bbab2d9851bc9da3d5745c (patch)
treef3100364306bf7c6cca39d95fc9cf5a926104ce3
parente1e4b6e8810a0fc7193ac9a55ad14588a2fff4d1 (diff)
downloadchromium_src-d59baf73fcb717fab2bbab2d9851bc9da3d5745c.zip
chromium_src-d59baf73fcb717fab2bbab2d9851bc9da3d5745c.tar.gz
chromium_src-d59baf73fcb717fab2bbab2d9851bc9da3d5745c.tar.bz2
Draw the theme overlay. I hadn't implemented this previously because
I didn't have an example theme that does this. TEST=Install the Folders theme from the theme gallery and you should see a paperclip and some paper in the theme. Review URL: http://codereview.chromium.org/165002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22539 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/gtk/browser_window_gtk.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/chrome/browser/gtk/browser_window_gtk.cc b/chrome/browser/gtk/browser_window_gtk.cc
index b005664..1bbf1b3 100644
--- a/chrome/browser/gtk/browser_window_gtk.cc
+++ b/chrome/browser/gtk/browser_window_gtk.cc
@@ -474,14 +474,14 @@ gboolean BrowserWindowGtk::OnCustomFrameExpose(GtkWidget* widget,
}
image->RenderTopCenterStrip(cr, 0, 0, widget->allocation.width);
- DrawContentShadow(cr, window);
+ if (theme_provider->HasCustomImage(IDR_THEME_FRAME_OVERLAY)) {
+ GdkPixbuf* theme_overlay = theme_provider->GetPixbufNamed(
+ IDR_THEME_FRAME_OVERLAY);
+ gdk_cairo_set_source_pixbuf(cr, theme_overlay, 0, 0);
+ cairo_paint(cr);
+ }
- // TODO(tc): Draw the theme overlay. The windows code is below.
- // if (theme_provider->HasCustomImage(IDR_THEME_FRAME_OVERLAY)) {
- // SkBitmap* theme_overlay = theme_provider->GetBitmapNamed(
- // IDR_THEME_FRAME_OVERLAY);
- // canvas->DrawBitmapInt(*theme_overlay, 0, 0);
- // }
+ DrawContentShadow(cr, window);
cairo_destroy(cr);