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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 return gfx::Vector2d(GET_WHEEL_DELTA_WPARAM(native_event.wParam), 0); | 292 return gfx::Vector2d(GET_WHEEL_DELTA_WPARAM(native_event.wParam), 0); |
293 } | 293 } |
294 | 294 |
295 base::NativeEvent CopyNativeEvent(const base::NativeEvent& event) { | 295 base::NativeEvent CopyNativeEvent(const base::NativeEvent& event) { |
296 return event; | 296 return event; |
297 } | 297 } |
298 | 298 |
299 void ReleaseCopiedNativeEvent(const base::NativeEvent& event) { | 299 void ReleaseCopiedNativeEvent(const base::NativeEvent& event) { |
300 } | 300 } |
301 | 301 |
| 302 void IncrementTouchIdRefCount(const base::NativeEvent& event) { |
| 303 NOTIMPLEMENTED(); |
| 304 } |
| 305 |
302 void ClearTouchIdIfReleased(const base::NativeEvent& xev) { | 306 void ClearTouchIdIfReleased(const base::NativeEvent& xev) { |
303 NOTIMPLEMENTED(); | 307 NOTIMPLEMENTED(); |
304 } | 308 } |
305 | 309 |
306 int GetTouchId(const base::NativeEvent& xev) { | 310 int GetTouchId(const base::NativeEvent& xev) { |
307 NOTIMPLEMENTED(); | 311 NOTIMPLEMENTED(); |
308 return 0; | 312 return 0; |
309 } | 313 } |
310 | 314 |
311 float GetTouchRadiusX(const base::NativeEvent& native_event) { | 315 float GetTouchRadiusX(const base::NativeEvent& native_event) { |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 } | 405 } |
402 | 406 |
403 LPARAM GetLParamFromScanCode(uint16 scan_code) { | 407 LPARAM GetLParamFromScanCode(uint16 scan_code) { |
404 LPARAM l_param = static_cast<LPARAM>(scan_code & 0x00FF) << 16; | 408 LPARAM l_param = static_cast<LPARAM>(scan_code & 0x00FF) << 16; |
405 if ((scan_code & 0xE000) == 0xE000) | 409 if ((scan_code & 0xE000) == 0xE000) |
406 l_param |= (1 << 24); | 410 l_param |= (1 << 24); |
407 return l_param; | 411 return l_param; |
408 } | 412 } |
409 | 413 |
410 } // namespace ui | 414 } // namespace ui |
OLD | NEW |