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 #include "modules/media_controls/elements/MediaControlElementsHelper.h" | 5 #include "modules/media_controls/elements/MediaControlElementsHelper.h" |
6 | 6 |
7 #include "core/events/Event.h" | 7 #include "core/events/Event.h" |
| 8 #include "core/layout/LayoutSlider.h" |
8 #include "core/layout/api/LayoutSliderItem.h" | 9 #include "core/layout/api/LayoutSliderItem.h" |
9 | 10 |
10 namespace blink { | 11 namespace blink { |
11 | 12 |
12 // static | 13 // static |
13 bool MediaControlElementsHelper::IsUserInteractionEvent(Event* event) { | 14 bool MediaControlElementsHelper::IsUserInteractionEvent(Event* event) { |
14 const AtomicString& type = event->type(); | 15 const AtomicString& type = event->type(); |
15 return type == EventTypeNames::mousedown || type == EventTypeNames::mouseup || | 16 return type == EventTypeNames::mousedown || type == EventTypeNames::mouseup || |
16 type == EventTypeNames::click || type == EventTypeNames::dblclick || | 17 type == EventTypeNames::click || type == EventTypeNames::dblclick || |
17 event->IsKeyboardEvent() || event->IsTouchEvent(); | 18 event->IsKeyboardEvent() || event->IsTouchEvent(); |
(...skipping 22 matching lines...) Expand all Loading... |
40 const AtomicString& type = event->type(); | 41 const AtomicString& type = event->type(); |
41 return type == EventTypeNames::mouseover || | 42 return type == EventTypeNames::mouseover || |
42 type == EventTypeNames::mouseout || | 43 type == EventTypeNames::mouseout || |
43 type == EventTypeNames::mousemove || | 44 type == EventTypeNames::mousemove || |
44 type == EventTypeNames::pointerover || | 45 type == EventTypeNames::pointerover || |
45 type == EventTypeNames::pointerout || | 46 type == EventTypeNames::pointerout || |
46 type == EventTypeNames::pointermove; | 47 type == EventTypeNames::pointermove; |
47 } | 48 } |
48 | 49 |
49 } // namespace blink | 50 } // namespace blink |
OLD | NEW |