mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
FileSystemAccessServer: Add expose_window_server_client_id()
This will expose the client id of the WindowServerConnection this instance of FileSystemAccessServer is using.
This commit is contained in:
parent
38594dde79
commit
f5e0475bdf
Notes:
sideshowbarker
2024-07-18 08:49:41 +09:00
Author: https://github.com/timmot Commit: https://github.com/SerenityOS/serenity/commit/f5e0475bdf3 Pull-request: https://github.com/SerenityOS/serenity/pull/8636 Issue: https://github.com/SerenityOS/serenity/issues/8628 Issue: https://github.com/SerenityOS/serenity/issues/8630 Reviewed-by: https://github.com/alimpfard Reviewed-by: https://github.com/awesomekling
3 changed files with 9 additions and 0 deletions
|
@ -157,4 +157,9 @@ void ClientConnection::prompt_helper(Optional<String> const& user_picked_file, C
|
|||
}
|
||||
}
|
||||
|
||||
Messages::FileSystemAccessServer::ExposeWindowServerClientIdResponse ClientConnection::expose_window_server_client_id()
|
||||
{
|
||||
return GUI::WindowServerConnection::the().expose_client_id();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -33,6 +33,8 @@ private:
|
|||
void prompt_helper(Optional<String> const&, Core::OpenMode const&);
|
||||
RefPtr<GUI::Window> create_dummy_child_window(i32, i32);
|
||||
|
||||
virtual Messages::FileSystemAccessServer::ExposeWindowServerClientIdResponse expose_window_server_client_id() override;
|
||||
|
||||
HashMap<String, Core::OpenMode> m_approved_files;
|
||||
};
|
||||
|
||||
|
|
|
@ -6,4 +6,6 @@ endpoint FileSystemAccessServer
|
|||
request_file(i32 window_server_client_id, i32 window_id, String path, Core::OpenMode requested_access) =|
|
||||
prompt_open_file(i32 window_server_client_id, i32 window_id, String path_to_view, Core::OpenMode requested_access) =|
|
||||
prompt_save_file(i32 window_server_client_id, i32 window_id,String title, String ext, String path_to_view, Core::OpenMode requested_access) =|
|
||||
|
||||
expose_window_server_client_id() => (i32 client_id)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue