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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_root_window_host_win.cc

Issue 22353018: Fix aura flickering when not using DWM. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/views/widget/desktop_aura/desktop_root_window_host_win.h" 5 #include "ui/views/widget/desktop_aura/desktop_root_window_host_win.h"
6 6
7 #include "base/win/metro.h" 7 #include "base/win/metro.h"
8 #include "third_party/skia/include/core/SkPath.h" 8 #include "third_party/skia/include/core/SkPath.h"
9 #include "third_party/skia/include/core/SkRegion.h" 9 #include "third_party/skia/include/core/SkRegion.h"
10 #include "ui/aura/client/aura_constants.h" 10 #include "ui/aura/client/aura_constants.h"
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 383
384 void DesktopRootWindowHostWin::OnNativeWidgetFocus() { 384 void DesktopRootWindowHostWin::OnNativeWidgetFocus() {
385 // HWNDMessageHandler will perform the proper updating on its own. 385 // HWNDMessageHandler will perform the proper updating on its own.
386 } 386 }
387 387
388 void DesktopRootWindowHostWin::OnNativeWidgetBlur() { 388 void DesktopRootWindowHostWin::OnNativeWidgetBlur() {
389 } 389 }
390 390
391 void DesktopRootWindowHostWin::SetInactiveRenderingDisabled( 391 void DesktopRootWindowHostWin::SetInactiveRenderingDisabled(
392 bool disable_inactive) { 392 bool disable_inactive) {
393 // We call DefWindowProc of WM_NCACTIVATE to paint the caption as active or 393 // Force the non-client area (most notably the title bar) to paint as either
394 // inactive. This is safe with the only sideeffect being the 394 // active or inactive, depending on the input.
395 // WM_GETTEXT message which is sent by DefWindowProc to get the text to be 395 SendMessage(message_handler_->hwnd(), WM_NCACTIVATE, !!disable_inactive, 0);
396 // displayed on the caption.
397 ::DefWindowProc(message_handler_->hwnd(),
398 WM_NCACTIVATE,
399 !!disable_inactive,
400 0);
401 } 396 }
402 397
403 //////////////////////////////////////////////////////////////////////////////// 398 ////////////////////////////////////////////////////////////////////////////////
404 // DesktopRootWindowHostWin, RootWindowHost implementation: 399 // DesktopRootWindowHostWin, RootWindowHost implementation:
405 400
406 401
407 void DesktopRootWindowHostWin::SetDelegate( 402 void DesktopRootWindowHostWin::SetDelegate(
408 aura::RootWindowHostDelegate* delegate) { 403 aura::RootWindowHostDelegate* delegate) {
409 root_window_host_delegate_ = delegate; 404 root_window_host_delegate_ = delegate;
410 } 405 }
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
889 DesktopRootWindowHost* DesktopRootWindowHost::Create( 884 DesktopRootWindowHost* DesktopRootWindowHost::Create(
890 internal::NativeWidgetDelegate* native_widget_delegate, 885 internal::NativeWidgetDelegate* native_widget_delegate,
891 DesktopNativeWidgetAura* desktop_native_widget_aura, 886 DesktopNativeWidgetAura* desktop_native_widget_aura,
892 const gfx::Rect& initial_bounds) { 887 const gfx::Rect& initial_bounds) {
893 return new DesktopRootWindowHostWin(native_widget_delegate, 888 return new DesktopRootWindowHostWin(native_widget_delegate,
894 desktop_native_widget_aura, 889 desktop_native_widget_aura,
895 initial_bounds); 890 initial_bounds);
896 } 891 }
897 892
898 } // namespace views 893 } // namespace views
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698