| 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 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 } | 272 } |
| 273 | 273 |
| 274 gfx::Vector2d GetMouseWheelOffset(const base::NativeEvent& native_event) { | 274 gfx::Vector2d GetMouseWheelOffset(const base::NativeEvent& native_event) { |
| 275 DCHECK(native_event.message == WM_MOUSEWHEEL || | 275 DCHECK(native_event.message == WM_MOUSEWHEEL || |
| 276 native_event.message == WM_MOUSEHWHEEL); | 276 native_event.message == WM_MOUSEHWHEEL); |
| 277 if (native_event.message == WM_MOUSEWHEEL) | 277 if (native_event.message == WM_MOUSEWHEEL) |
| 278 return gfx::Vector2d(0, GET_WHEEL_DELTA_WPARAM(native_event.wParam)); | 278 return gfx::Vector2d(0, GET_WHEEL_DELTA_WPARAM(native_event.wParam)); |
| 279 return gfx::Vector2d(GET_WHEEL_DELTA_WPARAM(native_event.wParam), 0); | 279 return gfx::Vector2d(GET_WHEEL_DELTA_WPARAM(native_event.wParam), 0); |
| 280 } | 280 } |
| 281 | 281 |
| 282 base::NativeEvent CopyNativeEvent(const base::NativeEvent& event) { |
| 283 return event; |
| 284 } |
| 285 |
| 286 void ReleaseCopiedNativeEvent(const base::NativeEvent& event) {} |
| 287 |
| 282 void ClearTouchIdIfReleased(const base::NativeEvent& xev) { | 288 void ClearTouchIdIfReleased(const base::NativeEvent& xev) { |
| 283 NOTIMPLEMENTED(); | 289 NOTIMPLEMENTED(); |
| 284 } | 290 } |
| 285 | 291 |
| 286 int GetTouchId(const base::NativeEvent& xev) { | 292 int GetTouchId(const base::NativeEvent& xev) { |
| 287 NOTIMPLEMENTED(); | 293 NOTIMPLEMENTED(); |
| 288 return 0; | 294 return 0; |
| 289 } | 295 } |
| 290 | 296 |
| 291 float GetTouchRadiusX(const base::NativeEvent& native_event) { | 297 float GetTouchRadiusX(const base::NativeEvent& native_event) { |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 } | 410 } |
| 405 | 411 |
| 406 LPARAM GetLParamFromScanCode(uint16 scan_code) { | 412 LPARAM GetLParamFromScanCode(uint16 scan_code) { |
| 407 LPARAM l_param = static_cast<LPARAM>(scan_code & 0x00FF) << 16; | 413 LPARAM l_param = static_cast<LPARAM>(scan_code & 0x00FF) << 16; |
| 408 if ((scan_code & 0xE000) == 0xE000) | 414 if ((scan_code & 0xE000) == 0xE000) |
| 409 l_param |= (1 << 24); | 415 l_param |= (1 << 24); |
| 410 return l_param; | 416 return l_param; |
| 411 } | 417 } |
| 412 | 418 |
| 413 } // namespace ui | 419 } // namespace ui |
| OLD | NEW |