Own log worker and trim Apple platform hooks
This commit is contained in:
@@ -183,6 +183,24 @@ void AppleDocumentPlatformServices::set_cursor_visible(bool visible) const
|
||||
#endif
|
||||
}
|
||||
|
||||
void AppleDocumentPlatformServices::trigger_crash_test() const
|
||||
{
|
||||
if (bridge_.trigger_crash_test)
|
||||
bridge_.trigger_crash_test();
|
||||
}
|
||||
|
||||
void AppleDocumentPlatformServices::request_app_close() const
|
||||
{
|
||||
if (bridge_.request_app_close)
|
||||
bridge_.request_app_close();
|
||||
}
|
||||
|
||||
void AppleDocumentPlatformServices::start_sonarpen() const
|
||||
{
|
||||
if (bridge_.start_sonarpen)
|
||||
bridge_.start_sonarpen();
|
||||
}
|
||||
|
||||
void AppleDocumentPlatformServices::acquire_render_context() const
|
||||
{
|
||||
if (bridge_.acquire_render_context)
|
||||
|
||||
@@ -22,6 +22,9 @@ struct AppleDocumentPickerBridge {
|
||||
std::function<void(std::string path)> display_file;
|
||||
std::function<void(std::string path)> share_file;
|
||||
std::function<void(bool visible)> set_cursor_visible;
|
||||
std::function<void()> trigger_crash_test;
|
||||
std::function<void()> request_app_close;
|
||||
std::function<void()> start_sonarpen;
|
||||
std::function<void()> acquire_render_context;
|
||||
std::function<void()> release_render_context;
|
||||
std::function<void()> present_render_context;
|
||||
@@ -53,6 +56,9 @@ public:
|
||||
void display_file(std::string_view path) const;
|
||||
void share_file(std::string_view path) const;
|
||||
void set_cursor_visible(bool visible) const;
|
||||
void trigger_crash_test() const;
|
||||
void request_app_close() const;
|
||||
void start_sonarpen() const;
|
||||
void acquire_render_context() const;
|
||||
void release_render_context() const;
|
||||
void present_render_context() const;
|
||||
|
||||
Reference in New Issue
Block a user