1#ifndef YAZE_APP_CORE_SERVICE_SCREENSHOT_UTILS_H_
2#define YAZE_APP_CORE_SERVICE_SCREENSHOT_UTILS_H_
9#include "absl/status/statusor.h"
14struct ScreenshotArtifact {
15 std::string file_path;
18 int64_t file_size_bytes = 0;
32absl::StatusOr<ScreenshotArtifact> CaptureHarnessScreenshot(
33 const std::string& preferred_path =
"");
37absl::StatusOr<ScreenshotArtifact> CaptureHarnessScreenshotRegion(
38 const std::optional<CaptureRegion>& region,
39 const std::string& preferred_path =
"");
42absl::StatusOr<ScreenshotArtifact> CaptureActiveWindow(
43 const std::string& preferred_path =
"");
46absl::StatusOr<ScreenshotArtifact> CaptureWindowByName(
47 const std::string& window_name,
48 const std::string& preferred_path =
"");
Main namespace for the application.