| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 { | 357 { |
| 358 switch (type) { | 358 switch (type) { |
| 359 case WebInputEvent::TouchStart: | 359 case WebInputEvent::TouchStart: |
| 360 return PlatformEvent::TouchStart; | 360 return PlatformEvent::TouchStart; |
| 361 case WebInputEvent::TouchMove: | 361 case WebInputEvent::TouchMove: |
| 362 return PlatformEvent::TouchMove; | 362 return PlatformEvent::TouchMove; |
| 363 case WebInputEvent::TouchEnd: | 363 case WebInputEvent::TouchEnd: |
| 364 return PlatformEvent::TouchEnd; | 364 return PlatformEvent::TouchEnd; |
| 365 case WebInputEvent::TouchCancel: | 365 case WebInputEvent::TouchCancel: |
| 366 return PlatformEvent::TouchCancel; | 366 return PlatformEvent::TouchCancel; |
| 367 case WebInputEvent::TouchScrollStarted: |
| 368 return PlatformEvent::TouchScrollStarted; |
| 367 default: | 369 default: |
| 368 ASSERT_NOT_REACHED(); | 370 ASSERT_NOT_REACHED(); |
| 369 } | 371 } |
| 370 return PlatformEvent::TouchStart; | 372 return PlatformEvent::TouchStart; |
| 371 } | 373 } |
| 372 | 374 |
| 373 inline PlatformTouchPoint::TouchState toPlatformTouchPointState(const WebTouchPo
int::State state) | 375 inline PlatformTouchPoint::TouchState toPlatformTouchPointState(const WebTouchPo
int::State state) |
| 374 { | 376 { |
| 375 switch (state) { | 377 switch (state) { |
| 376 case WebTouchPoint::StateReleased: | 378 case WebTouchPoint::StateReleased: |
| (...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 740 break; | 742 break; |
| 741 case GestureSourceTouchscreen: | 743 case GestureSourceTouchscreen: |
| 742 sourceDevice = WebGestureDeviceTouchscreen; | 744 sourceDevice = WebGestureDeviceTouchscreen; |
| 743 break; | 745 break; |
| 744 case GestureSourceUninitialized: | 746 case GestureSourceUninitialized: |
| 745 ASSERT_NOT_REACHED(); | 747 ASSERT_NOT_REACHED(); |
| 746 } | 748 } |
| 747 } | 749 } |
| 748 | 750 |
| 749 } // namespace blink | 751 } // namespace blink |
| OLD | NEW |