| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 MediaControlElementsHelper_h | 5 #ifndef MediaControlElementsHelper_h |
| 6 #define MediaControlElementsHelper_h | 6 #define MediaControlElementsHelper_h |
| 7 | 7 |
| 8 #include "platform/wtf/Allocator.h" | 8 #include "platform/wtf/Allocator.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| 11 | 11 |
| 12 class Event; | 12 class Event; |
| 13 class LayoutObject; |
| 13 | 14 |
| 14 // Helper class for media control elements. It contains methods, constants or | 15 // Helper class for media control elements. It contains methods, constants or |
| 15 // concepts shared by more than one element. | 16 // concepts shared by more than one element. |
| 16 class MediaControlElementsHelper final { | 17 class MediaControlElementsHelper final { |
| 17 STATIC_ONLY(MediaControlElementsHelper); | 18 STATIC_ONLY(MediaControlElementsHelper); |
| 18 | 19 |
| 19 public: | 20 public: |
| 20 static bool IsUserInteractionEvent(Event*); | 21 static bool IsUserInteractionEvent(Event*); |
| 22 |
| 23 // Sliders (the volume control and timeline) need to capture some additional |
| 24 // events used when dragging the thumb. |
| 25 static bool IsUserInteractionEventForSlider(Event*, LayoutObject*); |
| 21 }; | 26 }; |
| 22 | 27 |
| 23 } // namespace blink | 28 } // namespace blink |
| 24 | 29 |
| 25 #endif // MediaControlElementsHelper_h | 30 #endif // MediaControlElementsHelper_h |
| OLD | NEW |