Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(359)

Unified Diff: content/renderer/render_view_impl.cc

Issue 2287813002: Remove OnThemeChanged and associated unused message (Closed)
Patch Set: rebase Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/render_view_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index 933922495a0985c92a962d90a435c3cae97b7586..25051c78f60c223728541feac6bb736fa6d1034c 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -182,12 +182,6 @@
#include "content/renderer/android/phone_number_detector.h"
#include "ui/gfx/geometry/rect_f.h"
-#elif defined(OS_WIN)
-// TODO(port): these files are currently Windows only because they concern:
-// * theming
-#include "ui/native_theme/native_theme_win.h"
-#elif defined(USE_X11)
-#include "ui/native_theme/native_theme.h"
#elif defined(OS_MACOSX)
#include "skia/ext/skia_utils_mac.h"
#endif
@@ -1331,7 +1325,6 @@ bool RenderViewImpl::OnMessageReceived(const IPC::Message& message) {
IPC_MESSAGE_HANDLER(ViewMsg_EnumerateDirectoryResponse,
OnEnumerateDirectoryResponse)
IPC_MESSAGE_HANDLER(ViewMsg_ClosePage, OnClosePage)
- IPC_MESSAGE_HANDLER(ViewMsg_ThemeChanged, OnThemeChanged)
IPC_MESSAGE_HANDLER(ViewMsg_MoveOrResizeStarted, OnMoveOrResizeStarted)
IPC_MESSAGE_HANDLER(ViewMsg_ClearFocusedElement, OnClearFocusedElement)
IPC_MESSAGE_HANDLER(ViewMsg_SetBackgroundOpaque, OnSetBackgroundOpaque)
@@ -2515,19 +2508,6 @@ void RenderViewImpl::OnClose() {
RenderWidget::OnClose();
}
-void RenderViewImpl::OnThemeChanged() {
-#if defined(USE_AURA)
- // Aura doesn't care if we switch themes.
-#elif defined(OS_WIN)
- ui::NativeThemeWin::instance()->CloseHandles();
- if (webview())
- webview()->themeChanged();
-#else // defined(OS_WIN)
- // TODO(port): we don't support theming on non-Windows platforms yet
- NOTIMPLEMENTED();
-#endif
-}
-
void RenderViewImpl::OnMoveOrResizeStarted() {
if (webview())
webview()->hidePopups();
« no previous file with comments | « content/renderer/render_view_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698