mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 19:57:44 +00:00
LibWeb: Draw a volume scrub bar on media elements to control volume
This commit is contained in:
parent
a4cb3b5d4d
commit
f662a452c9
3 changed files with 56 additions and 0 deletions
|
@ -37,6 +37,9 @@ private:
|
|||
|
||||
DevicePixelRect speaker_button_rect;
|
||||
DevicePixels speaker_button_size;
|
||||
|
||||
DevicePixelRect volume_rect;
|
||||
DevicePixels volume_button_size;
|
||||
};
|
||||
|
||||
virtual bool wants_mouse_events() const override { return true; }
|
||||
|
@ -48,6 +51,7 @@ private:
|
|||
static void paint_control_bar_timeline(PaintContext&, HTML::HTMLMediaElement const&, Components const&, Optional<DevicePixelPoint> const& mouse_position);
|
||||
static void paint_control_bar_timestamp(PaintContext&, Components const&);
|
||||
static void paint_control_bar_speaker(PaintContext&, HTML::HTMLMediaElement const&, Components const& components, Optional<DevicePixelPoint> const& mouse_position);
|
||||
static void paint_control_bar_volume(PaintContext&, HTML::HTMLMediaElement const&, Components const&, Optional<DevicePixelPoint> const& mouse_position);
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue