Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "content/common/input/web_input_event_traits.h" | 5 #include "content/common/input/web_input_event_traits.h" |
| 6 | 6 |
| 7 #include <bitset> | 7 #include <bitset> |
| 8 #include <limits> | 8 #include <limits> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 471 case WebInputEvent::GestureScrollBegin: | 471 case WebInputEvent::GestureScrollBegin: |
| 472 case WebInputEvent::GestureScrollEnd: | 472 case WebInputEvent::GestureScrollEnd: |
| 473 case WebInputEvent::GestureShowPress: | 473 case WebInputEvent::GestureShowPress: |
| 474 case WebInputEvent::GestureTapUnconfirmed: | 474 case WebInputEvent::GestureTapUnconfirmed: |
| 475 case WebInputEvent::GestureTapDown: | 475 case WebInputEvent::GestureTapDown: |
| 476 case WebInputEvent::GestureTapCancel: | 476 case WebInputEvent::GestureTapCancel: |
| 477 case WebInputEvent::GesturePinchBegin: | 477 case WebInputEvent::GesturePinchBegin: |
| 478 case WebInputEvent::GesturePinchEnd: | 478 case WebInputEvent::GesturePinchEnd: |
| 479 case WebInputEvent::TouchCancel: | 479 case WebInputEvent::TouchCancel: |
| 480 return true; | 480 return true; |
| 481 // For all touchmove events, we always need an ACK back from render, and | |
| 482 // for uncancelable touch move, we will also send a fake ACK. | |
|
tdresser
2015/03/26 15:25:29
Hmmm, this is a bit confusing. (Sorry I didn't cat
lanwei
2015/03/27 04:39:42
Done.
| |
| 481 case WebInputEvent::TouchStart: | 483 case WebInputEvent::TouchStart: |
| 482 case WebInputEvent::TouchMove: | |
| 483 case WebInputEvent::TouchEnd: | 484 case WebInputEvent::TouchEnd: |
| 484 return !static_cast<const WebTouchEvent&>(event).cancelable; | 485 return !static_cast<const WebTouchEvent&>(event).cancelable; |
| 485 default: | 486 default: |
| 486 return false; | 487 return false; |
| 487 } | 488 } |
| 488 } | 489 } |
| 489 | 490 |
| 490 } // namespace content | 491 } // namespace content |
| OLD | NEW |