| 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 <stdint.h> | 5 #include <stdint.h> |
| 6 #include <windowsx.h> | 6 #include <windowsx.h> |
| 7 | 7 |
| 8 #include "ui/events/event_constants.h" | 8 #include "ui/events/event_constants.h" |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 } | 338 } |
| 339 | 339 |
| 340 PointerDetails GetTouchPointerDetailsFromNative( | 340 PointerDetails GetTouchPointerDetailsFromNative( |
| 341 const base::NativeEvent& native_event) { | 341 const base::NativeEvent& native_event) { |
| 342 NOTIMPLEMENTED(); | 342 NOTIMPLEMENTED(); |
| 343 return PointerDetails(EventPointerType::POINTER_TYPE_TOUCH, | 343 return PointerDetails(EventPointerType::POINTER_TYPE_TOUCH, |
| 344 /* radius_x */ 1.0, | 344 /* radius_x */ 1.0, |
| 345 /* radius_y */ 1.0, | 345 /* radius_y */ 1.0, |
| 346 /* force */ 0.f, | 346 /* force */ 0.f, |
| 347 /* tilt_x */ 0.f, | 347 /* tilt_x */ 0.f, |
| 348 /* tilt_y */ 0.f); | 348 /* tilt_y */ 0.f, |
| 349 /* tangentialPressure */ 0.0f, |
| 350 /* twist */ 0); |
| 349 } | 351 } |
| 350 | 352 |
| 351 bool GetScrollOffsets(const base::NativeEvent& native_event, | 353 bool GetScrollOffsets(const base::NativeEvent& native_event, |
| 352 float* x_offset, | 354 float* x_offset, |
| 353 float* y_offset, | 355 float* y_offset, |
| 354 float* x_offset_ordinal, | 356 float* x_offset_ordinal, |
| 355 float* y_offset_ordinal, | 357 float* y_offset_ordinal, |
| 356 int* finger_count, | 358 int* finger_count, |
| 357 EventMomentumPhase* momentum_phase) { | 359 EventMomentumPhase* momentum_phase) { |
| 358 // TODO(ananta) | 360 // TODO(ananta) |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 } | 421 } |
| 420 | 422 |
| 421 LPARAM GetLParamFromScanCode(uint16_t scan_code) { | 423 LPARAM GetLParamFromScanCode(uint16_t scan_code) { |
| 422 LPARAM l_param = static_cast<LPARAM>(scan_code & 0x00FF) << 16; | 424 LPARAM l_param = static_cast<LPARAM>(scan_code & 0x00FF) << 16; |
| 423 if ((scan_code & 0xE000) == 0xE000) | 425 if ((scan_code & 0xE000) == 0xE000) |
| 424 l_param |= (1 << 24); | 426 l_param |= (1 << 24); |
| 425 return l_param; | 427 return l_param; |
| 426 } | 428 } |
| 427 | 429 |
| 428 } // namespace ui | 430 } // namespace ui |
| OLD | NEW |