From 699ab0da64a44444bc99108592004d1354f5f89f Mon Sep 17 00:00:00 2001 From: "aa@chromium.org" Date: Thu, 23 Apr 2009 23:19:14 +0000 Subject: Add transparency support to RenderWidgetHostView. This is used to make the background behind toolstrips 'shine through' them. It isn't possible to make them really transparent due to cleartype (cleartype must know the pixels behind the text to work), so instead we paint the background we want behind the transparent webview. Review URL: http://codereview.chromium.org/88076 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14378 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/common/render_messages_internal.h | 5 +++++ chrome/common/temp_scaffolding_stubs.h | 1 + 2 files changed, 6 insertions(+) (limited to 'chrome/common') diff --git a/chrome/common/render_messages_internal.h b/chrome/common/render_messages_internal.h index 2fdf5a9..e254c4f 100644 --- a/chrome/common/render_messages_internal.h +++ b/chrome/common/render_messages_internal.h @@ -571,6 +571,11 @@ IPC_BEGIN_MESSAGES(View) // Tells the renderer to clear the focused node (if any). IPC_MESSAGE_ROUTED0(ViewMsg_ClearFocusedNode) + + // Make the RenderView transparent and render it onto a custom background. The + // background will be tiled in both directions if it is not large enough. + IPC_MESSAGE_ROUTED1(ViewMsg_SetBackground, + SkBitmap /* background */) IPC_END_MESSAGES(View) diff --git a/chrome/common/temp_scaffolding_stubs.h b/chrome/common/temp_scaffolding_stubs.h index cac23ea..93a3b7d 100644 --- a/chrome/common/temp_scaffolding_stubs.h +++ b/chrome/common/temp_scaffolding_stubs.h @@ -505,6 +505,7 @@ class HWNDHtmlView { } virtual ~HWNDHtmlView() {} + int height() { NOTIMPLEMENTED(); return 0; } RenderViewHost* render_view_host() { NOTIMPLEMENTED(); return NULL; } void InitHidden() { NOTIMPLEMENTED(); } void set_preferred_size(const gfx::Size& size) { NOTIMPLEMENTED(); } -- cgit v1.1