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" | 14 #include "base/debug/trace_event.h" |
15 #include "base/win/win_util.h" | 15 #include "base/win/win_util.h" |
16 #include "base/win/windows_version.h" | 16 #include "base/win/windows_version.h" |
17 #include "ui/base/touch/touch_enabled.h" | 17 #include "ui/base/touch/touch_enabled.h" |
18 #include "ui/base/view_prop.h" | 18 #include "ui/base/view_prop.h" |
19 #include "ui/base/win/internal_constants.h" | 19 #include "ui/base/win/internal_constants.h" |
20 #include "ui/base/win/lock_state.h" | 20 #include "ui/base/win/lock_state.h" |
21 #include "ui/base/win/mouse_wheel_util.h" | 21 #include "ui/base/win/mouse_wheel_util.h" |
22 #include "ui/base/win/shell.h" | 22 #include "ui/base/win/shell.h" |
23 #include "ui/base/win/touch_input.h" | 23 #include "ui/base/win/touch_input.h" |
24 #include "ui/events/event.h" | 24 #include "ui/events/event.h" |
25 #include "ui/events/event_utils.h" | 25 #include "ui/events/event_utils.h" |
26 #include "ui/events/gestures/gesture_sequence.h" | |
27 #include "ui/events/keycodes/keyboard_code_conversion_win.h" | 26 #include "ui/events/keycodes/keyboard_code_conversion_win.h" |
28 #include "ui/gfx/canvas.h" | 27 #include "ui/gfx/canvas.h" |
29 #include "ui/gfx/canvas_skia_paint.h" | 28 #include "ui/gfx/canvas_skia_paint.h" |
30 #include "ui/gfx/icon_util.h" | 29 #include "ui/gfx/icon_util.h" |
31 #include "ui/gfx/insets.h" | 30 #include "ui/gfx/insets.h" |
32 #include "ui/gfx/path.h" | 31 #include "ui/gfx/path.h" |
33 #include "ui/gfx/path_win.h" | 32 #include "ui/gfx/path_win.h" |
34 #include "ui/gfx/screen.h" | 33 #include "ui/gfx/screen.h" |
35 #include "ui/gfx/win/dpi.h" | 34 #include "ui/gfx/win/dpi.h" |
36 #include "ui/gfx/win/hwnd_util.h" | 35 #include "ui/gfx/win/hwnd_util.h" |
(...skipping 2424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2461 SetWindowPos(hwnd(), NULL, 0, 0, 0, 0, flags | SWP_HIDEWINDOW); | 2460 SetWindowPos(hwnd(), NULL, 0, 0, 0, 0, flags | SWP_HIDEWINDOW); |
2462 SetWindowPos(hwnd(), NULL, 0, 0, 0, 0, flags | SWP_SHOWWINDOW); | 2461 SetWindowPos(hwnd(), NULL, 0, 0, 0, 0, flags | SWP_SHOWWINDOW); |
2463 } | 2462 } |
2464 // WM_DWMCOMPOSITIONCHANGED is only sent to top level windows, however we want | 2463 // WM_DWMCOMPOSITIONCHANGED is only sent to top level windows, however we want |
2465 // to notify our children too, since we can have MDI child windows who need to | 2464 // to notify our children too, since we can have MDI child windows who need to |
2466 // update their appearance. | 2465 // update their appearance. |
2467 EnumChildWindows(hwnd(), &SendDwmCompositionChanged, NULL); | 2466 EnumChildWindows(hwnd(), &SendDwmCompositionChanged, NULL); |
2468 } | 2467 } |
2469 | 2468 |
2470 } // namespace views | 2469 } // namespace views |
OLD | NEW |