Liav A
4bb8986752
Kernel: Generalize the ATAIdentifyBlock structure
2021-03-27 16:40:16 +01:00
Idan Horowitz
4317db7498
LibArchive: Make bounds checks stricter in the Zip parser
...
We now also check we have enough space in the incoming buffer for the
various signatures and optional (length specified) fields. This helps
prevents a possible heap overflow read.
2021-03-27 16:28:48 +01:00
Luke
1ff6f2b4b2
Lagom/Fuzzers: Add fuzzer for zip file parser
2021-03-27 16:28:34 +01:00
Linus Groh
e288541a9b
Taskbar: Set window title as taskbar button tooltip
...
This way it's easier to find the right window when many are open at the
same time, as all buttons share a limited amount of horizontal space and
titles get truncated quickly.
2021-03-27 16:28:21 +01:00
Linus Groh
2fde87e67d
WindowServer: Also keep menus open when activated via Ctrl + return key
...
I see no reason to limit this awesome feature to mouse clicks. :^)
2021-03-27 11:33:41 +01:00
Cesar Torres
0198ecca21
AudioServer: don't set an upper limit on volume in mixer
...
Let's not limit volume so we can play clips at over 100% without
the need to process the audio samples twice.
2021-03-27 10:20:55 +01:00
Cesar Torres
fd126578d9
SoundPlayer: Add samplerate variable to visualizations
...
also fix conflict
2021-03-27 10:20:55 +01:00
Cesar Torres
2e28b8ebcc
SoundPlayer: Add playlist supprt
...
And a M3U(8) parser
2021-03-27 10:20:55 +01:00
Cesar Torres
e4d6a56a28
AudioPlayer: Further decouple the player from the GUI
2021-03-27 10:20:55 +01:00
Cesar Torres
f9e4bff487
SoundPlayer: Reduce sample buffer size and add a sample load event
2021-03-27 10:20:55 +01:00
Cesar Torres
7aa5297835
SoundPlayer: Update the SoundPlayer interface
...
Also fix rebase conflict
2021-03-27 10:20:55 +01:00
Cesar Torres
45e928bfb2
SoundPlayer: Adapt the existing SampleWidget visualization to
...
the new abstraction
2021-03-27 10:20:55 +01:00
Cesar Torres
876c62409a
SoundPlayer: Add a no-visualization visualization :^)
...
For now it displays one of SerenityOS's wallpapers, but it should
show the playing file's cover, if any.
2021-03-27 10:20:55 +01:00
Cesar Torres
773c3586f1
SoundPlayer: Move the SoundPlayer-specific Slider widget to another file
2021-03-27 10:20:55 +01:00
Cesar Torres
f6f2f67c56
SoundPlayer: Add a 'Bars' audio visualization
2021-03-27 10:20:55 +01:00
Cesar Torres
b02f01843a
SoundPlayer: Add abstractions for players and visulizations
...
This can make them easier to be swappable in realtime
2021-03-27 10:20:55 +01:00
Cesar Torres
809f1d984d
SoundPlayer: Implement the Fast Fourier Transform algorithm
2021-03-27 10:20:55 +01:00
Cesar Torres
f4f5a1c0e7
AK: Add complex number library
...
Useful for diverse algorithms.
Also added some tests for it.
2021-03-27 10:20:55 +01:00
Cesar Torres
0d5e1e9df1
Everywhere: rename 'Sample' type to 'Frame'
...
Because it's what it really is. A frame is composed of 1 or more samples, in
the case of SerenityOS 2 (stereo). This will make it less confusing for
future mantainability.
2021-03-27 10:20:55 +01:00
networkException
f4bd095aa3
shot: Added option to output to clipboard instead of file
...
This allows screenshots to be easily used in PixelPaint for example :^)
2021-03-27 09:07:02 +01:00
Idan Horowitz
c01f4c3ed8
gunzip: Fail gracefully on bad input
...
Instead of crashing on a missing input file, looping forever on an
invalid gzip compressed file, and crashing on permissions issues in
the output file, handle all issues gracefully by logging and returning.
2021-03-26 23:00:10 +01:00
Linus Groh
0b799dd3b7
LibJS: VERIFY(!this_value.is_empty()) in VM::call_internal()
...
Just a sanity check, this must never happen. Manual invocations of
call() e.g. in LibWeb bindings must pass js_undefined() if no specific
this value is desired, which OrdinaryCallBindThis will then use as-is or
turn into the global this value in non-strict mode.
2021-03-26 22:59:47 +01:00
Linus Groh
056ffa4abb
LibWeb: Call requestAnimationFrame() callback with undefined this value
...
We were leaking an empty value via the callback's this value:
requestAnimationFrame(function () {
this; // <-- empty value
});
2021-03-26 22:59:47 +01:00
Federico Guerinoni
49a062f81d
LibGUI: Show human readable size in filemanager
...
The size is visible only in TableView mode of the filemanager.
2021-03-26 22:59:09 +01:00
Linus Groh
8fe7983cc5
LibMarkdown: Remove unused Paragraph::add_line() declaration
2021-03-26 22:58:36 +01:00
Timothy Flynn
cd82fd24e2
Browser: Add right-click context menu item for editing bookmarks
...
This allows users to right-click on a bookmark button to open a small
dialog for editing bookmark titles and URLs.
2021-03-26 22:58:31 +01:00
Timothy Flynn
990e362a17
LibGUI: Allow assigning a value to a specific index in JsonArrayModel
2021-03-26 22:58:31 +01:00
Timothy Flynn
4babf6e4e1
AK: Allow assigning a value to a specific index in a JsonArray
2021-03-26 22:58:31 +01:00
Timothy Flynn
74e9a892e3
LibWeb: Compute height of absolutely positioned blocks when possible
...
Section 10.6.4 rule 5 of the CSS height property spec outlines a method
to compute the height of an absolutely positioned block when the 'top'
and 'bottom' CSS properties are specified.
2021-03-26 22:58:13 +01:00
Timothy Flynn
03990fcb89
LibWeb: Consider floating children when computing auto-height
...
The case for computing auto-height of block elements which have block-
level children was erroneously skipping some children:
1. If the block element itself is absolute or floating, all children
were skipped due to a likely typo ("box" vs. "child_box" inside the
for-each loop).
2. Floating children should only be skipped if the block element's
'overflow' property computes to 'visible', per section 10.6.3 of the
CSS height property spec. If the property computes to another value,
section 10.6.7 only indicates that absolutely positioned children
should be skipped.
2021-03-26 22:58:13 +01:00
Andreas Kling
f018100d21
Utilities: Add a simple "shot" utility for grabbing screenshots :^)
...
This little CLI program grabs the current screen image from
WindowServer and saves it as a PNG file.
2021-03-26 20:33:23 +01:00
Andreas Kling
d9f8f6a2d0
WindowServer: Add an IPC call for taking a screenshot
...
This patch adds Messages::WindowServer::GetScreenBitmap. It returns the
currently displayed on-screen bitmap as-is, as a Gfx::ShareableBitmap.
2021-03-26 20:33:23 +01:00
Timothy Flynn
557927f25b
LibWeb+WebContent: Support displaying favicons in OOPWV
...
In single process mode, the browser will display a page's favicon in
both the location bar and tab. This adds the same support for multi-
process mode.
2021-03-26 16:55:51 +01:00
Michel Hermier
ff0d4c6f7c
Kernel: Remove unused WorkQueue::m_name.
2021-03-26 16:54:05 +01:00
Michel Hermier
51ad3da999
Kernel: Remove unused MBRPartitionTable::m_partitions_count.
2021-03-26 16:54:05 +01:00
Michel Hermier
4ac49eabd5
Kernel: Remove unused FileBlockCondition::m_file.
2021-03-26 16:54:05 +01:00
Michel Hermier
a359f477a7
Kernel: Remove unused EBRPartitionTable::m_partitions_count.
2021-03-26 16:54:05 +01:00
Michel Hermier
37be679d6e
Kernel: Remove unused AHCIPort::ScatterList::m_device_block_size.
2021-03-26 16:54:05 +01:00
Andreas Kling
ecb0ae9c33
WindowServer: Keep menu open when activating a menu item with Ctrl held
...
This makes it easy to "try out" different options (like system themes!)
in a menu without having to re-open the menu over and over. :^)
2021-03-26 14:45:15 +01:00
Andreas Kling
b31b904ad0
WindowServer: Redraw all menus on system theme change
2021-03-26 14:42:38 +01:00
Andreas Kling
4b6fba1e4c
WindowServer+LibGfx: Make menubar menus slightly larger
...
Also make sure the left/right padding is equally large.
2021-03-26 14:25:37 +01:00
Andreas Kling
3020f5efd9
Taskbar: Add more prominent Help app icon in the start menu
2021-03-26 13:54:56 +01:00
Andreas Kling
b8a9f433f9
Taskbar: Move "About SerenityOS" to the top of the start menu
2021-03-26 13:31:10 +01:00
Linus Groh
b220c89c5c
WindowServer: Adjust position of flipped submenus by menu item height
...
Fixes #5950 .
2021-03-26 09:25:22 +01:00
Linus Groh
8461100bf7
WindowServer: Add clip rect to menubar painter
...
Fixes #5951 .
2021-03-26 09:25:22 +01:00
Andreas Kling
6203a4a2e9
WindowServer: Remove unused Menu->MenuBar link and "title font"
...
We kept a backpointer from the Menu to its containing MenuBar, but it
was not used for anything so let's remove it.
Since all menus have the same font now, there's no need to track a
separate "title font".
2021-03-26 09:12:32 +01:00
Andreas Kling
dfb81242f3
WindowServer: Redraw window menubars when moving with arrow keys
...
Also, make sure we don't draw a menu in hovered state while another
menu is open.
Fixes #5949 .
2021-03-26 08:59:32 +01:00
Andreas Kling
6ae174f80a
WindowServer: Remove some leftover unused menubar things
2021-03-26 08:54:33 +01:00
Andreas Kling
e94e94becc
Base: Remove SystemMenu from SystemServer.ini
2021-03-26 08:20:53 +01:00
Andreas Kling
baae3f706a
Taskbar: Only show H:M:S by default, move date to tooltip
2021-03-25 23:32:00 +01:00