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" | 26 #include "ui/events/gestures/gesture_sequence.h" |
27 #include "ui/events/keycodes/keyboard_code_conversion_win.h" | 27 #include "ui/events/keycodes/keyboard_code_conversion_win.h" |
28 #include "ui/gfx/canvas.h" | 28 #include "ui/gfx/canvas.h" |
29 #include "ui/gfx/canvas_skia_paint.h" | 29 #include "ui/gfx/canvas_skia_paint.h" |
| 30 #include "ui/gfx/geometry/insets.h" |
30 #include "ui/gfx/icon_util.h" | 31 #include "ui/gfx/icon_util.h" |
31 #include "ui/gfx/insets.h" | |
32 #include "ui/gfx/path.h" | 32 #include "ui/gfx/path.h" |
33 #include "ui/gfx/path_win.h" | 33 #include "ui/gfx/path_win.h" |
34 #include "ui/gfx/screen.h" | 34 #include "ui/gfx/screen.h" |
35 #include "ui/gfx/win/dpi.h" | 35 #include "ui/gfx/win/dpi.h" |
36 #include "ui/gfx/win/hwnd_util.h" | 36 #include "ui/gfx/win/hwnd_util.h" |
37 #include "ui/native_theme/native_theme_win.h" | 37 #include "ui/native_theme/native_theme_win.h" |
38 #include "ui/views/views_delegate.h" | 38 #include "ui/views/views_delegate.h" |
39 #include "ui/views/widget/monitor_win.h" | 39 #include "ui/views/widget/monitor_win.h" |
40 #include "ui/views/widget/widget_hwnd_utils.h" | 40 #include "ui/views/widget/widget_hwnd_utils.h" |
41 #include "ui/views/win/fullscreen_handler.h" | 41 #include "ui/views/win/fullscreen_handler.h" |
(...skipping 2395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2437 POINT cursor_pos = {0}; | 2437 POINT cursor_pos = {0}; |
2438 ::GetCursorPos(&cursor_pos); | 2438 ::GetCursorPos(&cursor_pos); |
2439 if (memcmp(&cursor_pos, &mouse_location, sizeof(POINT))) | 2439 if (memcmp(&cursor_pos, &mouse_location, sizeof(POINT))) |
2440 return false; | 2440 return false; |
2441 return true; | 2441 return true; |
2442 } | 2442 } |
2443 return false; | 2443 return false; |
2444 } | 2444 } |
2445 | 2445 |
2446 } // namespace views | 2446 } // namespace views |
OLD | NEW |