| 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 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 | 345 |
| 346 bool GetGestureTimes(const base::NativeEvent& native_event, | 346 bool GetGestureTimes(const base::NativeEvent& native_event, |
| 347 double* start_time, | 347 double* start_time, |
| 348 double* end_time) { | 348 double* end_time) { |
| 349 // Not supported in Windows. | 349 // Not supported in Windows. |
| 350 *start_time = 0; | 350 *start_time = 0; |
| 351 *end_time = 0; | 351 *end_time = 0; |
| 352 return false; | 352 return false; |
| 353 } | 353 } |
| 354 | 354 |
| 355 void SetNaturalScroll(bool enabled) { | |
| 356 NOTIMPLEMENTED(); | |
| 357 } | |
| 358 | |
| 359 bool IsNaturalScrollEnabled() { | |
| 360 NOTIMPLEMENTED(); | |
| 361 return false; | |
| 362 } | |
| 363 | |
| 364 bool IsTouchpadEvent(const base::NativeEvent& event) { | |
| 365 NOTIMPLEMENTED(); | |
| 366 return false; | |
| 367 } | |
| 368 | |
| 369 int GetModifiersFromACCEL(const ACCEL& accel) { | 355 int GetModifiersFromACCEL(const ACCEL& accel) { |
| 370 int modifiers = EF_NONE; | 356 int modifiers = EF_NONE; |
| 371 if (accel.fVirt & FSHIFT) | 357 if (accel.fVirt & FSHIFT) |
| 372 modifiers |= EF_SHIFT_DOWN; | 358 modifiers |= EF_SHIFT_DOWN; |
| 373 if (accel.fVirt & FCONTROL) | 359 if (accel.fVirt & FCONTROL) |
| 374 modifiers |= EF_CONTROL_DOWN; | 360 modifiers |= EF_CONTROL_DOWN; |
| 375 if (accel.fVirt & FALT) | 361 if (accel.fVirt & FALT) |
| 376 modifiers |= EF_ALT_DOWN; | 362 modifiers |= EF_ALT_DOWN; |
| 377 return modifiers; | 363 return modifiers; |
| 378 } | 364 } |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 415 } | 401 } |
| 416 | 402 |
| 417 LPARAM GetLParamFromScanCode(uint16 scan_code) { | 403 LPARAM GetLParamFromScanCode(uint16 scan_code) { |
| 418 LPARAM l_param = static_cast<LPARAM>(scan_code & 0x00FF) << 16; | 404 LPARAM l_param = static_cast<LPARAM>(scan_code & 0x00FF) << 16; |
| 419 if ((scan_code & 0xE000) == 0xE000) | 405 if ((scan_code & 0xE000) == 0xE000) |
| 420 l_param |= (1 << 24); | 406 l_param |= (1 << 24); |
| 421 return l_param; | 407 return l_param; |
| 422 } | 408 } |
| 423 | 409 |
| 424 } // namespace ui | 410 } // namespace ui |
| OLD | NEW |