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

Unified Diff: ui/views/widget/desktop_aura/desktop_root_window_host_win.cc

Issue 14299009: In Windows desktop Chrome AURA the HandleVisibilityChanged function on the HWNDMessageHandlerDelega… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 8 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
Index: ui/views/widget/desktop_aura/desktop_root_window_host_win.cc
===================================================================
--- ui/views/widget/desktop_aura/desktop_root_window_host_win.cc (revision 195576)
+++ ui/views/widget/desktop_aura/desktop_root_window_host_win.cc (working copy)
@@ -383,6 +383,18 @@
void DesktopRootWindowHostWin::OnNativeWidgetBlur() {
}
+void DesktopRootWindowHostWin::SetInactiveRenderingDisabled(
+ bool disable_inactive) {
+ // We call DefWindowProc of WM_NCACTIVATE to paint the caption as active or
+ // inactive. This is safe with the only sideeffect being the
+ // WM_GETTEXT message which is sent by DefWindowProc to get the text to be
+ // displayed on the caption.
+ ::DefWindowProc(message_handler_->hwnd(),
+ WM_NCACTIVATE,
+ !!disable_inactive,
+ 0);
+}
+
////////////////////////////////////////////////////////////////////////////////
// DesktopRootWindowHostWin, RootWindowHost implementation:

Powered by Google App Engine
This is Rietveld 408576698