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/win/hwnd_message_handler.h" | 5 #include "ui/views/win/hwnd_message_handler.h" |
6 | 6 |
7 #include <dwmapi.h> | 7 #include <dwmapi.h> |
8 #include <oleacc.h> | 8 #include <oleacc.h> |
9 #include <shellapi.h> | 9 #include <shellapi.h> |
10 #include <wtsapi32.h> | 10 #include <wtsapi32.h> |
(...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
727 SWP_FRAMECHANGED | SWP_NOACTIVATE | SWP_NOCOPYBITS | | 727 SWP_FRAMECHANGED | SWP_NOACTIVATE | SWP_NOCOPYBITS | |
728 SWP_NOMOVE | SWP_NOOWNERZORDER | SWP_NOREPOSITION | | 728 SWP_NOMOVE | SWP_NOOWNERZORDER | SWP_NOREPOSITION | |
729 SWP_NOSENDCHANGING | SWP_NOSIZE | SWP_NOZORDER); | 729 SWP_NOSENDCHANGING | SWP_NOSIZE | SWP_NOZORDER); |
730 } | 730 } |
731 | 731 |
732 void HWNDMessageHandler::FlashFrame(bool flash) { | 732 void HWNDMessageHandler::FlashFrame(bool flash) { |
733 FLASHWINFO fwi; | 733 FLASHWINFO fwi; |
734 fwi.cbSize = sizeof(fwi); | 734 fwi.cbSize = sizeof(fwi); |
735 fwi.hwnd = hwnd(); | 735 fwi.hwnd = hwnd(); |
736 if (flash) { | 736 if (flash) { |
737 fwi.dwFlags = FLASHW_ALL; | 737 fwi.dwFlags = custom_window_region_ ? FLASHW_TRAY : FLASHW_ALL; |
738 fwi.uCount = 4; | 738 fwi.uCount = 4; |
739 fwi.dwTimeout = 0; | 739 fwi.dwTimeout = 0; |
740 } else { | 740 } else { |
741 fwi.dwFlags = FLASHW_STOP; | 741 fwi.dwFlags = FLASHW_STOP; |
742 } | 742 } |
743 FlashWindowEx(&fwi); | 743 FlashWindowEx(&fwi); |
744 } | 744 } |
745 | 745 |
746 void HWNDMessageHandler::ClearNativeFocus() { | 746 void HWNDMessageHandler::ClearNativeFocus() { |
747 ::SetFocus(hwnd()); | 747 ::SetFocus(hwnd()); |
(...skipping 1745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2493 SetWindowPos(hwnd(), NULL, 0, 0, 0, 0, flags | SWP_HIDEWINDOW); | 2493 SetWindowPos(hwnd(), NULL, 0, 0, 0, 0, flags | SWP_HIDEWINDOW); |
2494 SetWindowPos(hwnd(), NULL, 0, 0, 0, 0, flags | SWP_SHOWWINDOW); | 2494 SetWindowPos(hwnd(), NULL, 0, 0, 0, 0, flags | SWP_SHOWWINDOW); |
2495 } | 2495 } |
2496 // WM_DWMCOMPOSITIONCHANGED is only sent to top level windows, however we want | 2496 // WM_DWMCOMPOSITIONCHANGED is only sent to top level windows, however we want |
2497 // to notify our children too, since we can have MDI child windows who need to | 2497 // to notify our children too, since we can have MDI child windows who need to |
2498 // update their appearance. | 2498 // update their appearance. |
2499 EnumChildWindows(hwnd(), &SendDwmCompositionChanged, NULL); | 2499 EnumChildWindows(hwnd(), &SendDwmCompositionChanged, NULL); |
2500 } | 2500 } |
2501 | 2501 |
2502 } // namespace views | 2502 } // namespace views |
OLD | NEW |