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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
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 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 message_handler_->FlashFrame(flash_frame); 376 message_handler_->FlashFrame(flash_frame);
377 } 377 }
378 378
379 void DesktopRootWindowHostWin::OnNativeWidgetFocus() { 379 void DesktopRootWindowHostWin::OnNativeWidgetFocus() {
380 // HWNDMessageHandler will perform the proper updating on its own. 380 // HWNDMessageHandler will perform the proper updating on its own.
381 } 381 }
382 382
383 void DesktopRootWindowHostWin::OnNativeWidgetBlur() { 383 void DesktopRootWindowHostWin::OnNativeWidgetBlur() {
384 } 384 }
385 385
386 void DesktopRootWindowHostWin::SetInactiveRenderingDisabled(
387 bool disable_inactive) {
388 ::DefWindowProc(message_handler_->hwnd(),
sky 2013/04/23 21:25:59 Add a description as to why this is safe.
ananta 2013/04/23 21:32:28 Done.
389 WM_NCACTIVATE,
390 !!disable_inactive,
391 0);
392 }
393
386 //////////////////////////////////////////////////////////////////////////////// 394 ////////////////////////////////////////////////////////////////////////////////
387 // DesktopRootWindowHostWin, RootWindowHost implementation: 395 // DesktopRootWindowHostWin, RootWindowHost implementation:
388 396
389 397
390 void DesktopRootWindowHostWin::SetDelegate( 398 void DesktopRootWindowHostWin::SetDelegate(
391 aura::RootWindowHostDelegate* delegate) { 399 aura::RootWindowHostDelegate* delegate) {
392 root_window_host_delegate_ = delegate; 400 root_window_host_delegate_ = delegate;
393 } 401 }
394 402
395 aura::RootWindow* DesktopRootWindowHostWin::GetRootWindow() { 403 aura::RootWindow* DesktopRootWindowHostWin::GetRootWindow() {
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after
859 DesktopRootWindowHost* DesktopRootWindowHost::Create( 867 DesktopRootWindowHost* DesktopRootWindowHost::Create(
860 internal::NativeWidgetDelegate* native_widget_delegate, 868 internal::NativeWidgetDelegate* native_widget_delegate,
861 DesktopNativeWidgetAura* desktop_native_widget_aura, 869 DesktopNativeWidgetAura* desktop_native_widget_aura,
862 const gfx::Rect& initial_bounds) { 870 const gfx::Rect& initial_bounds) {
863 return new DesktopRootWindowHostWin(native_widget_delegate, 871 return new DesktopRootWindowHostWin(native_widget_delegate,
864 desktop_native_widget_aura, 872 desktop_native_widget_aura,
865 initial_bounds); 873 initial_bounds);
866 } 874 }
867 875
868 } // namespace views 876 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698