| 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 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 float GetTouchRadiusY(const base::NativeEvent& native_event) { | 324 float GetTouchRadiusY(const base::NativeEvent& native_event) { |
| 325 NOTIMPLEMENTED(); | 325 NOTIMPLEMENTED(); |
| 326 return 1.0; | 326 return 1.0; |
| 327 } | 327 } |
| 328 | 328 |
| 329 float GetTouchAngle(const base::NativeEvent& native_event) { | 329 float GetTouchAngle(const base::NativeEvent& native_event) { |
| 330 NOTIMPLEMENTED(); | 330 NOTIMPLEMENTED(); |
| 331 return 0.0; | 331 return 0.0; |
| 332 } | 332 } |
| 333 | 333 |
| 334 float GetTouchTilt(const base::NativeEvent& native_event) { |
| 335 NOTIMPLEMENTED(); |
| 336 return 0.0; |
| 337 } |
| 338 |
| 339 float GetTouchTiltDirection(const base::NativeEvent& native_event) { |
| 340 NOTIMPLEMENTED(); |
| 341 return 0.0; |
| 342 } |
| 343 |
| 334 float GetTouchForce(const base::NativeEvent& native_event) { | 344 float GetTouchForce(const base::NativeEvent& native_event) { |
| 335 NOTIMPLEMENTED(); | 345 NOTIMPLEMENTED(); |
| 336 return 0.0; | 346 return 0.0; |
| 337 } | 347 } |
| 338 | 348 |
| 339 bool GetScrollOffsets(const base::NativeEvent& native_event, | 349 bool GetScrollOffsets(const base::NativeEvent& native_event, |
| 340 float* x_offset, | 350 float* x_offset, |
| 341 float* y_offset, | 351 float* y_offset, |
| 342 float* x_offset_ordinal, | 352 float* x_offset_ordinal, |
| 343 float* y_offset_ordinal, | 353 float* y_offset_ordinal, |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 409 } | 419 } |
| 410 | 420 |
| 411 LPARAM GetLParamFromScanCode(uint16 scan_code) { | 421 LPARAM GetLParamFromScanCode(uint16 scan_code) { |
| 412 LPARAM l_param = static_cast<LPARAM>(scan_code & 0x00FF) << 16; | 422 LPARAM l_param = static_cast<LPARAM>(scan_code & 0x00FF) << 16; |
| 413 if ((scan_code & 0xE000) == 0xE000) | 423 if ((scan_code & 0xE000) == 0xE000) |
| 414 l_param |= (1 << 24); | 424 l_param |= (1 << 24); |
| 415 return l_param; | 425 return l_param; |
| 416 } | 426 } |
| 417 | 427 |
| 418 } // namespace ui | 428 } // namespace ui |
| OLD | NEW |