| 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 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 { | 386 { |
| 387 switch (type) { | 387 switch (type) { |
| 388 case WebInputEvent::TouchStart: | 388 case WebInputEvent::TouchStart: |
| 389 return PlatformEvent::TouchStart; | 389 return PlatformEvent::TouchStart; |
| 390 case WebInputEvent::TouchMove: | 390 case WebInputEvent::TouchMove: |
| 391 return PlatformEvent::TouchMove; | 391 return PlatformEvent::TouchMove; |
| 392 case WebInputEvent::TouchEnd: | 392 case WebInputEvent::TouchEnd: |
| 393 return PlatformEvent::TouchEnd; | 393 return PlatformEvent::TouchEnd; |
| 394 case WebInputEvent::TouchCancel: | 394 case WebInputEvent::TouchCancel: |
| 395 return PlatformEvent::TouchCancel; | 395 return PlatformEvent::TouchCancel; |
| 396 case WebInputEvent::TouchScrollStarted: |
| 397 return PlatformEvent::TouchScrollStarted; |
| 396 default: | 398 default: |
| 397 NOTREACHED(); | 399 NOTREACHED(); |
| 398 } | 400 } |
| 399 return PlatformEvent::TouchStart; | 401 return PlatformEvent::TouchStart; |
| 400 } | 402 } |
| 401 | 403 |
| 402 inline PlatformTouchPoint::TouchState toPlatformTouchPointState(const WebTouchPo
int::State state) | 404 inline PlatformTouchPoint::TouchState toPlatformTouchPointState(const WebTouchPo
int::State state) |
| 403 { | 405 { |
| 404 switch (state) { | 406 switch (state) { |
| 405 case WebTouchPoint::StateReleased: | 407 case WebTouchPoint::StateReleased: |
| (...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 783 break; | 785 break; |
| 784 case GestureSourceTouchscreen: | 786 case GestureSourceTouchscreen: |
| 785 sourceDevice = WebGestureDeviceTouchscreen; | 787 sourceDevice = WebGestureDeviceTouchscreen; |
| 786 break; | 788 break; |
| 787 case GestureSourceUninitialized: | 789 case GestureSourceUninitialized: |
| 788 NOTREACHED(); | 790 NOTREACHED(); |
| 789 } | 791 } |
| 790 } | 792 } |
| 791 | 793 |
| 792 } // namespace blink | 794 } // namespace blink |
| OLD | NEW |