Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 374 message_handler_->FlashFrame(flash_frame); | 374 message_handler_->FlashFrame(flash_frame); |
| 375 } | 375 } |
| 376 | 376 |
| 377 void DesktopRootWindowHostWin::OnNativeWidgetFocus() { | 377 void DesktopRootWindowHostWin::OnNativeWidgetFocus() { |
| 378 // HWNDMessageHandler will perform the proper updating on its own. | 378 // HWNDMessageHandler will perform the proper updating on its own. |
| 379 } | 379 } |
| 380 | 380 |
| 381 void DesktopRootWindowHostWin::OnNativeWidgetBlur() { | 381 void DesktopRootWindowHostWin::OnNativeWidgetBlur() { |
| 382 } | 382 } |
| 383 | 383 |
| 384 void DesktopRootWindowHostWin::AlwaysPaintActivated(bool value) { | |
| 385 ::DefWindowProc(message_handler_->hwnd(), WM_NCACTIVATE, !!value, 0); | |
|
Ben Goodger (Google)
2013/04/19 16:17:03
Seems like this could have side effects.
We imple
ananta
2013/04/19 18:21:26
I had looked into DefWindowProc of WM_NCACTIVATE i
sky
2013/04/23 14:15:54
I share Ben's worry about this. Isn't there an off
| |
| 386 } | |
| 387 | |
| 384 //////////////////////////////////////////////////////////////////////////////// | 388 //////////////////////////////////////////////////////////////////////////////// |
| 385 // DesktopRootWindowHostWin, RootWindowHost implementation: | 389 // DesktopRootWindowHostWin, RootWindowHost implementation: |
| 386 | 390 |
| 387 | 391 |
| 388 void DesktopRootWindowHostWin::SetDelegate( | 392 void DesktopRootWindowHostWin::SetDelegate( |
| 389 aura::RootWindowHostDelegate* delegate) { | 393 aura::RootWindowHostDelegate* delegate) { |
| 390 root_window_host_delegate_ = delegate; | 394 root_window_host_delegate_ = delegate; |
| 391 } | 395 } |
| 392 | 396 |
| 393 aura::RootWindow* DesktopRootWindowHostWin::GetRootWindow() { | 397 aura::RootWindow* DesktopRootWindowHostWin::GetRootWindow() { |
| (...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 857 DesktopRootWindowHost* DesktopRootWindowHost::Create( | 861 DesktopRootWindowHost* DesktopRootWindowHost::Create( |
| 858 internal::NativeWidgetDelegate* native_widget_delegate, | 862 internal::NativeWidgetDelegate* native_widget_delegate, |
| 859 DesktopNativeWidgetAura* desktop_native_widget_aura, | 863 DesktopNativeWidgetAura* desktop_native_widget_aura, |
| 860 const gfx::Rect& initial_bounds) { | 864 const gfx::Rect& initial_bounds) { |
| 861 return new DesktopRootWindowHostWin(native_widget_delegate, | 865 return new DesktopRootWindowHostWin(native_widget_delegate, |
| 862 desktop_native_widget_aura, | 866 desktop_native_widget_aura, |
| 863 initial_bounds); | 867 initial_bounds); |
| 864 } | 868 } |
| 865 | 869 |
| 866 } // namespace views | 870 } // namespace views |
| OLD | NEW |