| 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> |
| 11 #pragma comment(lib, "wtsapi32.lib") | 11 #pragma comment(lib, "wtsapi32.lib") |
| 12 | 12 |
| 13 #include "base/bind.h" | 13 #include "base/bind.h" |
| 14 #include "base/debug/trace_event.h" | |
| 15 #include "base/profiler/scoped_tracker.h" | 14 #include "base/profiler/scoped_tracker.h" |
| 15 #include "base/trace_event/trace_event.h" |
| 16 #include "base/tracked_objects.h" | 16 #include "base/tracked_objects.h" |
| 17 #include "base/win/scoped_gdi_object.h" | 17 #include "base/win/scoped_gdi_object.h" |
| 18 #include "base/win/win_util.h" | 18 #include "base/win/win_util.h" |
| 19 #include "base/win/windows_version.h" | 19 #include "base/win/windows_version.h" |
| 20 #include "ui/base/touch/touch_enabled.h" | 20 #include "ui/base/touch/touch_enabled.h" |
| 21 #include "ui/base/view_prop.h" | 21 #include "ui/base/view_prop.h" |
| 22 #include "ui/base/win/internal_constants.h" | 22 #include "ui/base/win/internal_constants.h" |
| 23 #include "ui/base/win/lock_state.h" | 23 #include "ui/base/win/lock_state.h" |
| 24 #include "ui/base/win/mouse_wheel_util.h" | 24 #include "ui/base/win/mouse_wheel_util.h" |
| 25 #include "ui/base/win/shell.h" | 25 #include "ui/base/win/shell.h" |
| (...skipping 2809 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2835 SetWindowPos(hwnd(), NULL, 0, 0, 0, 0, flags | SWP_HIDEWINDOW); | 2835 SetWindowPos(hwnd(), NULL, 0, 0, 0, 0, flags | SWP_HIDEWINDOW); |
| 2836 SetWindowPos(hwnd(), NULL, 0, 0, 0, 0, flags | SWP_SHOWWINDOW); | 2836 SetWindowPos(hwnd(), NULL, 0, 0, 0, 0, flags | SWP_SHOWWINDOW); |
| 2837 } | 2837 } |
| 2838 // WM_DWMCOMPOSITIONCHANGED is only sent to top level windows, however we want | 2838 // WM_DWMCOMPOSITIONCHANGED is only sent to top level windows, however we want |
| 2839 // to notify our children too, since we can have MDI child windows who need to | 2839 // to notify our children too, since we can have MDI child windows who need to |
| 2840 // update their appearance. | 2840 // update their appearance. |
| 2841 EnumChildWindows(hwnd(), &SendDwmCompositionChanged, NULL); | 2841 EnumChildWindows(hwnd(), &SendDwmCompositionChanged, NULL); |
| 2842 } | 2842 } |
| 2843 | 2843 |
| 2844 } // namespace views | 2844 } // namespace views |
| OLD | NEW |