Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(351)

Side by Side Diff: third_party/WebKit/Source/modules/media_controls/elements/MediaControlElementsHelper.h

Issue 2820343002: Media Controls: move timeline related code to modules. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698