| 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/event_constants.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" |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 } | 272 } |
| 273 | 273 |
| 274 float GetTouchForce(const base::NativeEvent& native_event) { | 274 float GetTouchForce(const base::NativeEvent& native_event) { |
| 275 NOTIMPLEMENTED(); | 275 NOTIMPLEMENTED(); |
| 276 return 0.0; | 276 return 0.0; |
| 277 } | 277 } |
| 278 | 278 |
| 279 bool GetScrollOffsets(const base::NativeEvent& native_event, | 279 bool GetScrollOffsets(const base::NativeEvent& native_event, |
| 280 float* x_offset, | 280 float* x_offset, |
| 281 float* y_offset, | 281 float* y_offset, |
| 282 float* x_offset_ordinal, |
| 283 float* y_offset_ordinal, |
| 282 int* finger_count) { | 284 int* finger_count) { |
| 283 // Not supported in Windows. | 285 // Not supported in Windows. |
| 284 NOTIMPLEMENTED(); | 286 NOTIMPLEMENTED(); |
| 285 return false; | 287 return false; |
| 286 } | 288 } |
| 287 | 289 |
| 288 bool GetFlingData(const base::NativeEvent& native_event, | 290 bool GetFlingData(const base::NativeEvent& native_event, |
| 289 float* vx, | 291 float* vx, |
| 290 float* vy, | 292 float* vy, |
| 293 float* vx_ordinal, |
| 294 float* vy_ordinal, |
| 291 bool* is_cancel) { | 295 bool* is_cancel) { |
| 292 // Not supported in Windows. | 296 // Not supported in Windows. |
| 293 NOTIMPLEMENTED(); | 297 NOTIMPLEMENTED(); |
| 294 return false; | 298 return false; |
| 295 } | 299 } |
| 296 | 300 |
| 297 bool GetGestureTimes(const base::NativeEvent& native_event, | 301 bool GetGestureTimes(const base::NativeEvent& native_event, |
| 298 double* start_time, | 302 double* start_time, |
| 299 double* end_time) { | 303 double* end_time) { |
| 300 // Not supported in Windows. | 304 // Not supported in Windows. |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 } | 354 } |
| 351 | 355 |
| 352 // Windows emulates mouse messages for touch events. | 356 // Windows emulates mouse messages for touch events. |
| 353 bool IsMouseEventFromTouch(UINT message) { | 357 bool IsMouseEventFromTouch(UINT message) { |
| 354 return (message >= WM_MOUSEFIRST) && (message <= WM_MOUSELAST) && | 358 return (message >= WM_MOUSEFIRST) && (message <= WM_MOUSELAST) && |
| 355 (GetMessageExtraInfo() & MOUSEEVENTF_FROMTOUCH) == | 359 (GetMessageExtraInfo() & MOUSEEVENTF_FROMTOUCH) == |
| 356 MOUSEEVENTF_FROMTOUCH; | 360 MOUSEEVENTF_FROMTOUCH; |
| 357 } | 361 } |
| 358 | 362 |
| 359 } // namespace ui | 363 } // namespace ui |
| OLD | NEW |