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 #ifndef CONTENT_COMMON_INPUT_WEB_INPUT_EVENT_TRAITS_H_ | 5 #ifndef CONTENT_COMMON_INPUT_WEB_INPUT_EVENT_TRAITS_H_ |
| 6 #define CONTENT_COMMON_INPUT_WEB_INPUT_EVENT_TRAITS_H_ | 6 #define CONTENT_COMMON_INPUT_WEB_INPUT_EVENT_TRAITS_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 22 static std::string ToString(const blink::WebInputEvent& event); | 22 static std::string ToString(const blink::WebInputEvent& event); |
| 23 static size_t GetSize(blink::WebInputEvent::Type type); | 23 static size_t GetSize(blink::WebInputEvent::Type type); |
| 24 static ScopedWebInputEvent Clone(const blink::WebInputEvent& event); | 24 static ScopedWebInputEvent Clone(const blink::WebInputEvent& event); |
| 25 static void Delete(blink::WebInputEvent* event); | 25 static void Delete(blink::WebInputEvent* event); |
| 26 static bool CanCoalesce(const blink::WebInputEvent& event_to_coalesce, | 26 static bool CanCoalesce(const blink::WebInputEvent& event_to_coalesce, |
| 27 const blink::WebInputEvent& event); | 27 const blink::WebInputEvent& event); |
| 28 static void Coalesce(const blink::WebInputEvent& event_to_coalesce, | 28 static void Coalesce(const blink::WebInputEvent& event_to_coalesce, |
| 29 blink::WebInputEvent* event); | 29 blink::WebInputEvent* event); |
| 30 static bool ShouldBlockEventStream(const blink::WebInputEvent& event); | 30 static bool ShouldBlockEventStream(const blink::WebInputEvent& event); |
| 31 | 31 |
| 32 static bool ShouldCauseScroll(const blink::WebMouseWheelEvent& event); | |
|
tdresser
2016/06/10 18:06:46
Perhaps "MayCauseScroll"?
We don't know for sure
Charlie Reis
2016/06/10 18:47:58
+1. Or CanCauseScroll, to be consistent with CanC
dtapuska
2016/06/10 19:11:17
Done.
dtapuska
2016/06/10 19:11:17
Acknowledged.
| |
| 33 | |
| 32 // Return uniqueTouchEventId for WebTouchEvent, otherwise return 0. | 34 // Return uniqueTouchEventId for WebTouchEvent, otherwise return 0. |
| 33 static uint32_t GetUniqueTouchEventId(const blink::WebInputEvent& event); | 35 static uint32_t GetUniqueTouchEventId(const blink::WebInputEvent& event); |
| 34 }; | 36 }; |
| 35 | 37 |
| 36 } // namespace content | 38 } // namespace content |
| 37 | 39 |
| 38 #endif // CONTENT_COMMON_INPUT_WEB_INPUT_EVENT_TRAITS_H_ | 40 #endif // CONTENT_COMMON_INPUT_WEB_INPUT_EVENT_TRAITS_H_ |
| OLD | NEW |