| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef MediaControlTimelineElement_h |
| 6 #define MediaControlTimelineElement_h |
| 7 |
| 8 #include "core/html/shadow/MediaControlElementTypes.h" |
| 9 #include "modules/media_controls/elements/MediaControlTimelineMetrics.h" |
| 10 |
| 11 namespace blink { |
| 12 |
| 13 class Event; |
| 14 class MediaControlsImpl; |
| 15 |
| 16 class MediaControlTimelineElement final : public MediaControlInputElement { |
| 17 public: |
| 18 explicit MediaControlTimelineElement(MediaControlsImpl&); |
| 19 |
| 20 // MediaControlInputElement overrides. |
| 21 bool WillRespondToMouseClickEvents() override; |
| 22 |
| 23 // FIXME: An "earliest possible position" will be needed once that concept |
| 24 // is supported by HTMLMediaElement, see https://crbug.com/137275 |
| 25 void SetPosition(double); |
| 26 void SetDuration(double); |
| 27 |
| 28 void OnPlaying(); |
| 29 |
| 30 private: |
| 31 void DefaultEventHandler(Event*) override; |
| 32 bool KeepEventInNode(Event*) override; |
| 33 |
| 34 // Width in CSS pixels * pageZoomFactor (ignores CSS transforms for |
| 35 // simplicity; deliberately ignores pinch zoom's pageScaleFactor). |
| 36 int TimelineWidth(); |
| 37 |
| 38 MediaControlTimelineMetrics metrics_; |
| 39 }; |
| 40 |
| 41 } // namespace blink |
| 42 |
| 43 #endif // MediaControlTimelineElement |
| OLD | NEW |