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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 float GetTouchRadiusY(const base::NativeEvent& native_event) { | 320 float GetTouchRadiusY(const base::NativeEvent& native_event) { |
321 NOTIMPLEMENTED(); | 321 NOTIMPLEMENTED(); |
322 return 1.0; | 322 return 1.0; |
323 } | 323 } |
324 | 324 |
325 float GetTouchAngle(const base::NativeEvent& native_event) { | 325 float GetTouchAngle(const base::NativeEvent& native_event) { |
326 NOTIMPLEMENTED(); | 326 NOTIMPLEMENTED(); |
327 return 0.0; | 327 return 0.0; |
328 } | 328 } |
329 | 329 |
| 330 float GetTouchTilt(const base::NativeEvent& native_event) { |
| 331 NOTIMPLEMENTED(); |
| 332 return 0.0; |
| 333 } |
| 334 |
330 float GetTouchForce(const base::NativeEvent& native_event) { | 335 float GetTouchForce(const base::NativeEvent& native_event) { |
331 NOTIMPLEMENTED(); | 336 NOTIMPLEMENTED(); |
332 return 0.0; | 337 return 0.0; |
333 } | 338 } |
334 | 339 |
335 bool GetScrollOffsets(const base::NativeEvent& native_event, | 340 bool GetScrollOffsets(const base::NativeEvent& native_event, |
336 float* x_offset, | 341 float* x_offset, |
337 float* y_offset, | 342 float* y_offset, |
338 float* x_offset_ordinal, | 343 float* x_offset_ordinal, |
339 float* y_offset_ordinal, | 344 float* y_offset_ordinal, |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 } | 410 } |
406 | 411 |
407 LPARAM GetLParamFromScanCode(uint16 scan_code) { | 412 LPARAM GetLParamFromScanCode(uint16 scan_code) { |
408 LPARAM l_param = static_cast<LPARAM>(scan_code & 0x00FF) << 16; | 413 LPARAM l_param = static_cast<LPARAM>(scan_code & 0x00FF) << 16; |
409 if ((scan_code & 0xE000) == 0xE000) | 414 if ((scan_code & 0xE000) == 0xE000) |
410 l_param |= (1 << 24); | 415 l_param |= (1 << 24); |
411 return l_param; | 416 return l_param; |
412 } | 417 } |
413 | 418 |
414 } // namespace ui | 419 } // namespace ui |
OLD | NEW |