summaryrefslogtreecommitdiffstats
path: root/chrome/views/hwnd_view_container.cc
diff options
context:
space:
mode:
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;