summaryrefslogtreecommitdiffstats
path: root/chrome/views/hwnd_view_container.cc
diff options
context:
space:
mode:
authorbeng@google.com <beng@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-15 00:19:55 +0000
committerbeng@google.com <beng@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-15 00:19:55 +0000
commit1b3deed79fc638d3755ba5159108712238d8beb7 (patch)
tree285572fcf3283acfb4483f22e7433c3c0c9b0be1 /chrome/views/hwnd_view_container.cc
parent173cc090e06c99e15f31fe21d291cd93ba477527 (diff)
downloadchromium_src-1b3deed79fc638d3755ba5159108712238d8beb7.zip
chromium_src-1b3deed79fc638d3755ba5159108712238d8beb7.tar.gz
chromium_src-1b3deed79fc638d3755ba5159108712238d8beb7.tar.bz2
Make theme change notifications for the renderer originate from the RenderWidgetHostHWND, not the frame.
B=1326392 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@918 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/views/hwnd_view_container.cc')
-rw-r--r--chrome/views/hwnd_view_container.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/views/hwnd_view_container.cc b/chrome/views/hwnd_view_container.cc
index a9649b5..cf1a58a 100644
--- a/chrome/views/hwnd_view_container.cc
+++ b/chrome/views/hwnd_view_container.cc
@@ -29,6 +29,7 @@
#include "chrome/views/hwnd_view_container.h"
+#include "base/gfx/native_theme.h"
#include "base/message_loop.h"
#include "base/string_util.h"
#include "base/win_util.h"
@@ -666,6 +667,11 @@ void HWNDViewContainer::OnSize(UINT param, const CSize& size) {
ChangeSize(param, size);
}
+void HWNDViewContainer::OnThemeChanged() {
+ // Notify NativeTheme.
+ gfx::NativeTheme::instance()->CloseHandles();
+}
+
void HWNDViewContainer::OnFinalMessage(HWND window) {
if (delete_on_destroy_)
delete this;