| 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 <windowsx.h> | 5 #include <windowsx.h> |
| 6 | 6 |
| 7 #include "ui/base/events.h" | 7 #include "ui/base/events/event_constants.h" |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/time.h" | 10 #include "base/time.h" |
| 11 #include "base/win/win_util.h" | 11 #include "base/win/win_util.h" |
| 12 #include "ui/base/keycodes/keyboard_code_conversion_win.h" | 12 #include "ui/base/keycodes/keyboard_code_conversion_win.h" |
| 13 #include "ui/gfx/point.h" | 13 #include "ui/gfx/point.h" |
| 14 | 14 |
| 15 namespace ui { | 15 namespace ui { |
| 16 | 16 |
| 17 namespace { | 17 namespace { |
| (...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 // Windows emulates mouse messages for touch events. | 350 // Windows emulates mouse messages for touch events. |
| 351 bool IsMouseEventFromTouch(UINT message) { | 351 bool IsMouseEventFromTouch(UINT message) { |
| 352 return (message == WM_MOUSEMOVE || | 352 return (message == WM_MOUSEMOVE || |
| 353 message == WM_LBUTTONDOWN || message == WM_LBUTTONUP || | 353 message == WM_LBUTTONDOWN || message == WM_LBUTTONUP || |
| 354 message == WM_RBUTTONDOWN || message == WM_RBUTTONUP) && | 354 message == WM_RBUTTONDOWN || message == WM_RBUTTONUP) && |
| 355 (GetMessageExtraInfo() & MOUSEEVENTF_FROMTOUCH) == | 355 (GetMessageExtraInfo() & MOUSEEVENTF_FROMTOUCH) == |
| 356 MOUSEEVENTF_FROMTOUCH; | 356 MOUSEEVENTF_FROMTOUCH; |
| 357 } | 357 } |
| 358 | 358 |
| 359 } // namespace ui | 359 } // namespace ui |
| OLD | NEW |