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 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 | 10 |
| (...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 351 case WebInputEvent::MouseEnter: | 351 case WebInputEvent::MouseEnter: |
| 352 case WebInputEvent::MouseLeave: | 352 case WebInputEvent::MouseLeave: |
| 353 case WebInputEvent::ContextMenu: | 353 case WebInputEvent::ContextMenu: |
| 354 return true; | 354 return true; |
| 355 default: | 355 default: |
| 356 break; | 356 break; |
| 357 } | 357 } |
| 358 return false; | 358 return false; |
| 359 } | 359 } |
| 360 | 360 |
| 361 bool WebInputEventTraits::IgnoresAckDisposition(const WebInputEvent& event) { | |
| 362 if (IgnoresAckDisposition(event.type)) | |
| 363 return true; | |
| 364 | |
| 365 if (WebInputEvent::isTouchEventType(event.type)) | |
| 366 return static_cast<const WebTouchEvent&>(event).cancelable; | |
|
Rick Byers
2014/04/22 14:52:59
You're missing a !. Cancelable events must wait f
jdduke (slow)
2014/04/23 19:57:41
Of course, yes!
| |
| 367 | |
| 368 return false; | |
| 369 } | |
| 370 | |
| 361 } // namespace content | 371 } // namespace content |
| OLD | NEW |