| 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/events/event_constants.h" | 7 #include "ui/events/event_constants.h" |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
| (...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 } | 363 } |
| 364 | 364 |
| 365 // Windows emulates mouse messages for touch events. | 365 // Windows emulates mouse messages for touch events. |
| 366 bool IsMouseEventFromTouch(UINT message) { | 366 bool IsMouseEventFromTouch(UINT message) { |
| 367 return (message >= WM_MOUSEFIRST) && (message <= WM_MOUSELAST) && | 367 return (message >= WM_MOUSEFIRST) && (message <= WM_MOUSELAST) && |
| 368 (GetMessageExtraInfo() & MOUSEEVENTF_FROMTOUCH) == | 368 (GetMessageExtraInfo() & MOUSEEVENTF_FROMTOUCH) == |
| 369 MOUSEEVENTF_FROMTOUCH; | 369 MOUSEEVENTF_FROMTOUCH; |
| 370 } | 370 } |
| 371 | 371 |
| 372 } // namespace ui | 372 } // namespace ui |
| OLD | NEW |