1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 12:28:12 +00:00

FileSystemAccessServer: Add window title as parameter for opening file

This commit is contained in:
Timothy 2021-08-06 11:34:14 +10:00 committed by Andreas Kling
parent d496eb48e3
commit 95ee7069d5
5 changed files with 8 additions and 8 deletions

View file

@ -10,6 +10,7 @@
#include <FileSystemAccessServer/FileSystemAccessServerEndpoint.h>
#include <LibCore/File.h>
#include <LibCore/Promise.h>
#include <LibCore/StandardPaths.h>
#include <LibIPC/ServerConnection.h>
namespace FileSystemAccessClient {
@ -27,7 +28,7 @@ class Client final
public:
Result request_file(i32 parent_window_id, String const& path, Core::OpenMode mode);
Result open_file(i32 parent_window_id);
Result open_file(i32 parent_window_id, String const& window_title = {}, StringView const& path = Core::StandardPaths::home_directory());
Result save_file(i32 parent_window_id, String const& name, String const ext);
static Client& the();